summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-08-31 06:07:17 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-08-31 06:07:17 (GMT)
commita78c47247ecf67ea8a406bb394d2837e4c18cdc8 (patch)
treef492611615865f2d943f8ba77e88a01b3b5a8e24
parent6f1ff3ec69cc6365d61fccf80e97f9afa317395d (diff)
downloadQt-a78c47247ecf67ea8a406bb394d2837e4c18cdc8.zip
Qt-a78c47247ecf67ea8a406bb394d2837e4c18cdc8.tar.gz
Qt-a78c47247ecf67ea8a406bb394d2837e4c18cdc8.tar.bz2
Added QContextMenuEvent sending to widget in Symbian.
The event construction without sending does nothing, sending constructed event possibly dissappeared due to bad merge or something. So here it comes again... Task-number: 260222 Reviewed-by: TrustMe
-rw-r--r--src/gui/kernel/qapplication_s60.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index 648a5d5..87cf82e 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -351,7 +351,8 @@ void QSymbianControl::HandleLongTapEventL( const TPoint& aPenEventLocation, cons
bool res = sendMouseEvent(alienWidget, &mEvent);
#if !defined(QT_NO_CONTEXTMENU)
- QContextMenuEvent e2(QContextMenuEvent::Mouse, widgetPos, globalPos, mEvent.modifiers());
+ QContextMenuEvent contextMenuEvent(QContextMenuEvent::Mouse, widgetPos, globalPos, mEvent.modifiers());
+ qt_sendSpontaneousEvent(alienWidget, &contextMenuEvent);
#endif
m_previousEventLongTap = true;