kill a bit of old dead code
svn path=/trunk/KDE/kdelibs/; revision=922905
This commit is contained in:
parent
b59302b92f
commit
1755bfa667
10
framesvg.cpp
10
framesvg.cpp
@ -425,16 +425,6 @@ void FrameSvgPrivate::generateBackground(FrameData *frame)
|
|||||||
p.setCompositionMode(QPainter::CompositionMode_Source);
|
p.setCompositionMode(QPainter::CompositionMode_Source);
|
||||||
p.setRenderHint(QPainter::SmoothPixmapTransform);
|
p.setRenderHint(QPainter::SmoothPixmapTransform);
|
||||||
|
|
||||||
//if we must stretch the center or the borders we compute how much we will have to stretch
|
|
||||||
//the svg to get the desired element sizes
|
|
||||||
QSizeF scaledContentSize(0, 0);
|
|
||||||
if (q->elementSize(prefix + "center").width() > 0 &&
|
|
||||||
q->elementSize(prefix + "center").height() > 0 &&
|
|
||||||
(!frame->tileCenter || frame->stretchBorders)) {
|
|
||||||
scaledContentSize = QSizeF(contentWidth * ((qreal)q->size().width() / (qreal)q->elementSize(prefix + "center").width()),
|
|
||||||
contentHeight * ((qreal)q->size().height() / (qreal)q->elementSize(prefix + "center").height()));
|
|
||||||
}
|
|
||||||
|
|
||||||
//CENTER
|
//CENTER
|
||||||
if (frame->tileCenter) {
|
if (frame->tileCenter) {
|
||||||
if (contentHeight > 0 && contentWidth > 0) {
|
if (contentHeight > 0 && contentWidth > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user