forked from qt-creator/qt-creator
QmlProfiler: Set parent for the QmlProfiler actions
Change-Id: Ia67d98855548c4d2c80ad76ff633a2399e30ad9c Reviewed-by: Ulf Hermann <ulf.hermann@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
committed by
Ulf Hermann
parent
3b221697ff
commit
30d914d4e7
@@ -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
|
|||||||
"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
|
|||||||
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)"));
|
||||||
|
|||||||
Reference in New Issue
Block a user