this size policy seems to behave way better

icons aren't scaled down when taskbar fills up
will backport to 4.1

BUG:164857

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=848940
This commit is contained in:
Marco Martin 2008-08-18 18:49:04 +00:00
parent 23839efb30
commit 14bb079e79

View File

@ -804,7 +804,7 @@ void Applet::flushPendingConstraintsEvents()
if ((c & Plasma::SizeConstraint || c & Plasma::FormFactorConstraint) &&
aspectRatioMode() == Plasma::ConstrainedSquare) {
if (formFactor() == Horizontal) {
setSizePolicy(QSizePolicy(QSizePolicy::Maximum,QSizePolicy::Expanding));
setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Expanding));
} else if (formFactor() == Vertical) {
setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed));
}