[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-04-01 0:20:29
Message-ID: 1207009229.068365.14253.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 792405 by aseigo:

* 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


 M  +8 -1      applet.cpp  


--- trunk/KDE/kdebase/workspace/libs/plasma/applet.cpp #792404:792405
@@ -734,7 +734,14 @@
     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..."));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic