diff options
author | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2015-04-22 14:19:30 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2015-04-22 13:37:38 +0000 |
commit | e2a30c0c183bdeeda5d44d35e48b4e8ceee39cf3 (patch) | |
tree | 12b0c19aa5e7c6df12002ea43be66cd5e89ea0db /src/sdk/installerbase.cpp | |
parent | a8bd8bb5b36b9e4079c9557ea45d8af974387e33 (diff) |
Make componentChecker warnings optional.
To enable them export the following environment variable:
QT_LOGGING_RULES=ifw.componentChecker=true
Change-Id: Ied6744c745ca3fd0840c622c71a8ba30ad22e3d9
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/sdk/installerbase.cpp')
-rw-r--r-- | src/sdk/installerbase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp index d2fb82562..7d0b4c58e 100644 --- a/src/sdk/installerbase.cpp +++ b/src/sdk/installerbase.cpp @@ -59,6 +59,7 @@ #include <QTemporaryFile> #include <QTranslator> #include <QUuid> +#include <QLoggingCategory> InstallerBase::InstallerBase(int &argc, char *argv[]) : SDKApp<QApplication>(argc, argv) @@ -74,6 +75,8 @@ InstallerBase::~InstallerBase() int InstallerBase::run() { + QLoggingCategory::setFilterRules(QLatin1String("ifw.componentChecker = false")); + KDRunOnceChecker runCheck(qApp->applicationDirPath() + QLatin1String("/lockmyApp1234865.lock")); if (runCheck.isRunning(KDRunOnceChecker::ConditionFlag::Lockfile)) { // It is possible to install an application and thus the maintenance tool into a |