diff options
author | hjk <qtc-committer@nokia.com> | 2011-07-05 15:36:49 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-07-07 10:23:24 +0200 |
commit | 500981b9c0c96c9aec65a996cfc4b058d0a56ccc (patch) | |
tree | 973e010dcf5af4655ea745a17469526dfacbaf61 /src/plugins/valgrind | |
parent | 6cf89dcf650090e740e838c07bdbd5330d39edef (diff) | |
download | qt-creator-500981b9c0c96c9aec65a996cfc4b058d0a56ccc.tar.gz |
analyzer: change default dockwidget layout for callgrind tool
Change-Id: I7bdfa0a023f813c5da5fdec1d2c8a5abff6092b7
Reviewed-on: http://codereview.qt.nokia.com/1179
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/valgrind')
-rw-r--r-- | src/plugins/valgrind/callgrindtool.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index 7e0ea98b19..eef04d82a9 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -118,7 +118,6 @@ public: QWidget *createControlWidget(); void initializeDockWidgets(); - void ensureDockWidgets(); void doClear(bool clearParseData); void updateEventCombo(); @@ -577,14 +576,14 @@ void CallgrindToolPrivate::initializeDockWidgets() Utils::FancyMainWindow *mw = AnalyzerManager::mainWindow(); m_visualisation = new Visualisation(mw); m_visualisation->setFrameStyle(QFrame::NoFrame); - m_visualisation->setObjectName("Valgrind.CallgrindToolPrivate.Visualisation"); + m_visualisation->setObjectName("Valgrind.CallgrindTool.Visualisation"); m_visualisation->setModel(m_dataModel); connect(m_visualisation, SIGNAL(functionActivated(const Valgrind::Callgrind::Function*)), this, SLOT(visualisationFunctionSelected(const Valgrind::Callgrind::Function*))); m_callersView = new CostView(mw); + m_callersView->setObjectName("Valgrind.CallgrindTool.CallersView"); m_callersView->sortByColumn(CallModel::CostColumn); - m_callersView->setObjectName("Valgrind.CallgrindToolPrivate.CallersView"); m_callersView->setFrameStyle(QFrame::NoFrame); // enable sorting QSortFilterProxyModel *callerProxy = new QSortFilterProxyModel(m_callersModel); @@ -595,8 +594,8 @@ void CallgrindToolPrivate::initializeDockWidgets() this, SLOT(callerFunctionSelected(QModelIndex))); m_calleesView = new CostView(mw); + m_calleesView->setObjectName("Valgrind.CallgrindTool.CalleesView"); m_calleesView->sortByColumn(CallModel::CostColumn); - m_calleesView->setObjectName("Valgrind.CallgrindToolPrivate.CalleesView"); m_calleesView->setFrameStyle(QFrame::NoFrame); // enable sorting QSortFilterProxyModel *calleeProxy = new QSortFilterProxyModel(m_calleesModel); @@ -607,11 +606,11 @@ void CallgrindToolPrivate::initializeDockWidgets() this, SLOT(calleeFunctionSelected(QModelIndex))); m_flatView = new CostView(mw); + m_flatView->setObjectName("Valgrind.CallgrindTool.FlatView"); m_flatView->sortByColumn(DataModel::SelfCostColumn); m_flatView->setFrameStyle(QFrame::NoFrame); m_flatView->setAttribute(Qt::WA_MacShowFocusRect, false); m_flatView->setModel(m_proxyModel); - m_flatView->setObjectName("Valgrind.CallgrindToolPrivate.FlatView"); connect(m_flatView, SIGNAL(activated(QModelIndex)), this, SLOT(dataFunctionSelected(QModelIndex))); @@ -628,12 +627,15 @@ void CallgrindToolPrivate::initializeDockWidgets() QDockWidget *visualizationDock = AnalyzerManager::createDockWidget (q, tr("Visualization"), m_visualisation, Qt::RightDockWidgetArea); + + callersDock->show(); + calleesDock->show(); + flatDock->show(); visualizationDock->hide(); - mw->splitDockWidget(mw->toolBarDockWidget(), calleesDock, Qt::Vertical); - mw->splitDockWidget(mw->toolBarDockWidget(), callersDock, Qt::Vertical); mw->splitDockWidget(mw->toolBarDockWidget(), flatDock, Qt::Vertical); - mw->tabifyDockWidget(callersDock, calleesDock); + mw->splitDockWidget(mw->toolBarDockWidget(), calleesDock, Qt::Vertical); + mw->splitDockWidget(calleesDock, callersDock, Qt::Horizontal); } IAnalyzerEngine *CallgrindTool::createEngine(const AnalyzerStartParameters &sp, |