aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtsupport/qtversionfactory.h
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2022-05-11 13:26:57 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2022-06-01 06:09:48 +0000
commit72aa77ced7a0ac9bc9a9c6953ab31508f6b5e186 (patch)
tree02f0c892e2f470577d0a94c394bdf67f67447cf0 /src/plugins/qtsupport/qtversionfactory.h
parent79236605fdd7829afb350695ce6fc9e24472f8a8 (diff)
QtSupport: Add support to register Qt versions via qtpaths
qmake is a "build tool", and it is also a "query tool" when called with parameter "-query". Qt Creator, so far, assumes that building and querying with a Qt installation are done with one and the same tool: qmake. This change adds the ability to register a Qt version vie either qmake or qtpaths and still build with qmake, if that is installed (which is not anymore mandatory from Qt 6 on). 1) Distinguish between Qt query tool and qmake build tool: Add QtVersion::queryToolFilePath() to the existing QtVersion::qmakeFilePath(), and use queryToolFilePath in most "query" related code, and qmakeFilePath when building with qmake (e.g. in QmakeProjectManager). Also, a couple of functions and variables were renamed from *qmake* to *queryTool* in order to express that the affected code is about querying/managing Qt versions rather than about building with qmake. 2) Support manual Qt Version adding by qtpaths via file dialog This change adds qtpaths to the "Add" Qt Version file picker filter. After selection, "qtpaths -query" is executed for testing purposes. If that fails, (e.g. because it is an older Qt version), qmake is instead chosen, silently. Task-number: QTCREATORBUG-22175 Task-number: QTCREATORBUG-25546 Change-Id: I4d9c1e7eec7d5ae7c5a8d2e1a1ed95addff69966 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/qtsupport/qtversionfactory.h')
-rw-r--r--src/plugins/qtsupport/qtversionfactory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/qtversionfactory.h b/src/plugins/qtsupport/qtversionfactory.h
index bc01ad7601..96bf8e2088 100644
--- a/src/plugins/qtsupport/qtversionfactory.h
+++ b/src/plugins/qtsupport/qtversionfactory.h
@@ -51,7 +51,7 @@ public:
/// the desktop factory claims to handle all paths
int priority() const { return m_priority; }
- static QtVersion *createQtVersionFromQMakePath(const Utils::FilePath &qmakePath,
+ static QtVersion *createQtVersionFromQueryToolPath(const Utils::FilePath &qmakePath,
bool isAutoDetected = false,
const QString &detectionSource = {},
QString *error = nullptr);