Gui: Add proper tooltip to Workbench TabBar tab

This commit is contained in:
Kacper Donat
2024-05-03 22:38:23 +02:00
parent 3c7487638b
commit eb99c8bcda

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);
}