Skip to content

Commit c552fef

Browse files
Added documentation for the queued _this->ensureWidgetVisible(TabWidget) call
1 parent 916df28 commit c552fef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DockAreaTabBar.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ void DockAreaTabBarPrivate::updateTabs()
108108
{
109109
TabWidget->show();
110110
TabWidget->setActiveTab(true);
111+
// Sometimes the synchronous calculation of the rectangular area fails
112+
// Therefore we use QTimer::singleShot here to execute the call
113+
// within the event loop - see #520
111114
QTimer::singleShot(0, [&, TabWidget]{
112115
_this->ensureWidgetVisible(TabWidget);
113116
});

0 commit comments

Comments
 (0)