Commit 3dc8d25e authored by Laurent Montel's avatar Laurent Montel 😁

Add support for default categories

parent 891c8a84
......@@ -28,7 +28,7 @@ KdeLoggingCategory::KdeLoggingCategory()
bool KdeLoggingCategory::operator ==(const KdeLoggingCategory &other) const
{
return (description == other.description) &&
(logName == other.logName);
(logName == other.logName) && (defaultCategory == other.defaultCategory);
}
bool KdeLoggingCategory::operator !=(const KdeLoggingCategory &other) const
......@@ -45,5 +45,6 @@ QDebug operator<<(QDebug d, const KdeLoggingCategory &cat)
{
d << "description: " << cat.description;
d << "logname: " << cat.logName;
d << "default category: " << cat.defaultCategory;
return d;
}
......@@ -34,6 +34,8 @@ struct KdeLoggingCategory {
QString description;
QString logName;
//Use enum ?
QString defaultCategory;
};
QDebug operator<<(QDebug debug, const KdeLoggingCategory &cat);
Q_DECLARE_TYPEINFO(KdeLoggingCategory, Q_MOVABLE_TYPE);
......
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