From 3debb37250b2c57aaaf81940f9dfeb540fd4e380 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 21 Jul 2020 12:09:26 +0200 Subject: Replace Qt's MidButton with MiddleButton The latter has been the preferred name since Qt 4.7.0. Added a comment on where the old name is exposed to QML that it's only for backwards compatibility. Pick-to: 5.15 Change-Id: I2c5088d597dd7327cc5899d06afb180d0ec2893e Reviewed-by: Shawn Rutledge --- examples/quick/mousearea/mousearea.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/quick') diff --git a/examples/quick/mousearea/mousearea.qml b/examples/quick/mousearea/mousearea.qml index cecbc2cfc8..ff792f952d 100644 --- a/examples/quick/mousearea/mousearea.qml +++ b/examples/quick/mousearea/mousearea.qml @@ -81,7 +81,7 @@ Rectangle { buttonID = 'LeftButton' else if (mouse.button == Qt.RightButton) buttonID = 'RightButton' - else if (mouse.button == Qt.MidButton) + else if (mouse.button == Qt.MiddleButton) buttonID = 'MiddleButton' else if (mouse.button == Qt.BackButton) buttonID = 'BackButton' -- cgit v1.2.3