[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:19:21 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-desktop-applets.git;a=commitdiff;h=b52a8c3

The following commit has been merged in the master branch:
commit b52a8c387e2b9a57af53ee743d28a89895f1914d
Author: Aleix Pol <aleixpol at kde.org>
Date:   Mon Jul 7 14:19:55 2014 +0200

    Make the offline view a bit nicer
    
    Shows the online icon above the "Go online" button.
    
    Review: 119112
---
 .../contents/ui/ContactList.qml                    | 26 ++++++++++++++++------
 1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml b/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml
index 6319881..51053fd 100644
--- a/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml
+++ b/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml
@@ -20,6 +20,7 @@
 import QtQuick 2.1
 import QtQuick.Layouts 1.1
 import org.kde.telepathy 0.1 as KTp
+import org.kde.plasma.core 2.0 as PlasmaCore
 import org.kde.plasma.components 2.0 as PlasmaComponents
 import org.kde.plasma.extras 2.0 as PlasmaExtras
 import org.kde.plasma.plasmoid 2.0
@@ -37,13 +38,24 @@ Item {
             filterLineEdit.forceActiveFocus();
     }
 
-    PlasmaComponents.Button {
-        id: goOnlineButton
-
-        text: i18n("Go online")
+    Column {
+        id: goOnlineItem
         anchors.centerIn: parent
         visible: ktpPresence.presenceType == KTp.GlobalPresence.Offline
-        onClicked: ktpPresence.setPresence(KTp.GlobalPresence.Available, "")
+
+        PlasmaCore.IconItem {
+            anchors.horizontalCenter: parent.horizontalCenter
+            width: goOnlineButton.width
+            height: width
+            source: "user-online"
+        }
+
+        PlasmaComponents.Button {
+            id: goOnlineButton
+
+            text: i18n("Go online")
+            onClicked: ktpPresence.setPresence(KTp.GlobalPresence.Available, "")
+        }
     }
 
     PlasmaComponents.TextField {
@@ -54,7 +66,7 @@ Item {
             top:parent.top
         }
 
-        visible: !goOnlineButton.visible
+        visible: !goOnlineItem.visible
         focus: true
         clearButtonShown: true
 
@@ -68,7 +80,7 @@ Item {
     }
 
     PlasmaExtras.ScrollArea {
-        visible: !goOnlineButton.visible
+        visible: !goOnlineItem.visible
         anchors {
             top:filterLineEdit.bottom
             left:parent.left

-- 
ktp-contact-applet packaging



More information about the pkg-kde-commits mailing list