* only reset the shadow on form factor constraint changes
* auto handle the whole draw standard background thing. it now does the right thing for panels, containments and applets for 99% of the cases svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=733970
This commit is contained in:
parent
91aec876c1
commit
834ece1ae6
@ -695,13 +695,18 @@ void Applet::flushUpdatedConstraints()
|
||||
Plasma::Constraints c = d->pendingConstraints;
|
||||
d->pendingConstraints = NoConstraint;
|
||||
|
||||
if (c & Plasma::FormFactorConstraint) {
|
||||
FormFactor f = formFactor();
|
||||
setShadowShown(f == Planar);
|
||||
setDrawStandardBackground(qobject_cast<Containment*>(this) == 0 && f != Vertical && f != Horizontal);
|
||||
}
|
||||
|
||||
constraintsUpdated(c);
|
||||
|
||||
if (layout()) {
|
||||
layout()->update();
|
||||
}
|
||||
|
||||
setShadowShown(formFactor() == Planar);
|
||||
}
|
||||
|
||||
int Applet::type() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user