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>
This commit is contained in:
parent
e911d57f24
commit
61829b5d39
@ -2958,7 +2958,7 @@ void QMenu::mouseReleaseEvent(QMouseEvent *e)
|
|||||||
QAction *action = d->actionAt(e->position().toPoint());
|
QAction *action = d->actionAt(e->position().toPoint());
|
||||||
|
|
||||||
if (action && action == d->currentAction) {
|
if (action && action == d->currentAction) {
|
||||||
if (!action->menu()){
|
if (!action->menu()) {
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
//On Windows only context menus can be activated with the right button
|
//On Windows only context menus can be activated with the right button
|
||||||
if (e->button() == Qt::LeftButton || d->topCausedWidget() == 0)
|
if (e->button() == Qt::LeftButton || d->topCausedWidget() == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user