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 b663c2f9 authored by David Faure's avatar David Faure

Fix EntityOrderProxyModel::setOrderConfig signature

Summary:
so that it can be called like this
orderProxy->setOrderConfig(KMKernel::self()->config()->group("FavoriteCollectionsOrder"));

FavoriteCollectionsModel does the same.

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: #kde_pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D8783

(cherry picked from commit f9887d2f)
parent 78581bb2
......@@ -68,7 +68,7 @@ EntityOrderProxyModel::~EntityOrderProxyModel()
delete d_ptr;
}
void EntityOrderProxyModel::setOrderConfig(KConfigGroup &configGroup)
void EntityOrderProxyModel::setOrderConfig(const KConfigGroup &configGroup)
{
Q_D(EntityOrderProxyModel);
Q_EMIT layoutAboutToBeChanged();
......
......@@ -61,7 +61,7 @@ public:
/**
* Sets the config @p group that will be used for storing the order.
*/
void setOrderConfig(KConfigGroup &group);
void setOrderConfig(const KConfigGroup &group);
/**
* Saves the order.
......
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