diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-21 12:16:09 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-08-22 21:47:36 +0200 |
commit | 16e546e32fec393bc3b126f280114bcbfa7151ff (patch) | |
tree | 0d8d1f88fdd29ba5a28c3a5039bd7f6e6b76727c /tests/auto/other | |
parent | 4b1ffab8ad95eda737fde015c243442a28de8e23 (diff) |
Properly deprecate Qt::MidButton in favor of Qt::MiddleButton
MidButton had its // ### Qt 5: remove me
upgraded to Qt 6 at 5.0; but it dates back to 4.7.0
Replace the many remaining uses of MidButton with MiddleButton in the
process.
Pick-to: 5.15
Change-Id: Idc1b1b1816673dfdb344d703d101febc823a76ff
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/other')
-rw-r--r-- | tests/auto/other/macnativeevents/qnativeevents.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/other/macnativeevents/qnativeevents.cpp b/tests/auto/other/macnativeevents/qnativeevents.cpp index f04b33151a..970c41bf2e 100644 --- a/tests/auto/other/macnativeevents/qnativeevents.cpp +++ b/tests/auto/other/macnativeevents/qnativeevents.cpp @@ -130,8 +130,8 @@ static QString getButtonAsString(const QNativeMouseButtonEvent *e) case Qt::RightButton: return "button = RightButton"; break; - case Qt::MidButton: - return "button = MidButton"; + case Qt::MiddleButton: + return "button = MiddleButton"; break; default: return "button = Other"; @@ -292,7 +292,7 @@ QTextStream &operator>>(QTextStream &s, QNativeMouseButtonEvent *e) e->button = Qt::RightButton; break; case 3: - e->button = Qt::MidButton; + e->button = Qt::MiddleButton; break; default: e->button = Qt::NoButton; @@ -319,7 +319,7 @@ QTextStream &operator>>(QTextStream &s, QNativeMouseDragEvent *e) e->button = Qt::RightButton; break; case 3: - e->button = Qt::MidButton; + e->button = Qt::MiddleButton; break; default: e->button = Qt::NoButton; |