forked from qt-creator/qt-creator
Ios: Hide plugin class in .cpp
Change-Id: I10577ed877c6038ffd714a1a414ed8ba7ec801ee Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "iosplugin.h"
|
||||
|
||||
#include "iosbuildconfiguration.h"
|
||||
#include "iosbuildstep.h"
|
||||
#include "iosconfigurations.h"
|
||||
@@ -18,6 +16,8 @@
|
||||
#include "iostr.h"
|
||||
#include "iosrunconfiguration.h"
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
#include <projectexplorer/deployconfiguration.h>
|
||||
#include <projectexplorer/devicesupport/devicemanager.h>
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
@@ -62,18 +62,28 @@ public:
|
||||
IosQmlProfilerWorkerFactory qmlProfilerWorkerFactory;
|
||||
};
|
||||
|
||||
IosPlugin::~IosPlugin()
|
||||
class IosPlugin final : public ExtensionSystem::IPlugin
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Ios.json")
|
||||
|
||||
void IosPlugin::initialize()
|
||||
{
|
||||
qRegisterMetaType<Ios::IosToolHandler::Dict>("Ios::IosToolHandler::Dict");
|
||||
~IosPlugin() final
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
IosConfigurations::initialize();
|
||||
void initialize() final
|
||||
{
|
||||
qRegisterMetaType<Ios::IosToolHandler::Dict>("Ios::IosToolHandler::Dict");
|
||||
|
||||
d = new IosPluginPrivate;
|
||||
}
|
||||
IosConfigurations::initialize();
|
||||
|
||||
d = new IosPluginPrivate;
|
||||
}
|
||||
|
||||
IosPluginPrivate *d = nullptr;
|
||||
};
|
||||
|
||||
} // Internal::Ios
|
||||
|
||||
#include "iosplugin.moc"
|
||||
|
||||
Reference in New Issue
Block a user