Skip to content

Commit

Permalink
WTrackMenu: Use operator| instead of operator+ for QKeySequence
Browse files Browse the repository at this point in the history
This is forward-compatible with Qt6.
  • Loading branch information
Holzhaus committed Jan 14, 2022
1 parent 14b70b4 commit 94beac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/wtrackmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 94beac6

Please sign in to comment.