Gui: Add proper tooltip to Workbench TabBar tab

This commit is contained in:
Kacper Donat
2024-05-12 19:05:14 +02:00
parent 3405939f10
commit 7e22dade12
+2
View File
@@ -225,6 +225,8 @@ void WorkbenchTabWidget::addWorkbenchTab(QAction* action)
tabBar->addTab(icon, action->text());
}
tabBar->setTabToolTip(tabBar->count() - 1, action->toolTip());
if (action->isChecked()) {
tabBar->setCurrentIndex(tabBar->count() - 1);
}