summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestmouse.h
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2015-03-09 12:34:38 +0100
committerAndy Shaw <andy.shaw@digia.com>2015-03-31 12:03:47 +0000
commit180ee8a8de459b752f739e1a9d56d271303d0302 (patch)
treec1603ec0a2390beaa65b55336f3c0c405051af8b /src/testlib/qtestmouse.h
parentd64f776a9a41a8d1144397b7b62efbdee8d24857 (diff)
Explicitly cast to a uint to fix a compile error
When using QtTest inside the notification example for QtAndroidExtras there as a problem with the compilation as it saw it as being an ambiguous check. Therefore doing an explicit case to uint ensures it is not a problem. Change-Id: Ibc9ce4c64292bf5ae7c501c592d8c42a66934b8b Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/testlib/qtestmouse.h')
-rw-r--r--src/testlib/qtestmouse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestmouse.h b/src/testlib/qtestmouse.h
index 0b27537ae4..f29db926a4 100644
--- a/src/testlib/qtestmouse.h
+++ b/src/testlib/qtestmouse.h
@@ -98,7 +98,7 @@ namespace QTest
mouseEvent(MouseRelease, window, button, stateKey, pos);
return;
}
- QTEST_ASSERT(stateKey == 0 || stateKey & Qt::KeyboardModifierMask);
+ QTEST_ASSERT(uint(stateKey) == 0 || stateKey & Qt::KeyboardModifierMask);
stateKey &= static_cast<unsigned int>(Qt::KeyboardModifierMask);