diff options
author | Fabien Freling <fabien.freling@nokia.com> | 2010-02-19 12:26:27 (GMT) |
---|---|---|
committer | Fabien Freling <fabien.freling@nokia.com> | 2010-02-19 12:26:27 (GMT) |
commit | da1d0f7d34b7acdd4e38a8940279d9255eb15dc5 (patch) | |
tree | 6d533819359c848a3661e5a8653ca949e271fc8a /src/gui/kernel/qt_cocoa_helpers_mac.mm | |
parent | c786e0cd3c40193073ce2f59f98a4d83bbe1a9b9 (diff) | |
download | Qt-da1d0f7d34b7acdd4e38a8940279d9255eb15dc5.zip Qt-da1d0f7d34b7acdd4e38a8940279d9255eb15dc5.tar.gz Qt-da1d0f7d34b7acdd4e38a8940279d9255eb15dc5.tar.bz2 |
Fix an issue about double-click on Mac OS X.
A test is added when we double-click to verify that both pushed buttons
are the same.
Diffstat (limited to 'src/gui/kernel/qt_cocoa_helpers_mac.mm')
-rw-r--r-- | src/gui/kernel/qt_cocoa_helpers_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qt_cocoa_helpers_mac.mm b/src/gui/kernel/qt_cocoa_helpers_mac.mm index f2ec4af..71d6ff8 100644 --- a/src/gui/kernel/qt_cocoa_helpers_mac.mm +++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm @@ -956,7 +956,7 @@ bool qt_mac_handleMouseEvent(void * /* NSView * */view, void * /* NSEvent * */ev #ifndef QT_NAMESPACE Q_ASSERT(clickCount > 0); #endif - if (clickCount % 2 == 0) + if (clickCount % 2 == 0 && buttons == button) eventType = QEvent::MouseButtonDblClick; if (button == Qt::LeftButton && (keyMods & Qt::MetaModifier)) { button = Qt::RightButton; |