Commit 30d914d4 authored by Tobias Hunger's avatar Tobias Hunger Committed by Ulf Hermann
Browse files

QmlProfiler: Set parent for the QmlProfiler actions



Change-Id: Ia67d98855548c4d2c80ad76ff633a2399e30ad9c
Reviewed-by: default avatarUlf Hermann <ulf.hermann@digia.com>
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 3b221697
...@@ -46,7 +46,7 @@ namespace Internal { ...@@ -46,7 +46,7 @@ namespace Internal {
class QmlProfilerAction : public AnalyzerAction class QmlProfilerAction : public AnalyzerAction
{ {
public: public:
QmlProfilerAction() {} explicit QmlProfilerAction(QObject *parent = 0) : AnalyzerAction(parent) { }
}; };
bool QmlProfilerPlugin::debugOutput = false; bool QmlProfilerPlugin::debugOutput = false;
...@@ -65,7 +65,7 @@ bool QmlProfilerPlugin::initialize(const QStringList &arguments, QString *errorS ...@@ -65,7 +65,7 @@ bool QmlProfilerPlugin::initialize(const QStringList &arguments, QString *errorS
"The QML Profiler can be used to find performance bottlenecks in " "The QML Profiler can be used to find performance bottlenecks in "
"applications using QML."); "applications using QML.");
action = new QmlProfilerAction; action = new QmlProfilerAction(this);
action->setId("QmlProfiler.Local"); action->setId("QmlProfiler.Local");
action->setTool(tool); action->setTool(tool);
action->setText(tr("QML Profiler")); action->setText(tr("QML Profiler"));
...@@ -74,7 +74,7 @@ bool QmlProfilerPlugin::initialize(const QStringList &arguments, QString *errorS ...@@ -74,7 +74,7 @@ bool QmlProfilerPlugin::initialize(const QStringList &arguments, QString *errorS
action->setMenuGroup(Constants::G_ANALYZER_TOOLS); action->setMenuGroup(Constants::G_ANALYZER_TOOLS);
AnalyzerManager::addAction(action); AnalyzerManager::addAction(action);
action = new QmlProfilerAction; action = new QmlProfilerAction(this);
action->setId("QmlProfiler.Remote"); action->setId("QmlProfiler.Remote");
action->setTool(tool); action->setTool(tool);
action->setText(tr("QML Profiler (External)")); action->setText(tr("QML Profiler (External)"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment