forked from qt-creator/qt-creator
CMake: Pimpl CMakeProjectPlugin and avoid use of global object pool
Follows the recent pattern. Change-Id: Ib91fb8e6ab343b5e595b9ed470daa3e55999f37c Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -27,14 +27,7 @@
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
#include <QObject>
|
||||
|
||||
namespace Utils { class ParameterAction; }
|
||||
|
||||
namespace CMakeProjectManager {
|
||||
|
||||
class CMakeProject;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class CMakeProjectPlugin : public ExtensionSystem::IPlugin
|
||||
@@ -43,9 +36,7 @@ class CMakeProjectPlugin : public ExtensionSystem::IPlugin
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "CMakeProjectManager.json")
|
||||
|
||||
public:
|
||||
bool initialize(const QStringList &arguments, QString *errorMessage) override;
|
||||
|
||||
void extensionsInitialized() override;
|
||||
~CMakeProjectPlugin() override;
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
private slots:
|
||||
@@ -66,11 +57,13 @@ private slots:
|
||||
#endif
|
||||
|
||||
private:
|
||||
bool initialize(const QStringList &arguments, QString *errorMessage) override;
|
||||
void extensionsInitialized() override;
|
||||
|
||||
void updateContextActions();
|
||||
|
||||
Utils::ParameterAction *m_buildTargetContextAction = nullptr;
|
||||
QMetaObject::Connection m_actionConnect;
|
||||
class CMakeProjectPluginPrivate *d = nullptr;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProject
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
Reference in New Issue
Block a user