aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2014-07-23 16:07:39 +0200
committerhjk <[email protected]>2014-07-24 10:32:06 +0200
commit7bb3f728ef583c7ae9a6717a3816f785a914c9c2 (patch)
tree7c1494a5515b2e16a6b1bd29151fa57bf04753a2 /src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp
parent089e6901086fed09404b9b22be9a56eed7f7bbdf (diff)
Analyzer: Set dockwidget title on inner widget first
Will be promoted to dockwidget title by the fancy mainwindow. Change-Id: Idbb4d2869c254140a241cd5a8f5b75b3ef739692 Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp b/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp
index b4c59360b22..58e1e1b4485 100644
--- a/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilerviewmanager.cpp
@@ -96,6 +96,7 @@ void QmlProfilerViewManager::createViews()
this,
d->profilerModelManager,
d->profilerState);
+ d->traceView->setWindowTitle(tr("Timeline"));
connect(d->traceView, SIGNAL(gotoSourceLocation(QString,int,int)),
this, SIGNAL(gotoSourceLocation(QString,int,int)));
d->traceView->reset();
@@ -103,6 +104,7 @@ void QmlProfilerViewManager::createViews()
d->eventsView = new QmlProfilerEventsWidget(mw, d->profilerTool, this,
d->profilerModelManager);
+ d->eventsView->setWindowTitle(tr("Events"));
connect(d->eventsView, SIGNAL(gotoSourceLocation(QString,int,int)), this,
SIGNAL(gotoSourceLocation(QString,int,int)));
connect(d->eventsView, SIGNAL(eventSelectedByTypeIndex(int)),
@@ -112,6 +114,7 @@ void QmlProfilerViewManager::createViews()
d->v8profilerView = new QV8ProfilerEventsWidget(mw, d->profilerTool, this,
d->profilerModelManager);
+ d->v8profilerView->setWindowTitle(tr("JavaScript"));
connect(d->v8profilerView, SIGNAL(gotoSourceLocation(QString,int,int)), this,
SIGNAL(gotoSourceLocation(QString,int,int)));
connect(d->traceView, SIGNAL(gotoSourceLocation(QString,int,int)),
@@ -124,11 +127,11 @@ void QmlProfilerViewManager::createViews()
d->v8profilerView, SLOT(selectBySourceLocation(QString,int,int)));
QDockWidget *eventsDock = AnalyzerManager::createDockWidget
- (d->profilerTool, tr("Events"), d->eventsView, Qt::BottomDockWidgetArea);
+ (d->profilerTool, d->eventsView, Qt::BottomDockWidgetArea);
QDockWidget *timelineDock = AnalyzerManager::createDockWidget
- (d->profilerTool, tr("Timeline"), d->traceView, Qt::BottomDockWidgetArea);
- QDockWidget *v8profilerDock = AnalyzerManager::createDockWidget(
- d->profilerTool, tr("JavaScript"), d->v8profilerView, Qt::BottomDockWidgetArea);
+ (d->profilerTool, d->traceView, Qt::BottomDockWidgetArea);
+ QDockWidget *v8profilerDock = AnalyzerManager::createDockWidget
+ (d->profilerTool, d->v8profilerView, Qt::BottomDockWidgetArea);
eventsDock->show();
timelineDock->show();