forked from qt-creator/qt-creator
qmlprofiler: instantiate docks when using the toolbar
Change-Id: Ic839a4cf18494115a9a9ace4738ecb163722c40b Reviewed-on: http://codereview.qt.nokia.com/1244 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -227,6 +227,14 @@ IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp
|
||||
|
||||
void QmlProfilerTool::initializeDockWidgets()
|
||||
{
|
||||
ensureWidgets();
|
||||
}
|
||||
|
||||
void QmlProfilerTool::ensureWidgets()
|
||||
{
|
||||
if (d->m_traceWindow)
|
||||
return;
|
||||
|
||||
Utils::FancyMainWindow *mw = AnalyzerManager::mainWindow();
|
||||
|
||||
d->m_traceWindow = new TraceWindow(mw);
|
||||
@@ -297,6 +305,8 @@ void QmlProfilerTool::toolDeselected()
|
||||
|
||||
QWidget *QmlProfilerTool::createControlWidget()
|
||||
{
|
||||
ensureWidgets();
|
||||
|
||||
// custom toolbar (TODO)
|
||||
QWidget *toolbarWidget = new QWidget;
|
||||
toolbarWidget->setObjectName(QLatin1String("QmlProfilerToolBarWidget"));
|
||||
|
Reference in New Issue
Block a user