summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-02-21 08:12:15 +0100
committerLaurent Montel <[email protected]>2018-02-21 08:12:15 +0100
commit843d3e49a1142da813b057dffda925dbd0ecc6f2 (patch)
treea64a59114ca9b7f0a84fb93569c57a591540653d
parentecaa04c047d55ef446f28a8b17036154ceac1b19 (diff)
Add default category in combobox
-rw-r--r--src/categorytypecombobox.cpp5
-rw-r--r--src/categorytypecombobox.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/categorytypecombobox.cpp b/src/categorytypecombobox.cpp
index d80b1de..4e687e8 100644
--- a/src/categorytypecombobox.cpp
+++ b/src/categorytypecombobox.cpp
@@ -60,3 +60,8 @@ bool CategoryTypeComboBox::loggingCategoryIsNotDefault() const
{
return (type() != LoggingCategory::Info);
}
+
+void CategoryTypeComboBox::setDefaultCategories(const LoggingCategory::LoggingType &defaultCategories)
+{
+ mDefaultCategories = defaultCategories;
+}
diff --git a/src/categorytypecombobox.h b/src/categorytypecombobox.h
index 40cf535..439f1a1 100644
--- a/src/categorytypecombobox.h
+++ b/src/categorytypecombobox.h
@@ -34,6 +34,10 @@ public:
LoggingCategory::LoggingType type() const;
void setType(LoggingCategory::LoggingType type);
bool loggingCategoryIsNotDefault() const;
+ void setDefaultCategories(const LoggingCategory::LoggingType &defaultCategories);
+
+private:
+ LoggingCategory::LoggingType mDefaultCategories = LoggingCategory::Undefined;
};
#endif // CATEGORYTYPECOMBOBOX_H