diff --git a/popupapplet.cpp b/popupapplet.cpp index 7ace665b9..1f84c4664 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -294,15 +294,6 @@ bool PopupApplet::eventFilter(QObject *watched, QEvent *event) return Applet::eventFilter(watched, event); } -QVariant PopupApplet::itemChange(GraphicsItemChange change, const QVariant &value) -{ - if (change == QGraphicsItem::ItemParentHasChanged && d->dialog) { - d->dialog->setParent(view()); - } - - return Applet::itemChange(change, value); -} - void PopupApplet::showPopup(uint popupDuration) { if (d->dialog && (formFactor() == Horizontal || formFactor() == Vertical)) { diff --git a/popupapplet.h b/popupapplet.h index c7c8b939b..c95a5ec5d 100644 --- a/popupapplet.h +++ b/popupapplet.h @@ -113,7 +113,6 @@ protected: void mousePressEvent(QGraphicsSceneMouseEvent *event); void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); bool eventFilter(QObject *watched, QEvent *event); - QVariant itemChange(GraphicsItemChange change, const QVariant &value); private: Q_PRIVATE_SLOT(d, void togglePopup())