if we have a popup associated with our icon, show it
BUG:240265 svn path=/trunk/KDE/kdelibs/; revision=1133021
This commit is contained in:
parent
307ccdd39b
commit
ff45696e8b
|
@ -30,6 +30,7 @@
|
|||
#include <QPainter>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QGraphicsView>
|
||||
#include <QMenu>
|
||||
#include <QStyleOptionGraphicsItem>
|
||||
#include <QTextLayout>
|
||||
|
||||
|
@ -1395,6 +1396,10 @@ void IconWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
|||
if (KGlobalSettings::singleClick()) {
|
||||
emit activated();
|
||||
}
|
||||
|
||||
if (d->action && d->action->menu()) {
|
||||
d->action->menu()->popup(event->screenPos());
|
||||
}
|
||||
}
|
||||
emit pressed(false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user