Use preexisting actions in the menu bar

The code is now much cleaner.

Because the actions already present are enabled elsewhere even when the menu bar is hidden, keyboard shortcuts added to them automatically work regardless of whether the menu bar is visible. This means that the hacky workaround related to this can be removed.
This commit is contained in:
Kenneth Chew
2022-04-16 03:32:08 -04:00
parent e59d3a339f
commit 6a97ac603a
2 changed files with 307 additions and 424 deletions

View File

@ -190,8 +190,6 @@ private slots:
#ifndef Q_OS_MAC
void keyReleaseEvent(QKeyEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
#endif
private: