fix: enable hover on dock tab bars via WA_Hover attribute

This commit is contained in:
IChooseYou
2026-03-06 09:45:23 -07:00
committed by IChooseYou
parent 03c49d19dd
commit e5938f7e82

View File

@@ -1733,6 +1733,7 @@ void MainWindow::setupDockTabBars() {
// No stylesheet — painting handled by MenuBarStyle
tabBar->setStyleSheet(QString());
tabBar->setAttribute(Qt::WA_Hover, true);
tabBar->setElideMode(Qt::ElideNone);
tabBar->setExpanding(false);
// Set editor font so tab width sizing matches our label painting
@@ -2316,6 +2317,7 @@ void MainWindow::applyTheme(const Theme& theme) {
if (tabBar->parent() == this) {
// No stylesheet — painting handled by MenuBarStyle (CE_TabBarTabShape/Label)
tabBar->setStyleSheet(QString());
tabBar->setAttribute(Qt::WA_Hover, true);
tabBar->setElideMode(Qt::ElideNone);
tabBar->setExpanding(false);
// Set editor font so tab width sizing matches our label painting