tst_QMenu: Add define QTEST_QPA_MOUSE_HANDLING

Use the clean implementation that does not use QCursor::setPos()
with the exception of macOS, where this causes
submenuTearOffDontClose() to fail.

Change-Id: I95a615c37bcf419ce1ede65b5ed79a5ec0568391
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
bb10
Friedemann Kleint 2018-02-06 08:59:07 +01:00
parent 6d3e5ac6d2
commit 9bd702a634
1 changed files with 2 additions and 0 deletions

View File

@ -5,4 +5,6 @@ SOURCES += tst_qmenu.cpp
macx:{
OBJECTIVE_SOURCES += tst_qmenu_mac.mm
LIBS += -lobjc
} else {
DEFINES += QTEST_QPA_MOUSE_HANDLING
}