[SCM] ktp-send-file packaging branch, master, updated. debian/15.12.1-2-216-g8f07cdf
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:14:21 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-send-file.git;a=commitdiff;h=4919457
The following commit has been merged in the master branch:
commit 49194572de65901ee647e0a9c00530753bf801bb
Author: Dominik Cermak <d.cermak at arcor.de>
Date: Tue Dec 13 14:24:02 2011 +0100
Add a filter bar to quickly find contacts
REVIEW: 103390
FEATURE: 285425
---
mainwindow.cpp | 4 ++++
mainwindow.ui | 17 +++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/mainwindow.cpp b/mainwindow.cpp
index f3af59c..16b6e0c 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -177,6 +177,10 @@ void MainWindow::onAccountManagerReady()
AccountsFilterModel *filterModel = new AccountsFilterModel(this);
filterModel->setSourceModel(m_accountsModel);
filterModel->setShowOfflineUsers(false);
+
+ connect(ui->filterBar, SIGNAL(textChanged(QString)),
+ filterModel, SLOT(setFilterString(QString)));
+
FlatModelProxy *flatProxyModel = new FlatModelProxy(filterModel);
ui->listView->setModel(flatProxyModel);
diff --git a/mainwindow.ui b/mainwindow.ui
index 1479f3e..dc3b36a 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -153,6 +153,16 @@
</property>
</widget>
</item>
+ <item>
+ <widget class="KLineEdit" name="filterBar">
+ <property name="clickMessage">
+ <string>Search in Contacts...</string>
+ </property>
+ <property name="showClearButton" stdset="0">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
</layout>
</item>
</layout>
@@ -166,6 +176,13 @@
</item>
</layout>
</widget>
+ <customwidgets>
+ <customwidget>
+ <class>KLineEdit</class>
+ <extends>QLineEdit</extends>
+ <header>klineedit.h</header>
+ </customwidget>
+ </customwidgets>
<resources/>
<connections/>
</ui>
--
ktp-send-file packaging
More information about the pkg-kde-commits
mailing list