fix: Linux menu bar renders as horizontal tool buttons instead of collapsed extension popup

On Linux, QMenuBar inside a custom title bar widget (setMenuWidget) collapses
all items into the extension overflow popup. Replace with QToolButton widgets
on Linux that share the same QMenu objects. Includes hover-to-switch behavior
via event filter on open menus.

Windows and macOS paths are unchanged — guarded by #ifdef __linux__ and
runtime m_useToolButtons flag.
This commit is contained in:
Your Name
2026-03-14 15:51:31 -04:00
parent 97b6f55e1f
commit 4f2288048e
3 changed files with 83 additions and 1 deletions

View File

@@ -615,6 +615,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) {
createSymbolsDock();
createMenus();
if (m_titleBar) m_titleBar->finalizeMenuBar();
createStatusBar();
// Eliminate gap between central widget and status bar