[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:23:48 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=d55e728
The following commit has been merged in the master branch:
commit d55e728f441ee90bf51f64d93c18d9b8c4158193
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date: Wed Apr 10 13:59:59 2013 +0200
Sort contacts by name in group chat contact list
REVIEW: 109943
BUG: 318115
FIXED-IN: 0.6.1
---
lib/chat-widget.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/chat-widget.cpp b/lib/chat-widget.cpp
index 212680d..36b3606 100644
--- a/lib/chat-widget.cpp
+++ b/lib/chat-widget.cpp
@@ -30,6 +30,7 @@
#include <QtGui/QKeyEvent>
#include <QtGui/QAction>
+#include <QSortFilterProxyModel>
#include <KColorDialog>
#include <KNotification>
@@ -125,7 +126,12 @@ ChatWidget::ChatWidget(const Tp::TextChannelPtr & channel, const Tp::AccountPtr
d->ui.sendMessageBox->setContactModel(d->contactModel);
}
- d->ui.contactsView->setModel(d->contactModel);
+ QSortFilterProxyModel *sortModel = new QSortFilterProxyModel(this);
+ sortModel->setSourceModel(d->contactModel);
+ sortModel->setSortRole(Qt::DisplayRole);
+ sortModel->setDynamicSortFilter(true);
+
+ d->ui.contactsView->setModel(sortModel);
d->yourName = channel->groupSelfContact()->alias();
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list