Commit 85cbc330 authored by Laurent Montel's avatar Laurent Montel 😁

Continue to implement default category

parent 2487429d
......@@ -39,6 +39,11 @@ void KDEApplicationTreeListWidgetItem::setType(LoggingCategory::LoggingType type
mCategoryTypeCombobox->setType(type);
}
void KDEApplicationTreeListWidgetItem::setDefaultCategory(LoggingCategory::LoggingType type)
{
mCategoryTypeCombobox->setDefaultCategories(type);
}
QString KDEApplicationTreeListWidgetItem::logName() const
{
return mCategory;
......@@ -102,6 +107,7 @@ void KDEApplicationTreeListWidget::addListItems(const LoggingCategory::List &lis
KDEApplicationTreeListWidgetItem *item = new KDEApplicationTreeListWidgetItem(cat.logName, this);
item->setText(KDEApplicationTreeListWidgetItem::Description, cat.description);
item->setType(cat.loggingType);
//item->setDefaultCategory(cat.)
}
resizeColumnToContents(KDEApplicationTreeListWidgetItem::Description);
}
......
......@@ -38,6 +38,7 @@ public:
QString logName() const;
void setLogName(const QString &category);
void setType(LoggingCategory::LoggingType type);
void setDefaultCategory(LoggingCategory::LoggingType type);
LoggingCategory rule() const;
private:
......
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