From 0ae288d2503984f48180555a2bf4f3866a958952 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 1 Apr 2008 00:20:28 +0000 Subject: [PATCH] * 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 --- applet.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/applet.cpp b/applet.cpp index 12a92a583..97f30badd 100644 --- a/applet.cpp +++ b/applet.cpp @@ -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..."));