diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-03-14 10:58:55 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-03-14 10:55:34 +0000 |
commit | b6c1e58f58658a97dfd11ec150e2fddcec366944 (patch) | |
tree | ec93f0dc7b2022d7a88876c08f6028a7ca09d33f /src/plugins/qtsupport/uicgenerator.h | |
parent | ee729091fdee19261dacb7d037c367eded585788 (diff) |
ExtraCompiler: Parent extra compilers to plugins
Previously the extra compilers were never destructed. As any plugin that
registers an extra compiler factory has to depend on ProjectExplorer, it
will delete its factory before ProjectExplorer is unloaded. So, removing
the extra compiler from the list on destroyed() is safe.
Change-Id: I22fbe662a5704c0294512b8774acb85745c1cbe5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/qtsupport/uicgenerator.h')
-rw-r--r-- | src/plugins/qtsupport/uicgenerator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qtsupport/uicgenerator.h b/src/plugins/qtsupport/uicgenerator.h index e51281606ee..21fd09e12b9 100644 --- a/src/plugins/qtsupport/uicgenerator.h +++ b/src/plugins/qtsupport/uicgenerator.h @@ -50,6 +50,8 @@ class UicGeneratorFactory : public ProjectExplorer::ExtraCompilerFactory { Q_OBJECT public: + UicGeneratorFactory(QObject *parent = 0) : ExtraCompilerFactory(parent) {} + ProjectExplorer::FileType sourceType() const override; QString sourceTag() const override; |