Merge remote-tracking branch 'origin/4.4'

Conflicts:
	src/plugins/debugger/gdb/gdbengine.cpp

Change-Id: I8a7c8ca07d6d6005f5d39b8f1477ebbc7a299fbf
This commit is contained in:
Eike Ziller
2017-08-17 17:29:25 +02:00
34 changed files with 198 additions and 69 deletions

View File

@@ -90,7 +90,7 @@ bool QmlProfilerPlugin::initialize(const QStringList &arguments, QString *errorS
void QmlProfilerPlugin::extensionsInitialized()
{
(void) new QmlProfilerTool(this);
m_profilerTool = new QmlProfilerTool(this);
addAutoReleasedObject(new QmlProfilerOptionsPage);
@@ -112,6 +112,9 @@ void QmlProfilerPlugin::extensionsInitialized()
ExtensionSystem::IPlugin::ShutdownFlag QmlProfilerPlugin::aboutToShutdown()
{
delete m_profilerTool;
m_profilerTool = nullptr;
// Save settings.
// Disconnect from signals that are not needed during shutdown
// Hide UI (if you add UI that is not in the main window directly)

View File

@@ -34,6 +34,8 @@
namespace QmlProfiler {
namespace Internal {
class QmlProfilerTool;
class QmlProfilerPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
@@ -47,6 +49,9 @@ public:
static QmlProfilerSettings *globalSettings();
QList<QObject *> createTestObjects() const override;
private:
QmlProfilerTool *m_profilerTool = nullptr;
};
} // namespace Internal

View File

@@ -64,7 +64,7 @@ static QString QmlServerUrl = "QmlServerUrl";
class QmlProfilerRunner::QmlProfilerRunnerPrivate
{
public:
QmlProfilerStateManager *m_profilerState = 0;
QPointer<QmlProfilerStateManager> m_profilerState;
};
//