Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 244d265f authored by Laurent Montel's avatar Laurent Montel 😁

const'ify method

parent b364e81a
......@@ -50,7 +50,7 @@ void KDEApplicationTreeListWidgetItem::setLogName(const QString &category)
mCategory = category;
}
LoggingCategory KDEApplicationTreeListWidgetItem::rule()
LoggingCategory KDEApplicationTreeListWidgetItem::rule() const
{
LoggingCategory cat;
cat.enabled = false;
......@@ -111,7 +111,7 @@ void KDEApplicationTreeListWidget::insertCategories(const LoggingCategory::List
addListItems(list, false);
}
LoggingCategory::List KDEApplicationTreeListWidget::rules()
LoggingCategory::List KDEApplicationTreeListWidget::rules() const
{
LoggingCategory::List lst;
for (int i = 0; i < topLevelItemCount(); ++i) {
......
......@@ -39,7 +39,7 @@ public:
void setLogName(const QString &category);
void setType(LoggingCategory::LoggingType type);
LoggingCategory rule();
LoggingCategory rule() const;
private:
QString mCategory;
CategoryTypeComboBox *mCategoryTypeCombobox = nullptr;
......@@ -57,7 +57,7 @@ public:
void fillList(const LoggingCategory::List &list);
void insertCategories(const LoggingCategory::List &list);
LoggingCategory::List rules();
LoggingCategory::List rules() const;
private:
void addListItems(const LoggingCategory::List &list, bool clearList);
};
......
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