diff options
author | Jan Holthuis <jholthuis@mixxx.org> | 2022-01-14 23:09:25 +0100 |
---|---|---|
committer | Jan Holthuis <jholthuis@mixxx.org> | 2022-01-14 23:12:08 +0100 |
commit | 94beac615796eadd982223d0131e7c7a1418142a (patch) | |
tree | a7839ff88aa1c12a2f429b2609148f6b11d58539 | |
parent | 14b70b421286d8e5da56a42248ffcc0c3497efb2 (diff) |
WTrackMenu: Use operator| instead of operator+ for QKeySequence
This is forward-compatible with Qt6.
-rw-r--r-- | src/widget/wtrackmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget/wtrackmenu.cpp b/src/widget/wtrackmenu.cpp index f3ecc1766b..bf7c964e52 100644 --- a/src/widget/wtrackmenu.cpp +++ b/src/widget/wtrackmenu.cpp @@ -180,7 +180,7 @@ void WTrackMenu::createMenus() { void WTrackMenu::createActions() { const auto hideRemoveKeySequence = - QKeySequence(kHideRemoveShortcutModifier + kHideRemoveShortcutKey); + QKeySequence(kHideRemoveShortcutModifier | kHideRemoveShortcutKey); if (featureIsEnabled(Feature::AutoDJ)) { m_pAutoDJBottomAct = new QAction(tr("Add to Auto DJ Queue (bottom)"), this); @@ -245,7 +245,7 @@ void WTrackMenu::createActions() { // The keypress is caught in WTrackTableView::keyPressEvent if (m_pTrackModel) { m_pPropertiesAct->setShortcut( - QKeySequence(kPropertiesShortcutModifier + kPropertiesShortcutKey)); + QKeySequence(kPropertiesShortcutModifier | kPropertiesShortcutKey)); } connect(m_pPropertiesAct, &QAction::triggered, this, &WTrackMenu::slotShowDlgTrackInfo); } |