forked from qt-creator/qt-creator
QmlProfiler: Clear button in toolbar
Change-Id: Id9739b7828b080b016aa41b13b4f5313a2319172 Reviewed-on: http://codereview.qt.nokia.com/750 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -312,6 +312,8 @@ void TraceWindow::reset(QDeclarativeDebugConnection *conn)
|
||||
|
||||
connect(m_view->rootObject(), SIGNAL(updateCursorPosition()), this, SLOT(updateCursorPosition()));
|
||||
connect(m_view->rootObject(), SIGNAL(updateTimer()), this, SLOT(updateTimer()));
|
||||
|
||||
connect(this, SIGNAL(internalClearDisplay()), m_view->rootObject(), SLOT(clearAll()));
|
||||
}
|
||||
|
||||
void TraceWindow::updateCursorPosition()
|
||||
@@ -329,6 +331,8 @@ void TraceWindow::clearDisplay()
|
||||
{
|
||||
if (m_plugin)
|
||||
m_plugin.data()->clearView();
|
||||
else
|
||||
emit internalClearDisplay();
|
||||
}
|
||||
|
||||
void TraceWindow::setRecording(bool recording)
|
||||
|
||||
Reference in New Issue
Block a user