Skip to content

Commit

Permalink
move Key Wheel action to View menu (as the shortcut already says)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jan 26, 2025
1 parent d406e93 commit 87beaab
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/widget/wmainmenubar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,22 @@ void WMainMenuBar::initialize() {
ConfigKey(kSkinGroup, QStringLiteral("show_library_coverart")));
pViewMenu->addAction(pViewShowCoverArt);

//: menu title
QString keywheelTitle = tr("Show Keywheel");
//: tooltip text
QString keywheelText = tr("Show keywheel");
m_pViewKeywheel = new QAction(keywheelTitle, this);
m_pViewKeywheel->setCheckable(true);
m_pViewKeywheel->setShortcut(
QKeySequence(m_pKbdConfig->getValue(
ConfigKey("[KeyboardShortcuts]", "ViewMenu_ShowKeywheel"),
tr("F12", "Menubar|View|Show Keywheel"))));
m_pViewKeywheel->setShortcutContext(Qt::ApplicationShortcut);
m_pViewKeywheel->setStatusTip(keywheelText);
m_pViewKeywheel->setWhatsThis(buildWhatsThis(keywheelTitle, keywheelText));
connect(m_pViewKeywheel, &QAction::triggered, this, &WMainMenuBar::showKeywheel);
pViewMenu->addAction(m_pViewKeywheel);

QString maximizeLibraryTitle = tr("Maximize Library");
QString maximizeLibraryText = tr("Maximize the track library to take up all the available screen space.") +
" " + mayNotBeSupported;
Expand Down Expand Up @@ -608,22 +624,6 @@ void WMainMenuBar::initialize() {
externalLinkSuffix = QChar(' ') + QChar(0x2197); // north-east arrow
#endif

//: menu title
QString keywheelTitle = tr("Show Keywheel");
//: tooltip text
QString keywheelText = tr("Show keywheel");
m_pViewKeywheel = new QAction(keywheelTitle, this);
m_pViewKeywheel->setCheckable(true);
m_pViewKeywheel->setShortcut(
QKeySequence(m_pKbdConfig->getValue(
ConfigKey("[KeyboardShortcuts]", "ViewMenu_ShowKeywheel"),
tr("F12", "Menubar|View|Show Keywheel"))));
m_pViewKeywheel->setShortcutContext(Qt::ApplicationShortcut);
m_pViewKeywheel->setStatusTip(keywheelText);
m_pViewKeywheel->setWhatsThis(buildWhatsThis(keywheelTitle, keywheelText));
connect(m_pViewKeywheel, &QAction::triggered, this, &WMainMenuBar::showKeywheel);
pHelpMenu->addAction(m_pViewKeywheel);

// Community Support
QString supportTitle = tr("&Community Support") + externalLinkSuffix;
QString supportText = tr("Get help with Mixxx");
Expand Down

0 comments on commit 87beaab

Please sign in to comment.