diff options
author | hjk <hjk@qt.io> | 2019-03-14 09:17:59 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-03-18 14:14:28 +0000 |
commit | fb4d8b5a01440046d19b27449261b98415fefdf5 (patch) | |
tree | 31069a7a29afb95f62037150cc9a76fb1b437f53 /src/plugins/qtsupport/qtsupportplugin.cpp | |
parent | fbc043c96d66d35c02d50f75c7bdea5876bc7d2c (diff) |
ProjectExplorer: Make kit aspects self-register
Also, construct the KitManager implicitly when the first
KitAspect is created. Ramp-down is still explicit and
somewhat odd.
Change-Id: If1506e1d0789ecabbaad2d8008851d0b42c5218b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/qtsupportplugin.cpp')
-rw-r--r-- | src/plugins/qtsupport/qtsupportplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qtsupport/qtsupportplugin.cpp b/src/plugins/qtsupport/qtsupportplugin.cpp index daa32ce8704..7b98a146b9a 100644 --- a/src/plugins/qtsupport/qtsupportplugin.cpp +++ b/src/plugins/qtsupport/qtsupportplugin.cpp @@ -68,6 +68,8 @@ public: ExamplesWelcomePage examplesPage{true}; ExamplesWelcomePage tutorialPage{false}; + + QtKitAspect qtKiAspect; }; QtSupportPlugin::~QtSupportPlugin() @@ -87,8 +89,6 @@ bool QtSupportPlugin::initialize(const QStringList &arguments, QString *errorMes d = new QtSupportPluginPrivate; - ProjectExplorer::KitManager::registerKitAspect<QtKitAspect>(); - (void) new UicGeneratorFactory(this); (void) new QScxmlcGeneratorFactory(this); |