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:
Giuseppe D'Angelo 2020-05-04 15:06:43 +02:00 committed by Marc Mutz
parent 2c9a29a09a
commit ca88c6ab58

View File

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