Commit 60b85986 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: cleanup of DesignModeWidget

parent 70b43f08
......@@ -537,7 +537,7 @@ void DesignModeWidget::setup()
m_itemLibrary = new ItemLibrary(this);
m_designToolBar = new QToolBar;
//m_designToolBar = new QToolBar;
m_fakeToolBar = Core::EditorManager::createToolBar(this);
......@@ -577,11 +577,8 @@ void DesignModeWidget::setup()
m_leftSideBar = new Core::SideBar(leftSideBarItems, QList<Core::SideBarItem*>() << navigatorItem << libraryItem);
m_rightSideBar = new Core::SideBar(rightSideBarItems, QList<Core::SideBarItem*>() << propertiesItem);
m_designToolBar->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Ignored);
m_fakeToolBar->setToolbarCreationFlags(Core::EditorToolBar::FlagsStandalone);
//m_fakeToolBar->addEditor(textEditor()); ### what does this mean?
m_fakeToolBar->addCenterToolBar(m_designToolBar);
m_fakeToolBar->setNavigationVisible(false);
connect(m_fakeToolBar, SIGNAL(closeClicked()), this, SLOT(closeCurrentEditor()));
......
......@@ -174,8 +174,6 @@ private:
QSplitter *m_mainSplitter;
Core::SideBar *m_leftSideBar;
Core::SideBar *m_rightSideBar;
QToolBar *m_designToolBar;
Core::EditorToolBar *m_fakeToolBar;
bool m_isDisabled;
......
Supports Markdown
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