diff options
author | Qiang Li <liqianga@uniontech.com> | 2020-11-30 13:37:49 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-12-03 04:52:10 +0000 |
commit | 61829b5d39ba13feb5eb69f5d8a3070c78c857e8 (patch) | |
tree | 2222c0d5a4ef657da4110017f7ecbc5f8cd21640 /src/widgets/widgets | |
parent | e911d57f24cf30e9052486c0eba48ce6dc3542ff (diff) |
Adjust the format of code blocks in function mouseReleaseEvent
Change-Id: I8441b1c4f22ec04e34e8c2c5e9ccc69d34c67e01
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit d6dcf508a6a751c8c32273112957607b062899e8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
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) |