CDockAreaTitleBar::resizeEvent function to fix issue #656

This commit is contained in:
Uwe Kindler
2024-12-12 14:53:24 +01:00
parent 1f21eb0200
commit e2f611ea9a
2 changed files with 14 additions and 4 deletions

View File

@@ -385,7 +385,10 @@ void CDockAreaTitleBar::resizeEvent(QResizeEvent *event)
if (CDockManager::testConfigFlag(CDockManager::DockAreaDynamicTabsMenuButtonVisibility)
&& CDockManager::testConfigFlag(CDockManager::DisableTabTextEliding))
{
markTabsMenuOutdated();
// Use queued connection to ensure that the resizing and relayouting has
// finished to ensure that the d->TabBar->areTabsOverflowing() function
// returns the correct value
QMetaObject::invokeMethod(this, "markTabsMenuOutdated", Qt::QueuedConnection);
}
}