summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/globals.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@theqtcompany.com>2015-04-24 13:32:57 +0200
committerJarek Kobus <jaroslaw.kobus@theqtcompany.com>2015-04-24 12:58:49 +0000
commitc522fd5de907fb264e24eed842e28d9ac56bce0c (patch)
treea2110fe689c40f58ae94f8fc05b59f16436f30f5 /src/libs/installer/globals.cpp
parent2554ccb7ba4ef3103411e38b0c2d5d218217cccd (diff)
Add more logging categories.
Change-Id: I1c7dabfd16a69ef5a3e5aaa490036de061f1fd13 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/globals.cpp')
-rw-r--r--src/libs/installer/globals.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/libs/installer/globals.cpp b/src/libs/installer/globals.cpp
index 43e5b4365..b91210640 100644
--- a/src/libs/installer/globals.cpp
+++ b/src/libs/installer/globals.cpp
@@ -34,22 +34,29 @@
#include "globals.h"
const char IFW_COMPONENT_CHECKER[] = "ifw.componentChecker";
+const char IFW_RESOURCES[] = "ifw.resources";
+const char IFW_TRANSLATIONS[] = "ifw.translations";
namespace QInstaller
{
Q_LOGGING_CATEGORY(lcComponentChecker, IFW_COMPONENT_CHECKER)
+Q_LOGGING_CATEGORY(lcResources, IFW_RESOURCES)
+Q_LOGGING_CATEGORY(lcTranslations, IFW_TRANSLATIONS)
-Q_GLOBAL_STATIC_WITH_ARGS(QRegExp, staticCommaRegExp, (QLatin1String("\\b(,|, )\\b")));
-QRegExp commaRegExp()
+QStringList loggingCategories()
{
- return *staticCommaRegExp();
+ static QStringList categories = QStringList()
+ << QLatin1String(IFW_COMPONENT_CHECKER)
+ << QLatin1String(IFW_RESOURCES)
+ << QLatin1String(IFW_TRANSLATIONS);
+ return categories;
}
-QStringList loggingCategories()
+Q_GLOBAL_STATIC_WITH_ARGS(QRegExp, staticCommaRegExp, (QLatin1String("\\b(,|, )\\b")));
+QRegExp commaRegExp()
{
- static QStringList categories = QStringList() << QLatin1String(IFW_COMPONENT_CHECKER);
- return categories;
+ return *staticCommaRegExp();
}
} // namespace QInstaller