[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:48 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-desktop-applets.git;a=commitdiff;h=fd020c8
The following commit has been merged in the master branch:
commit fd020c83e09dc05c0d5070820c75573e63f672df
Author: Martin Klapetek <mklapetek at kde.org>
Date: Wed Apr 15 14:40:22 2015 +0200
[contactlist] Add "Configure..." button when no accounts are set
BUG: 346032
---
.../contents/ui/ContactList.qml | 31 +++++++++++++++++++---
1 file changed, 28 insertions(+), 3 deletions(-)
diff --git a/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml b/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml
index 9b8e71a..496d0e1 100644
--- a/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml
+++ b/contactlist/org.kde.ktp-contactlist/contents/ui/ContactList.qml
@@ -39,9 +39,34 @@ Item {
}
Column {
+ id: addAccountItem
+ anchors.centerIn: parent
+ width: parent.width
+ visible: !ktpPresence.hasEnabledAccounts
+
+ PlasmaComponents.Label {
+ anchors.left: parent.left
+ anchors.right: parent.right
+
+ text: i18n("It appears that you do not have any accounts configured");
+
+ wrapMode: Text.WordWrap
+ horizontalAlignment: Text.AlignHCenter
+ }
+
+ PlasmaComponents.Button {
+ id: addAccountItemButton
+ anchors.horizontalCenter: parent.horizontalCenter
+
+ text: i18n("Configure Now...")
+ onClicked: telepathyManager.showSettingsKCM();
+ }
+ }
+
+ Column {
id: goOnlineItem
anchors.centerIn: parent
- visible: ktpPresence.presenceType == KTp.GlobalPresence.Offline
+ visible: ktpPresence.presenceType == KTp.GlobalPresence.Offline && ktpPresence.hasEnabledAccounts
PlasmaCore.IconItem {
anchors.horizontalCenter: parent.horizontalCenter
@@ -66,7 +91,7 @@ Item {
top:parent.top
}
- visible: !goOnlineItem.visible
+ visible: !goOnlineItem.visible && !addAccountItem.visible
focus: true
clearButtonShown: true
@@ -80,7 +105,7 @@ Item {
}
PlasmaExtras.ScrollArea {
- visible: !goOnlineItem.visible
+ visible: !goOnlineItem.visible && !addAccountItem.visible
anchors {
top:filterLineEdit.bottom
left:parent.left
--
ktp-contact-applet packaging
More information about the pkg-kde-commits
mailing list