Fixes: coreplugin: remove 'fat' BaseView constructor

Details:  failed trial before the committee on un-qtish behaviour
This commit is contained in:
hjk
2009-01-26 14:49:26 +01:00
parent 62d78bb062
commit f4721eaae2
4 changed files with 14 additions and 30 deletions

View File

@@ -309,8 +309,10 @@ bool MainWindow::init(QString *errorMessage)
// Add widget to the bottom, we create the view here instead of inside the
// OutputPaneManager, since the ViewManager needs to be initilized before
m_outputView = new Core::BaseView("OutputWindow.Buttons",
OutputPaneManager::instance()->buttonsWidget(), QList<int>(), Core::IView::Second);
m_outputView = new Core::BaseView;
m_outputView->setUniqueViewName("OutputWindow.Buttons");
m_outputView->setWidget(OutputPaneManager::instance()->buttonsWidget());
m_outputView->setDefaultPosition(Core::IView::Second);
pm->addObject(m_outputView);
return true;
}