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
parent
3ca921293a
commit
d6dcf508a6
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue