fix: enable hover on dock tab bars via WA_Hover attribute

This commit is contained in:
IChooseYou authored and IChooseYou committed 2026-03-06 09:45:23 -07:00
1 parent 03c49d19dd
commit e5938f7e82
1 file changed
+2
+2
View File
@@ -1733,6 +1733,7 @@ void MainWindow::setupDockTabBars() {
// No stylesheet — painting handled by MenuBarStyle // No stylesheet — painting handled by MenuBarStyle
tabBar->setStyleSheet(QString()); tabBar->setStyleSheet(QString());
tabBar->setAttribute(Qt::WA_Hover, true);
tabBar->setElideMode(Qt::ElideNone); tabBar->setElideMode(Qt::ElideNone);
tabBar->setExpanding(false); tabBar->setExpanding(false);
// Set editor font so tab width sizing matches our label painting // 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) { if (tabBar->parent() == this) {
// No stylesheet — painting handled by MenuBarStyle (CE_TabBarTabShape/Label) // No stylesheet — painting handled by MenuBarStyle (CE_TabBarTabShape/Label)
tabBar->setStyleSheet(QString()); tabBar->setStyleSheet(QString());
tabBar->setAttribute(Qt::WA_Hover, true);
tabBar->setElideMode(Qt::ElideNone); tabBar->setElideMode(Qt::ElideNone);
tabBar->setExpanding(false); tabBar->setExpanding(false);
// Set editor font so tab width sizing matches our label painting // Set editor font so tab width sizing matches our label painting