diff --git a/private/paneltoolbox.cpp b/private/paneltoolbox.cpp index 70e0656f9..d30ff03c4 100644 --- a/private/paneltoolbox.cpp +++ b/private/paneltoolbox.cpp @@ -59,8 +59,6 @@ PanelToolBox::PanelToolBox(Containment *parent) : ToolBox(parent), d(new PanelToolBoxPrivate) { - connect(Plasma::Animator::self(), SIGNAL(movementFinished(QGraphicsItem*)), - this, SLOT(toolMoved(QGraphicsItem*))); connect(this, SIGNAL(toggled()), this, SLOT(toggle())); setZValue(10000000); @@ -288,15 +286,6 @@ void PanelToolBox::animate(qreal progress) update(); } -void PanelToolBox::toolMoved(QGraphicsItem *item) -{ - //kDebug() << "geometry is now " << static_cast(item)->geometry(); - if (!showing() && - QGraphicsItem::children().indexOf(static_cast(item)) != -1) { - item->hide(); - } -} - void PanelToolBox::toggle() { d->toggled = !d->toggled; diff --git a/private/paneltoolbox_p.h b/private/paneltoolbox_p.h index 22d6c8544..b24ab5a70 100644 --- a/private/paneltoolbox_p.h +++ b/private/paneltoolbox_p.h @@ -58,7 +58,6 @@ protected: protected slots: void animate(qreal progress); - void toolMoved(QGraphicsItem*); void toggle(); void assignColors();