Commit 0e3634d3 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Don't show extra tool buttons in the side bars

Task-number: QTCREATORBUG-11731
Change-Id: I75b70ace17ef291a7baa64abd6068bf472b43546
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 1e6577d9
......@@ -303,6 +303,12 @@ void DesignModeWidget::setCurrentDesignDocument(DesignDocument *newDesignDocumen
}
static void deleteToolButtons(QList<QToolButton*> &buttons)
{
qDeleteAll(buttons);
buttons.clear();
}
void DesignModeWidget::setup()
{
QList<Core::INavigationWidgetFactory *> factories =
......@@ -318,14 +324,17 @@ void DesignModeWidget::setup()
if (factory->id() == "Projects") {
navigationView = factory->createWidget();
projectsExplorer = navigationView.widget;
deleteToolButtons(navigationView.dockToolBarWidgets);
projectsExplorer->setWindowTitle(tr("Projects"));
} else if (factory->id() == "File System") {
navigationView = factory->createWidget();
fileSystemExplorer = navigationView.widget;
deleteToolButtons(navigationView.dockToolBarWidgets);
fileSystemExplorer->setWindowTitle(tr("File System"));
} else if (factory->id() == "Open Documents") {
navigationView = factory->createWidget();
openDocumentsWidget = navigationView.widget;
deleteToolButtons(navigationView.dockToolBarWidgets);
openDocumentsWidget->setWindowTitle(tr("Open Documents"));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment