forked from qt-creator/qt-creator
WinRt: Use current plugin setup naming pattern
Change-Id: I13eddd9c92b41bfdc4964eecde64f9dd8f3cc147 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
@@ -43,7 +43,7 @@ using namespace ProjectExplorer;
|
|||||||
namespace WinRt {
|
namespace WinRt {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class WinRtPluginRunData
|
class WinRtPluginPrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WinRtRunConfigurationFactory runConfigFactory;
|
WinRtRunConfigurationFactory runConfigFactory;
|
||||||
@@ -58,14 +58,9 @@ public:
|
|||||||
WinRtDeviceFactory emulatorDeviceFactory{Constants::WINRT_DEVICE_TYPE_EMULATOR};
|
WinRtDeviceFactory emulatorDeviceFactory{Constants::WINRT_DEVICE_TYPE_EMULATOR};
|
||||||
};
|
};
|
||||||
|
|
||||||
WinRtPlugin::WinRtPlugin()
|
|
||||||
{
|
|
||||||
setObjectName(QLatin1String("WinRtPlugin"));
|
|
||||||
}
|
|
||||||
|
|
||||||
WinRtPlugin::~WinRtPlugin()
|
WinRtPlugin::~WinRtPlugin()
|
||||||
{
|
{
|
||||||
delete m_runData;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WinRtPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
bool WinRtPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||||
@@ -73,7 +68,7 @@ bool WinRtPlugin::initialize(const QStringList &arguments, QString *errorMessage
|
|||||||
Q_UNUSED(arguments)
|
Q_UNUSED(arguments)
|
||||||
Q_UNUSED(errorMessage)
|
Q_UNUSED(errorMessage)
|
||||||
|
|
||||||
m_runData = new WinRtPluginRunData;
|
d = new WinRtPluginPrivate;
|
||||||
|
|
||||||
auto runConstraint = [](RunConfiguration *runConfig) {
|
auto runConstraint = [](RunConfiguration *runConfig) {
|
||||||
IDevice::ConstPtr device = DeviceKitAspect::device(runConfig->target()->kit());
|
IDevice::ConstPtr device = DeviceKitAspect::device(runConfig->target()->kit());
|
||||||
|
@@ -30,22 +30,19 @@
|
|||||||
namespace WinRt {
|
namespace WinRt {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class WinRtPluginRunData;
|
|
||||||
|
|
||||||
class WinRtPlugin : public ExtensionSystem::IPlugin
|
class WinRtPlugin : public ExtensionSystem::IPlugin
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "WinRt.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "WinRt.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WinRtPlugin();
|
|
||||||
~WinRtPlugin() final;
|
~WinRtPlugin() final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool initialize(const QStringList &arguments, QString *errorMessage) final;
|
bool initialize(const QStringList &arguments, QString *errorMessage) final;
|
||||||
void extensionsInitialized() final {}
|
void extensionsInitialized() final {}
|
||||||
|
|
||||||
WinRtPluginRunData *m_runData = nullptr;
|
class WinRtPluginPrivate *d = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
Reference in New Issue
Block a user