From 0771c70cddba27c132e5a3495865fb0de93066da Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 26 Nov 2014 18:54:17 +0200 Subject: [PATCH] Don't show qt debug information. In Qt 5.2 need manualy enable debug information for categories. This work because Qt doesn't provide debug information for categories itself. And in this case will show our messages. Another situation with Qt 5.3 that has many debug messages itself. We don't need this information and can turn on later if need. But here Qt already show our debug messages without enabling. --HG-- branch : develop --- src/app/core/vapplication.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/core/vapplication.cpp b/src/app/core/vapplication.cpp index 232ff2c15..9748ed96d 100644 --- a/src/app/core/vapplication.cpp +++ b/src/app/core/vapplication.cpp @@ -1979,7 +1979,14 @@ bool VApplication::SafeCopy(const QString &source, const QString &destination, Q //--------------------------------------------------------------------------------------------------------------------- void VApplication::StartLogging() { +#if (QT_VERSION < QT_VERSION_CHECK(5, 3, 0)) + // In Qt 5.2 need manualy enable debug information for categories. This work + // because Qt doesn't provide debug information for categories itself. And in this + // case will show our messages. Another situation with Qt 5.3 that has many debug + // messages itself. We don't need this information and can turn on later if need. + // But here Qt already show our debug messages without enabling. QLoggingCategory::setFilterRules("*.debug=true\n"); +#endif QDir logDir(LogDirPath()); if (logDir.exists() == false)