QmlProfiler: added 'clear view'

Reviewed-by: Kai Koehne
This commit is contained in:
Christiaan Janssen
2011-04-06 16:04:18 +02:00
parent 54eac56c00
commit e838a3dd7c
5 changed files with 40 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ public:
virtual QWidget *toolBarWidget() { return m_tool->createToolBarWidget(); }
virtual QWidget *paneWidget() { return m_tool->createTimeLineWidget(); }
virtual void clearContents() { /*TODO*/ }
virtual void clearContents() { m_tool->clearDisplay(); }
virtual void setFocus() { /*TODO*/ }
virtual bool hasFocus() const { return false; /*TODO*/ }
virtual bool canFocus() const { return false; /*TODO*/ }
@@ -350,6 +350,11 @@ bool QmlProfilerTool::canRunRemotely() const
return true;
}
void QmlProfilerTool::clearDisplay()
{
d->m_traceWindow->clearDisplay();
}
void QmlProfilerTool::attach()
{
if (!d->m_isAttached) {