[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/plasma/widgets
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2010-05-31 22:42:51
Message-ID: 20100531224252.0550AAC8C6 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1133021 by aseigo:
if we have a popup associated with our icon, show it
BUG:240265
M +5 -0 iconwidget.cpp
--- trunk/KDE/kdelibs/plasma/widgets/iconwidget.cpp #1133020:1133021
@@ -30,6 +30,7 @@
#include <QPainter>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsView>
+#include <QMenu>
#include <QStyleOptionGraphicsItem>
#include <QTextLayout>
@@ -1395,7 +1396,11 @@
if (KGlobalSettings::singleClick()) {
emit activated();
}
+
+ if (d->action && d->action->menu()) {
+ d->action->menu()->popup(event->screenPos());
}
+ }
emit pressed(false);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic