Store the "tab auto hide" state in the controller, not the view
Added a signal for the QtQuick view too
This commit is contained in:
@@ -41,6 +41,9 @@ Stack_qtquick::Stack_qtquick(Controllers::Stack *controller, QQuickItem *parent)
|
||||
|
||||
void Stack_qtquick::init()
|
||||
{
|
||||
m_tabBarAutoHideChanged = m_stack->tabBarAutoHideChanged.connect([this] {
|
||||
Q_EMIT tabBarAutoHideChanged();
|
||||
});
|
||||
Q_EMIT tabBarChanged();
|
||||
}
|
||||
|
||||
@@ -102,11 +105,6 @@ bool Stack_qtquick::insertDockWidget(int index, Controllers::DockWidget *dw, con
|
||||
return m_dockWidgetModel->insert(dw, index);
|
||||
}
|
||||
|
||||
void Stack_qtquick::setTabBarAutoHide(bool)
|
||||
{
|
||||
qWarning() << Q_FUNC_INFO << "Not implemented";
|
||||
}
|
||||
|
||||
void Stack_qtquick::renameTab(int index, const QString &)
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
@@ -138,6 +136,11 @@ int Stack_qtquick::currentIndex() const
|
||||
return index;
|
||||
}
|
||||
|
||||
bool Stack_qtquick::tabBarAutoHide() const
|
||||
{
|
||||
return m_stack->tabBarAutoHide();
|
||||
}
|
||||
|
||||
DockWidgetModel *Stack_qtquick::dockWidgetModel() const
|
||||
{
|
||||
return m_dockWidgetModel;
|
||||
|
||||
Reference in New Issue
Block a user