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:
parent
51e03dc5e3
commit
0d99586a04
@ -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)) {
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user