Skip to content

Commit acfc96f

Browse files
Properly update DockAreaTabBar geometry if tab text changed
1 parent e6e83d5 commit acfc96f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/DockAreaTabBar.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@ bool CDockAreaTabBar::eventFilter(QObject *watched, QEvent *event)
456456
updateGeometry();
457457
break;
458458

459+
// Setting the text of a tab will cause a LayoutRequest event
460+
case QEvent::LayoutRequest:
461+
updateGeometry();
462+
break;
463+
459464
default:
460465
break;
461466
}

0 commit comments

Comments
 (0)