diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-03 10:41:48 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-05 14:02:38 +0100 |
commit | de748023e53ce84afd01cde0ca380cddad057a4d (patch) | |
tree | 9f20ee8f0e374ac97ac37f8df2fa8ba56341481b /src/libs/installer/scriptengine.cpp | |
parent | 587bc6fb7c905422c3f09bc8ea2ac91c91d25cc8 (diff) |
Expose systemInfo API
Add systemInfo as a wrapper for QSystemInfo.
Task-number: QTIFW-592
Change-Id: Ib54fcea8b0ef3a397a74f5315202f3000abd63cd
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/scriptengine.cpp')
-rw-r--r-- | src/libs/installer/scriptengine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/installer/scriptengine.cpp b/src/libs/installer/scriptengine.cpp index 428e95a8f..c67295f57 100644 --- a/src/libs/installer/scriptengine.cpp +++ b/src/libs/installer/scriptengine.cpp @@ -36,6 +36,7 @@ #include "messageboxhandler.h" #include "errors.h" #include "scriptengine_p.h" +#include "systeminfo.h" #include <QMetaEnum> #include <QQmlEngine> @@ -262,6 +263,8 @@ ScriptEngine::ScriptEngine(PackageManagerCore *core) #else m_engine.installTranslatorFunctions(); #endif + global.setProperty(QLatin1String("systemInfo"), m_engine.newQObject(new SystemInfo)); + global.setProperty(QLatin1String("QInstaller"), generateQInstallerObject()); global.setProperty(QLatin1String("buttons"), generateWizardButtonsObject()); global.setProperty(QLatin1String("QMessageBox"), generateMessageBoxObject()); |