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
This commit is contained in:
dismine 2014-11-26 18:54:17 +02:00
parent 3ee1395ec3
commit 0771c70cdd

View File

@ -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)