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:
parent
fd2aaf92b9
commit
bb5820b882
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue