Remove now unneeded TabBar::currentTabChanged(int)

It's all in terms of current dock widget now, not indexes.
This commit is contained in:
Sergio Martins
2022-08-14 18:31:50 +01:00
parent 0b5e9bc6c1
commit 7f072366ed
5 changed files with 0 additions and 19 deletions

View File

@@ -46,13 +46,6 @@ void Stack_qtquick::init()
m_tabBarAutoHideChanged =
m_stack->tabBarAutoHideChanged.connect([this] { Q_EMIT tabBarAutoHideChanged(); });
// Emit even if it hasn't changed. When removing indexes lower than the current tab the current
// tab index will shift. Too much refactoring to make this signal be emitted less than it's
// needed, but no big deal either, as it's mostly used to update tab title's and such.
connect(m_dockWidgetModel, &DockWidgetModel::dockWidgetRemoved, m_stack, [this] {
Q_EMIT m_stack->tabBar()->currentTabChanged(m_stack->tabBar()->currentIndex());
});
Q_EMIT tabBarChanged();
}
@@ -215,7 +208,6 @@ void DockWidgetModel::setCurrentIndex(int index)
if (m_currentDockWidget != dw) {
setCurrentDockWidget(dw);
m_tabBar->setCurrentIndex(index);
Q_EMIT m_tabBar->currentTabChanged(index);
}
}