summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@nokia.com>2012-02-15 16:41:42 +0100
committerChristiaan Janssen <christiaan.janssen@nokia.com>2012-02-17 17:24:40 +0100
commit1fca414997f42f5871596a9bc956b48ffb4fd909 (patch)
tree2efd92184decae3219303cf0c3a824cc04f6adcd /src
parent585e651310edccae8acab8511cccd85e6c2fe74f (diff)
downloadqt-creator-1fca414997f42f5871596a9bc956b48ffb4fd909.tar.gz
QmlProfiler: cleaning events pane when stopping from server
Change-Id: I0e215b16d1a07124579a8ae593c13c8571d24ab8 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertool.cpp1
-rw-r--r--src/plugins/qmlprofiler/tracewindow.cpp2
-rw-r--r--src/plugins/qmlprofiler/tracewindow.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp
index cabfd6bc41..6d8c5979d7 100644
--- a/src/plugins/qmlprofiler/qmlprofilertool.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp
@@ -454,6 +454,7 @@ QWidget *QmlProfilerTool::createWidgets()
d->m_traceWindow = new TraceWindow(mw);
d->m_traceWindow->reset(d->m_client);
+ connect(d->m_traceWindow, SIGNAL(clearViewsFromTool()), this, SLOT(clearDisplay()));
connect(d->m_traceWindow, SIGNAL(gotoSourceLocation(QString,int,int)),this, SLOT(gotoSourceLocation(QString,int,int)));
connect(d->m_traceWindow, SIGNAL(contextMenuRequested(QPoint)), this, SLOT(showContextMenu(QPoint)));
connect(d->m_traceWindow->getEventList(), SIGNAL(error(QString)), this, SLOT(showErrorDialog(QString)));
diff --git a/src/plugins/qmlprofiler/tracewindow.cpp b/src/plugins/qmlprofiler/tracewindow.cpp
index 0e4953180c..2c35537801 100644
--- a/src/plugins/qmlprofiler/tracewindow.cpp
+++ b/src/plugins/qmlprofiler/tracewindow.cpp
@@ -626,7 +626,7 @@ void TraceWindow::eventListStateChanged()
void TraceWindow::manageTraceStart(qint64 traceStart)
{
// new trace started
- clearDisplay();
+ emit clearViewsFromTool();
emit traceStarted(traceStart);
}
diff --git a/src/plugins/qmlprofiler/tracewindow.h b/src/plugins/qmlprofiler/tracewindow.h
index 80134c7c66..df2d3fe27f 100644
--- a/src/plugins/qmlprofiler/tracewindow.h
+++ b/src/plugins/qmlprofiler/tracewindow.h
@@ -148,6 +148,7 @@ signals:
void recordingChanged(bool);
void internalClearDisplay();
+ void clearViewsFromTool();
void jumpToPrev();
void jumpToNext();
void rangeModeChanged(bool);