save to normal QSize, hopefully would make easier to fix rendering

problems 

svn path=/trunk/KDE/kdelibs/; revision=922930
This commit is contained in:
Marco Martin 2009-02-07 20:44:08 +00:00
parent 3dad77734e
commit 99d3b2d603
2 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ void FrameSvg::resizeFrame(const QSizeF &size)
} }
d->updateSizes(); d->updateSizes();
d->frames[d->prefix]->frameSize = size; d->frames[d->prefix]->frameSize = size.toSize();
} }
QSizeF FrameSvg::frameSize() const QSizeF FrameSvg::frameSize() const
@ -565,7 +565,7 @@ void FrameSvgPrivate::generateBackground(FrameData *frame)
pos = overlayPos; pos = overlayPos;
//Stretched or Tiled? //Stretched or Tiled?
} else if (q->hasElement(prefix+"hint-overlay-stretch") || q->hasElement(prefix+"hint-overlay-tile")) { } else if (q->hasElement(prefix+"hint-overlay-stretch") || q->hasElement(prefix+"hint-overlay-tile")) {
overlaySize = frame->frameSize.toSize(); overlaySize = frame->frameSize;
} }
QString id = QString::fromLatin1("overlay_%7_%6_%5_%4_%3_%2_%1_"). QString id = QString::fromLatin1("overlay_%7_%6_%5_%4_%3_%2_%1_").

View File

@ -47,7 +47,7 @@ public:
FrameSvg::EnabledBorders enabledBorders; FrameSvg::EnabledBorders enabledBorders;
QPixmap cachedBackground; QPixmap cachedBackground;
QRegion cachedMask; QRegion cachedMask;
QSizeF frameSize; QSize frameSize;
//measures //measures
int topHeight; int topHeight;