always connect the toolbox toggle signal to the containment
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828085
This commit is contained in:
parent
55db8b640a
commit
9e8629645a
@ -1069,15 +1069,14 @@ ToolBox* ContainmentPrivate::createToolBox()
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case Containment::PanelContainment:
|
case Containment::PanelContainment:
|
||||||
toolBox = new PanelToolBox(q);
|
toolBox = new PanelToolBox(q);
|
||||||
QObject::connect(toolBox, SIGNAL(toggled()), q, SIGNAL(toolBoxToggled()));
|
|
||||||
break;
|
break;
|
||||||
//defaults to DesktopContainment right now
|
//defaults to DesktopContainment right now
|
||||||
default:
|
default:
|
||||||
toolBox = new DesktopToolBox(q);
|
toolBox = new DesktopToolBox(q);
|
||||||
QObject::connect(toolBox, SIGNAL(toggled()), toolBox, SLOT(toggle()));
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QObject::connect(toolBox, SIGNAL(toggled()), q, SIGNAL(toolBoxToggled()));
|
||||||
positionToolBox();
|
positionToolBox();
|
||||||
|
|
||||||
if (type == Containment::PanelContainment && q->immutability() != Mutable) {
|
if (type == Containment::PanelContainment && q->immutability() != Mutable) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user