diff options
author | Qiang Li <liqianga@uniontech.com> | 2020-11-30 13:37:49 +0800 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-12-03 02:19:15 +0000 |
commit | d6dcf508a6a751c8c32273112957607b062899e8 (patch) | |
tree | 2c0c13501fbfeef8b71c7afdbaf58f326af82237 /src/widgets/widgets | |
parent | 3ca921293a99e2eb3e9b43b5ce1f3e472fc3e0fb (diff) |
Adjust the format of code blocks in function mouseReleaseEvent
Pick-to: 6.0
Change-Id: I8441b1c4f22ec04e34e8c2c5e9ccc69d34c67e01
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/widgets')
-rw-r--r-- | src/widgets/widgets/qmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qmenu.cpp b/src/widgets/widgets/qmenu.cpp index 14bc2b48a6..a8ec683638 100644 --- a/src/widgets/widgets/qmenu.cpp +++ b/src/widgets/widgets/qmenu.cpp @@ -2958,7 +2958,7 @@ void QMenu::mouseReleaseEvent(QMouseEvent *e) QAction *action = d->actionAt(e->position().toPoint()); if (action && action == d->currentAction) { - if (!action->menu()){ + if (!action->menu()) { #if defined(Q_OS_WIN) //On Windows only context menus can be activated with the right button if (e->button() == Qt::LeftButton || d->topCausedWidget() == 0) |