QFileDialog: fix enumeration mismatch
To define a shortcut a Qt::ArrowType enum value was getting mixed with a keyboard modifier. An actual mistake spotted by blocking mixed-enum operations! Change-Id: I4df56ee411599937c243288e8518b5c1df446397 Pick-To: 5.15 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
2c9a29a09a
commit
ca88c6ab58
@ -3346,7 +3346,7 @@ void QFileDialogPrivate::createMenuActions()
|
||||
QAction *goToParent = new QAction(q);
|
||||
goToParent->setObjectName(QLatin1String("qt_goto_parent_action"));
|
||||
#ifndef QT_NO_SHORTCUT
|
||||
goToParent->setShortcut(Qt::CTRL + Qt::UpArrow);
|
||||
goToParent->setShortcut(Qt::CTRL | Qt::Key_Up);
|
||||
#endif
|
||||
QObject::connect(goToParent, SIGNAL(triggered()), q, SLOT(_q_navigateToParent()));
|
||||
q->addAction(goToParent);
|
||||
|
Loading…
Reference in New Issue
Block a user