summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-07-21 11:57:37 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-07-22 11:15:17 +0200
commitf3a34ce8890c68c04212eafa0ae2c9eeeb60b555 (patch)
tree1344ecfc685fe8b522144a0cf586941121336c91
parent354d59cd8e7972525e5978d970ef5e64edb14898 (diff)
Replace Qt::MidButton with Qt::MiddleButton
The latter has been the preferred name since Qt 4.7.0. Pick-to: 5.15 Change-Id: I2f47bd54b971252d1c3abe601c3709c8da4ab5ad Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp
index b8866b482..0bc9b113a 100644
--- a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp
+++ b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp
@@ -46,7 +46,7 @@ QDeclarativePinchGenerator::QDeclarativePinchGenerator():
replaySpeedFactor_(1.0),
enabled_(true)
{
- setAcceptedMouseButtons(Qt::LeftButton | Qt::MidButton | Qt::RightButton);
+ setAcceptedMouseButtons(Qt::LeftButton | Qt::MiddleButton | Qt::RightButton);
swipeTimer_.invalidate();
device_ = new QTouchDevice;
device_->setType(QTouchDevice::TouchScreen);