diff --git a/src/core/models/entityorderproxymodel.h b/src/core/models/entityorderproxymodel.h --- a/src/core/models/entityorderproxymodel.h +++ b/src/core/models/entityorderproxymodel.h @@ -61,7 +61,7 @@ /** * 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. diff --git a/src/core/models/entityorderproxymodel.cpp b/src/core/models/entityorderproxymodel.cpp --- a/src/core/models/entityorderproxymodel.cpp +++ b/src/core/models/entityorderproxymodel.cpp @@ -68,7 +68,7 @@ delete d_ptr; } -void EntityOrderProxyModel::setOrderConfig(KConfigGroup &configGroup) +void EntityOrderProxyModel::setOrderConfig(const KConfigGroup &configGroup) { Q_D(EntityOrderProxyModel); Q_EMIT layoutAboutToBeChanged();