Commit f1fd1d41 authored by Marc Deop i Argemí's avatar Marc Deop i Argemí Committed by Volker Krause
Browse files

feat(akonadi): sort agents alphabetically

Summary:
Partially solves: https://phabricator.kde.org/T9428

This sorts alphabetically the Agents

Test Plan: Akonadi has been compiled with the patch and akonadiconsole has been launched. Everything seems to work as expected and *sorted* :-)

Reviewers: #kde_pim_junior_jobs, dvratil, vkrause

Reviewed By: #kde_pim_junior_jobs, dvratil

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D29604
parent cf3149d1
......@@ -155,6 +155,9 @@ AgentInstanceWidget::AgentInstanceWidget(QWidget *parent)
d->mModel = new AgentInstanceModel(this);
d->proxy = new AgentFilterProxyModel(this);
d->proxy->setDynamicSortFilter(true);
d->proxy->sort(0);
d->proxy->setSortCaseSensitivity(Qt::CaseInsensitive);
d->proxy->setSourceModel(d->mModel);
d->mView->setModel(d->proxy);
......
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