Gui: Add proper tooltip to Workbench TabBar tab
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user