diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-09-06 18:22:39 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-09-07 15:50:02 +0200 |
commit | cf482d702bbc5eeef12bbfdaefd2710e727dece3 (patch) | |
tree | 942a580832b9e8a5c05fa58859ece5ece57308af /tests/auto/widgets | |
parent | 3e210dc19a6f51e34a788bcd492741628224111c (diff) |
tst_qmenubar: stop doing math on an enum
Cast to the right datatypes.
Change-Id: Ia1ba9be1b0530263e810b50408f432dca485744c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/widgets')
-rw-r--r-- | tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp b/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp index 39ab5f6ebf..7a9676f56b 100644 --- a/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp +++ b/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp @@ -290,7 +290,7 @@ QAction *tst_QMenuBar::createCharacterAction(QMenu *menu, char lowerAscii) action->setObjectName(text); action->setData(QVariant(int(lowerAscii))); #if QT_CONFIG(shortcut) - action->setShortcut(Qt::CTRL + (lowerAscii - 'a' + Qt::Key_A)); + action->setShortcut(Qt::CTRL + Qt::Key(lowerAscii - 'a' + int(Qt::Key_A))); #endif connect(action, SIGNAL(triggered()), this, SLOT(onComplexActionTriggered())); return action; |