Commit 6524da6c authored by Laurent Montel's avatar Laurent Montel 😁

Debug--

parent 6f311b1a
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <QFile> #include <QFile>
#include <QDebug> #include <QDebug>
#define DEBUG_RESULT 1 //#define DEBUG_RESULT 1
LoadCategoriesJobTest::LoadCategoriesJobTest(QObject *parent) LoadCategoriesJobTest::LoadCategoriesJobTest(QObject *parent)
: QObject(parent) : QObject(parent)
......
...@@ -186,8 +186,8 @@ QList<KDebugSettingsUtil::LoadLoggingCategory> KDebugSettingsUtil::readLoggingQt ...@@ -186,8 +186,8 @@ QList<KDebugSettingsUtil::LoadLoggingCategory> KDebugSettingsUtil::readLoggingQt
} }
if (rulesSections) { if (rulesSections) {
KDebugSettingsUtil::LineLoggingQtCategory cat = parseLineLoggingQtCategory(line); KDebugSettingsUtil::LineLoggingQtCategory cat = parseLineLoggingQtCategory(line);
qDebug() << " line " << line; //qDebug() << " line " << line;
qDebug() << "enable " << cat.enabled << " valid : " << cat.isValid(); //qDebug() << "enable " << cat.enabled << " valid : " << cat.isValid();
if (cat.isValid()) { if (cat.isValid()) {
KDebugSettingsUtil::LoadLoggingCategory nextCat = hashLoadLoggingCategories.value(cat.logName); KDebugSettingsUtil::LoadLoggingCategory nextCat = hashLoadLoggingCategories.value(cat.logName);
if (nextCat.isValid()) { if (nextCat.isValid()) {
......
...@@ -91,7 +91,7 @@ struct LoadLoggingCategory { ...@@ -91,7 +91,7 @@ struct LoadLoggingCategory {
bool operator ==(const LoadLoggingCategory &other) const bool operator ==(const LoadLoggingCategory &other) const
{ {
qDebug() << " logname " << logName << " other.logName :" << other.logName; //qDebug() << " logname " << logName << " other.logName :" << other.logName;
return (logName == other.logName) && return (logName == other.logName) &&
(loggingTypes == other.loggingTypes); (loggingTypes == other.loggingTypes);
} }
......
...@@ -146,7 +146,7 @@ void LoadCategoriesJob::start() ...@@ -146,7 +146,7 @@ void LoadCategoriesJob::start()
} }
} }
qDebug()<<" KEEP "<< qtCategories.count(); //qDebug()<<" KEEP "<< qtCategories.count();
Q_FOREACH (const KDebugSettingsUtil::LoadLoggingCategory &cat, qtCategories) { Q_FOREACH (const KDebugSettingsUtil::LoadLoggingCategory &cat, qtCategories) {
QMapIterator<KDebugSettingsUtil::LoadLoggingCategory::LogType, KDebugSettingsUtil::LoadLoggingCategory::Status> i(cat.loggingTypes); QMapIterator<KDebugSettingsUtil::LoadLoggingCategory::LogType, KDebugSettingsUtil::LoadLoggingCategory::Status> i(cat.loggingTypes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment