Added dockWidgetInserted|Removed signals to TabBarWidget

Since QTabBar doesn't have them.
Useful for custom tab bars
This commit is contained in:
Sergio Martins
2022-03-12 12:47:26 +00:00
parent fd4588de0f
commit 743dbc0718
2 changed files with 18 additions and 0 deletions

View File

@@ -169,3 +169,15 @@ void TabBarWidget::moveTabTo(int from, int to)
{
moveTab(from, to);
}
void TabBarWidget::tabInserted(int index)
{
QTabBar::tabInserted(index);
Q_EMIT dockWidgetInserted(index);
}
void TabBarWidget::tabRemoved(int index)
{
QTabBar::tabRemoved(index);
Q_EMIT dockWidgetRemoved(index);
}