UI: Fix Qt6-incompatible operator usage

Commit 60d95cb5 introduced some code that used the + operator on two
Qt::Modifier items. Using a pipe operator instead fixes the compilation
error on Qt5 and Qt6.
This commit is contained in:
Ryan Foster 2021-09-07 12:44:21 -04:00 • committed by Jim
commit bb5820b882

View file

@ -386,7 +386,7 @@ OBSBasic::OBSBasic(QWidget *parent)
// Register shortcuts for Undo/Redo
ui->actionMainUndo->setShortcut(Qt::CTRL + Qt::Key_Z);
QList<QKeySequence> shrt;
shrt << QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_Z)
shrt << QKeySequence(Qt::CTRL | Qt::SHIFT + Qt::Key_Z)
<< QKeySequence(Qt::CTRL + Qt::Key_Y);
ui->actionMainRedo->setShortcuts(shrt);