* set zValue so it floats above all other children
* don't change the default background painting setting, as we now rely on the applet to be set up properly on its own svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792405
This commit is contained in:
parent
1833641e3b
commit
0ae288d250
@ -734,7 +734,14 @@ void Applet::setNeedsConfiguring(bool needsConfig)
|
||||
d->needsConfigOverlay = new OverlayWidget(this);
|
||||
d->needsConfigOverlay->resize(contentSize());
|
||||
|
||||
setDrawStandardBackground(true);
|
||||
int zValue = 100;
|
||||
foreach (QGraphicsItem *child, QGraphicsItem::children()) {
|
||||
if (child->zValue() > zValue) {
|
||||
zValue = child->zValue() + 1;
|
||||
}
|
||||
}
|
||||
d->needsConfigOverlay->setZValue(zValue);
|
||||
|
||||
qDeleteAll(d->needsConfigOverlay->QGraphicsItem::children());
|
||||
PushButton* button = new PushButton(d->needsConfigOverlay);
|
||||
button->setText(i18n("Configure..."));
|
||||
|
Loading…
Reference in New Issue
Block a user