fix root items appearance
svn path=/trunk/KDE/kdelibs/; revision=1184861
This commit is contained in:
parent
f947ed9495
commit
b5688057bc
@ -343,12 +343,6 @@ void ExtenderItem::setExtender(Extender *extender, const QPointF &pos)
|
|||||||
{
|
{
|
||||||
Q_ASSERT(extender);
|
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
|
//themeChanged() has to now that by now, we're no longer dragging, even though the QDrag has not
|
||||||
//been entirely finished.
|
//been entirely finished.
|
||||||
d->dragStarted = false;
|
d->dragStarted = false;
|
||||||
@ -831,6 +825,16 @@ void ExtenderItemPrivate::updateToolBox()
|
|||||||
Q_ASSERT(toolbox);
|
Q_ASSERT(toolbox);
|
||||||
Q_ASSERT(toolboxLayout);
|
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 *closeAction = actions.value("close");
|
||||||
QAction *returnToSourceAction = actions.value("extenderItemReturnToSource");
|
QAction *returnToSourceAction = actions.value("extenderItemReturnToSource");
|
||||||
bool returnToSourceVisibility = q->isDetached() && sourceApplet && (hostApplet()->immutability() == Plasma::Mutable);
|
bool returnToSourceVisibility = q->isDetached() && sourceApplet && (hostApplet()->immutability() == Plasma::Mutable);
|
||||||
|
Loading…
Reference in New Issue
Block a user