the update of the dragger appearance belongs in themeChanged()

svn path=/trunk/KDE/kdelibs/; revision=1185176
This commit is contained in:
Marco Martin 2010-10-12 13:20:04 +00:00
parent 22db020315
commit c79712f294

View File

@ -828,15 +828,6 @@ 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");
@ -1008,6 +999,16 @@ void ExtenderItemPrivate::themeChanged()
background->getMargins(left, top, right, bottom);
layout->setContentsMargins(left, top, right, bottom);
if (group) {
toolbox->setBackgroundPrefix("grouped");
} else {
if (extender->items().count() <= 1 || extender->items().first() == q || extender->appearance() != Extender::NoBorders) {
toolbox->setBackgroundPrefix("root");
} else {
toolbox->setBackgroundPrefix(QString());
}
}
toolbox->updateTheme();
}