[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:05:10 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=caa4af7

The following commit has been merged in the master branch:
commit caa4af7dedae61ce90277e589ca00dde7c6d5944
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Mon Feb 28 01:25:09 2011 +0000

    Model Sorting
---
 main-widget.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/main-widget.cpp b/main-widget.cpp
index 6cc5c3a..c3cb075 100644
--- a/main-widget.cpp
+++ b/main-widget.cpp
@@ -370,7 +370,10 @@ void MainWidget::onAccountManagerReady(Tp::PendingOperation* op)
     m_modelFilter->setSourceModel(m_model);
     m_modelFilter->setDynamicSortFilter(true);
     m_modelFilter->filterOfflineUsers(true);
+    m_modelFilter->setSortRole(Qt::DisplayRole);
     m_contactsListView->setModel(m_modelFilter);
+    m_contactsListView->setSortingEnabled(true);
+    m_contactsListView->sortByColumn(0, Qt::AscendingOrder);
 
 
     QList<Tp::AccountPtr> accounts = m_accountManager->allAccounts();

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list