Show and hide the menu bar with the 'alt' key

Only applicable for systems without a native menu bar (i.e. almost anything that is not macOS or Ubuntu Unity). On these systems, the menu bar appears on top of the window, which does not look good next to the tool bar already up there.

When the menu bar is hidden, the keyboard shortcuts set by the menu bar are disabled. They should always work, so this also adds a workaround for that.
This commit is contained in:
Kenneth Chew
2022-04-08 16:21:52 -04:00
parent 75fddd0052
commit ab82358dcb
2 changed files with 63 additions and 0 deletions

View File

@ -186,6 +186,10 @@ private slots:
void globalSettingsClosed();
void keyReleaseEvent(QKeyEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
private:
void retranslateUi();