From b5688057bc6c9986b1726efc976746b14a88ef57 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 11 Oct 2010 16:04:06 +0000 Subject: [PATCH] fix root items appearance svn path=/trunk/KDE/kdelibs/; revision=1184861 --- extenders/extenderitem.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/extenders/extenderitem.cpp b/extenders/extenderitem.cpp index 0f7e47366..e8011e2dc 100644 --- a/extenders/extenderitem.cpp +++ b/extenders/extenderitem.cpp @@ -343,12 +343,6 @@ void ExtenderItem::setExtender(Extender *extender, const QPointF &pos) { Q_ASSERT(extender); - if (extender->appearance() != Extender::NoBorders) { - d->toolbox->setBackgroundPrefix("root"); - } else { - d->toolbox->setBackgroundPrefix(QString()); - } - //themeChanged() has to now that by now, we're no longer dragging, even though the QDrag has not //been entirely finished. d->dragStarted = false; @@ -831,6 +825,16 @@ void ExtenderItemPrivate::updateToolBox() Q_ASSERT(toolbox); Q_ASSERT(toolboxLayout); + if (group) { + toolbox->setBackgroundPrefix("grouped"); + } else { + if (extender->appearance() != Extender::NoBorders) { + toolbox->setBackgroundPrefix("root"); + } else { + toolbox->setBackgroundPrefix(QString()); + } + } + QAction *closeAction = actions.value("close"); QAction *returnToSourceAction = actions.value("extenderItemReturnToSource"); bool returnToSourceVisibility = q->isDetached() && sourceApplet && (hostApplet()->immutability() == Plasma::Mutable);