Adjust the format of code blocks in function mouseReleaseEvent

Pick-to: 6.0
Change-Id: I8441b1c4f22ec04e34e8c2c5e9ccc69d34c67e01
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Qiang Li 2020-11-30 13:37:49 +08:00 committed by Volker Hilsheimer
parent 3ca921293a
commit d6dcf508a6
1 changed files with 1 additions and 1 deletions

View File

@ -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)