diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-09-27 16:10:13 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-09-29 08:26:33 +0000 |
commit | defcb6a55a6561fd80ee9377c06984f3cd450c07 (patch) | |
tree | ed2deb04c6a221c5aacd7bf15744fac8609d091d /src/plugins/qtsupport/baseqtversion.cpp | |
parent | bb16ae7323c21a31a0f21546ed35d5ea9278d59a (diff) |
QtSupport: Add a method to retrieve the QML path
We check that qmake property in many different places.
Change-Id: Ifd5efe4ad2831385493bd3afe8538929578e8fb4
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/baseqtversion.cpp')
-rw-r--r-- | src/plugins/qtsupport/baseqtversion.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/qtsupport/baseqtversion.cpp b/src/plugins/qtsupport/baseqtversion.cpp index 49185ee5a3..03ef46e5b5 100644 --- a/src/plugins/qtsupport/baseqtversion.cpp +++ b/src/plugins/qtsupport/baseqtversion.cpp @@ -321,6 +321,10 @@ void BaseQtVersion::setupExpander() QtKitInformation::tr("The installation location of the current Qt version's plugins."), [this] { return qmakeProperty(m_versionInfo, "QT_INSTALL_PLUGINS"); }); + m_expander.registerVariable("Qt:QT_INSTALL_QML", + QtKitInformation::tr("The installation location of the current Qt version's QML files."), + [this] { return qmakeProperty(m_versionInfo, "QT_INSTALL_QML"); }); + m_expander.registerVariable("Qt:QT_INSTALL_IMPORTS", QtKitInformation::tr("The installation location of the current Qt version's imports."), [this] { return qmakeProperty(m_versionInfo, "QT_INSTALL_IMPORTS"); }); @@ -560,6 +564,11 @@ FileName BaseQtVersion::pluginPath() const return FileName::fromUserInput(qmakeProperty("QT_INSTALL_PLUGINS")); } +FileName BaseQtVersion::qmlPath() const +{ + return FileName::fromUserInput(qmakeProperty("QT_INSTALL_QML")); +} + FileName BaseQtVersion::binPath() const { return FileName::fromUserInput(qmakeProperty("QT_HOST_BINS")); |