QmlProjectPlugin: Clean up

- Remove unneeded use of global object pool
- Remove a few unneeded includes and declarations
- Un-export class, it's not used from the outside

Change-Id: Iddfcf74b754c936a8adb23c2caa6f7eef6d0e654
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2018-02-15 14:51:31 +01:00
parent 5cf39393d9
commit a3154bf299
2 changed files with 11 additions and 22 deletions

View File

@@ -25,23 +25,24 @@
#pragma once
#include "qmlprojectmanager_global.h"
#include <extensionsystem/iplugin.h>
namespace QmlProjectManager {
namespace Internal {
class QMLPROJECTMANAGER_EXPORT QmlProjectPlugin: public ExtensionSystem::IPlugin
class QmlProjectPlugin: public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "QmlProjectManager.json")
public:
QmlProjectPlugin();
~QmlProjectPlugin();
QmlProjectPlugin() = default;
~QmlProjectPlugin() final;
virtual bool initialize(const QStringList &arguments, QString *errorString);
virtual void extensionsInitialized();
private:
bool initialize(const QStringList &arguments, QString *errorString) final;
void extensionsInitialized() final {}
};
} // namespace Internal
} // namespace QmlProject