don't mess with size policies that the applet could have set (still do

that on square aspect ratio, that's bad but the aspectRatioMode() is
kinda old cruft from pre-qgraphicswidget times..
BUG: 199921

svn path=/trunk/KDE/kdelibs/; revision=995461
This commit is contained in:
Marco Martin 2009-07-12 19:34:28 +00:00
parent dcd418a3e8
commit b73625fbfc

View File

@ -1146,12 +1146,6 @@ void Applet::flushPendingConstraintsEvents()
} else if (formFactor() == Vertical) {
setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed));
}
} else {
if (formFactor() == Horizontal) {
setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding));
} else if (formFactor() == Vertical) {
setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred));
}
}
updateGeometry();
}