From f959990ab11466ce8ded7d94ea13737a298274a2 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 8 Aug 2013 11:37:15 +0200 Subject: QmlProfiler: Use real type instead of base class Change-Id: I854834b2236a99af264d14a3d6022bfa6e0a2b9b Reviewed-by: Christiaan Janssen --- src/plugins/qmlprofiler/qmlprofilereventview.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/plugins/qmlprofiler/qmlprofilereventview.cpp') diff --git a/src/plugins/qmlprofiler/qmlprofilereventview.cpp b/src/plugins/qmlprofiler/qmlprofilereventview.cpp index d956fa61bc..5f4f16b24d 100644 --- a/src/plugins/qmlprofiler/qmlprofilereventview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilereventview.cpp @@ -100,7 +100,7 @@ public: QmlProfilerEventsWidget *q; - Analyzer::IAnalyzerTool *m_profilerTool; + QmlProfilerTool *m_profilerTool; QmlProfilerViewManager *m_viewContainer; QmlProfilerEventsMainView *m_eventTree; @@ -112,7 +112,7 @@ public: }; QmlProfilerEventsWidget::QmlProfilerEventsWidget(QWidget *parent, - Analyzer::IAnalyzerTool *profilerTool, + QmlProfilerTool *profilerTool, QmlProfilerViewManager *container, QmlProfilerDataModel *profilerDataModel ) : QWidget(parent), d(new QmlProfilerEventsWidgetPrivate(this)) @@ -215,11 +215,10 @@ void QmlProfilerEventsWidget::contextMenuEvent(QContextMenuEvent *ev) QAction *getLocalStatsAction = 0; QAction *getGlobalStatsAction = 0; - QmlProfilerTool *profilerTool = qobject_cast(d->m_profilerTool); QPoint position = ev->globalPos(); - if (profilerTool) { - QList commonActions = profilerTool->profilerContextMenuActions(); + if (d->m_profilerTool) { + QList commonActions = d->m_profilerTool->profilerContextMenuActions(); foreach (QAction *act, commonActions) { menu.addAction(act); } -- cgit v1.2.1