diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-21 12:16:09 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-08-22 22:05:34 +0000 |
commit | 6ee6c52b57a0fbe9df00b30616afd90476ebdfd6 (patch) | |
tree | dba86c63dd24a9fafc3999f08c6c2d8b141143dd /src/widgets/widgets/qlineedit.cpp | |
parent | b856b83838947da16664b4fbfa32f76eb01fbca6 (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.
Change-Id: Idc1b1b1816673dfdb344d703d101febc823a76ff
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
(cherry picked from commit 16e546e32fec393bc3b126f280114bcbfa7151ff)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/widgets/widgets/qlineedit.cpp')
-rw-r--r-- | src/widgets/widgets/qlineedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qlineedit.cpp b/src/widgets/widgets/qlineedit.cpp index cf4c09dbf2..0c7256939c 100644 --- a/src/widgets/widgets/qlineedit.cpp +++ b/src/widgets/widgets/qlineedit.cpp @@ -1640,7 +1640,7 @@ void QLineEdit::mouseReleaseEvent(QMouseEvent* e) if (QGuiApplication::clipboard()->supportsSelection()) { if (e->button() == Qt::LeftButton) { d->control->copy(QClipboard::Selection); - } else if (!d->control->isReadOnly() && e->button() == Qt::MidButton) { + } else if (!d->control->isReadOnly() && e->button() == Qt::MiddleButton) { deselect(); d->control->paste(QClipboard::Selection); } |