removed a function that shouldn't be there. we must *never* call setParent on that dialog.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870095
This commit is contained in:
Chani Armitage 2008-10-11 18:14:45 +00:00
parent 51e03dc5e3
commit 0d99586a04
2 changed files with 0 additions and 10 deletions

View File

@ -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)) {

View File

@ -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())