aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtsupport/qtversionfactory.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-02-14 11:02:28 +0100
committerhjk <hjk@qt.io>2019-02-15 15:50:50 +0000
commit3007105d86be5bfd3016277eedb557cda01eeabf (patch)
tree42f1696acce015cc9971ceedd3a16a09721ef3ef /src/plugins/qtsupport/qtversionfactory.h
parentec6b38dea0a9c7f5b2b45dff6cbb2b1479f44878 (diff)
QtSupport: Split QtVersionFactory::create()
... into a 'canCreate()' and the actual creation, which can be done by the already registered m_creator. Simpler interface, with the (temporary) regression that the EmbeddedLinuxQtVersion get constructed twice, once only to determine that it should be alive afterwards. Will be fixed later. Change-Id: I5da2cafe473b25a0207bbd628632c9a259780361 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/qtversionfactory.h')
-rw-r--r--src/plugins/qtsupport/qtversionfactory.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/qtversionfactory.h b/src/plugins/qtsupport/qtversionfactory.h
index c66a87a740..59c8545157 100644
--- a/src/plugins/qtsupport/qtversionfactory.h
+++ b/src/plugins/qtsupport/qtversionfactory.h
@@ -54,7 +54,9 @@ public:
/// a qtversion, the priority of the desktop factory is 0 and
/// the desktop factory claims to handle all paths
int priority() const { return m_priority; }
- virtual BaseQtVersion *create(ProFileEvaluator *evaluator) = 0;
+
+ BaseQtVersion *create() const;
+ virtual bool canCreate(ProFileEvaluator *evaluator) const;
static BaseQtVersion *createQtVersionFromQMakePath(
const Utils::FileName &qmakePath, bool isAutoDetected = false,