qtquick: Fix Stack creating two TabBar's
It's created by the controller, we shouldn't create another one in the view
This commit is contained in:
@@ -41,7 +41,6 @@ Stack_qtquick::Stack_qtquick(Controllers::Stack *controller,
|
||||
|
||||
void Stack_qtquick::init()
|
||||
{
|
||||
m_tabBar = new Controllers::TabBar(m_stack);
|
||||
Q_EMIT tabBarChanged();
|
||||
}
|
||||
|
||||
@@ -89,7 +88,7 @@ void Stack_qtquick::setCurrentDockWidget(int index)
|
||||
|
||||
QObject *Stack_qtquick::tabBarViewObj() const
|
||||
{
|
||||
return m_tabBar->view()->asQObject();
|
||||
return m_stack->tabBar()->view()->asQObject();
|
||||
}
|
||||
|
||||
Controllers::DockWidget *Stack_qtquick::currentDockWidget() const
|
||||
|
||||
Reference in New Issue
Block a user