Gui: fix C++20 warning: bitwise operation between different enumeration types [-Wdeprecated-enum-enum-conversion]

This commit is contained in:
wmayer
2021-12-02 09:59:31 +01:00
parent 2e5bcae6b8
commit 4f12416fa0
4 changed files with 14 additions and 16 deletions

View File

@@ -45,7 +45,7 @@ TextEdit::TextEdit(QWidget* parent)
//Note: Set the correct context to this shortcut as we may use several instances of this
//class at a time
QShortcut* shortcut = new QShortcut(this);
shortcut->setKey(Qt::CTRL+Qt::Key_Space);
shortcut->setKey(QKeySequence(QString::fromLatin1("CTRL+Space")));
shortcut->setContext(Qt::WidgetShortcut);
connect(shortcut, SIGNAL(activated()), this, SLOT(complete()));