diff options
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qnamespace.h | 6 | ||||
-rw-r--r-- | src/corelib/global/qnamespace.qdoc | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 1058acc3a7..cb9b738522 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -81,8 +81,10 @@ namespace Qt { NoButton = 0x00000000, LeftButton = 0x00000001, RightButton = 0x00000002, - MidButton = 0x00000004, // ### Qt 6: remove me - MiddleButton = MidButton, + MiddleButton = 0x00000004, +#if QT_DEPRECATED_SINCE(5, 15) // commented as such since 4.7.0 + MidButton Q_DECL_ENUMERATOR_DEPRECATED_X("MidButton is deprecated. Use MiddleButton instead") = MiddleButton, +#endif BackButton = 0x00000008, XButton1 = BackButton, ExtraButton1 = XButton1, diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index d148d643e7..a3d1564b06 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -323,8 +323,8 @@ to the left button. (The left button may be the right button on left-handed mice.) \value RightButton The right button. - \value MidButton The middle button. \value MiddleButton The middle button. + \omitvalue MidButton \value BackButton The 'Back' button. (Typically present on the 'thumb' side of a mouse with extra buttons. This is NOT |