save to normal QSize, hopefully would make easier to fix rendering
problems svn path=/trunk/KDE/kdelibs/; revision=922930
This commit is contained in:
parent
3dad77734e
commit
99d3b2d603
@ -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_").
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user