[SCM] ktp-contact-applet packaging branch, master, updated. debian/15.12.1-1-966-gde83ac5
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:18:32 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-desktop-applets.git;a=commitdiff;h=aeb2860
The following commit has been merged in the master branch:
commit aeb2860deaec7c3e4c7a19a2c34f502871143f3b
Author: Emil Sedgh <emilsedgh at kde.org>
Date: Wed Mar 27 18:27:31 2013 +0430
A more keyboard-friendly contact-list with a search filter.
---
.../contents/ui/ContactList.qml | 49 +++++++++++++++++++---
1 file changed, 43 insertions(+), 6 deletions(-)
diff --git a/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml b/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml
index b5ad784..307563c 100644
--- a/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml
+++ b/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml
@@ -21,19 +21,46 @@ import QtQuick 1.1
import org.kde.telepathy 0.1 as KTp
import org.kde.plasma.components 0.1 as PlasmaComponents
import org.kde.plasma.extras 0.1 as PlasmaExtras
-import org.kde.plasma.core 0.1 as PlasmaCore
Item {
id: contactListContainer
anchors.fill: parent
-
+
KTp.ContactList {
id: contactList
}
-
+
+ PlasmaComponents.TextField {
+ id: filterLineEdit
+ anchors {
+ left:parent.left
+ right:parent.right
+ top:parent.top
+ }
+
+ focus: true
+
+ placeholderText: i18n("Search contacts...")
+
+ Keys.onDownPressed: contactsList.incrementCurrentIndex();
+ Keys.onUpPressed: contactsList.decrementCurrentIndex();
+ Keys.onReturnPressed: contactsList.currentItem.clicked();
+
+ Binding {
+ target: contactList.model
+ property: "globalFilterString"
+ value: filterLineEdit.text
+ }
+ }
+
PlasmaExtras.ScrollArea {
- anchors.fill: parent
+ anchors {
+ top:filterLineEdit.bottom
+ left:parent.left
+ right:parent.right
+ bottom:parent.bottom
+ }
flickableItem: ListView {
id: contactsList
@@ -43,12 +70,22 @@ Item {
boundsBehavior: Flickable.StopAtBounds
delegate: ListContactDelegate {}
- focus: true
+
+ highlight: PlasmaComponents.Highlight {
+ hover: contactList.focus
+ }
}
}
-
+
+ function popupEventSlot(shown) {
+ if (shown)
+ filterLineEdit.forceActiveFocus();
+ }
+
Component.onCompleted: {
contactList.model.presenceTypeFilterFlags = KTp.AccountsFilterModel.HideAllOffline
contactList.model.sortRoleString = "presenceType"
+
+ plasmoid.popupEvent.connect(popupEventSlot);
}
}
--
ktp-contact-applet packaging
More information about the pkg-kde-commits
mailing list