[SCM] ktp-accounts-kcm packaging branch, master, updated. debian/15.12.1-1-1157-gc4589c5

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:00:30 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=afa0809

The following commit has been merged in the master branch:
commit afa0809b992e798fe59886cb789c953cfb27bb15
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date:   Fri Oct 28 15:24:44 2011 +0200

    Use disabled icon state if the account is disabled
---
 src/account-item.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/account-item.cpp b/src/account-item.cpp
index 10b9367..f98b723 100644
--- a/src/account-item.cpp
+++ b/src/account-item.cpp
@@ -60,6 +60,9 @@ AccountItem::AccountItem(const Tp::AccountPtr &account, AccountsListModel *paren
     connect(m_account.data(),
             SIGNAL(removed()),
             SIGNAL(removed()));
+    connect(m_account.data(),
+            SIGNAL(stateChanged(bool)),
+            SLOT(generateIcon()));
 
     generateIcon();
 }
@@ -152,7 +155,11 @@ void AccountItem::generateIcon()
     }
 
     delete m_icon;
-    m_icon = new KIcon(iconPath);
+    if (m_account->isEnabled()) {
+        m_icon = new KIcon(iconPath);
+    } else {
+        m_icon = new KIcon(KIconLoader::global()->loadIcon(iconPath, KIconLoader::Desktop, 32, KIconLoader::DisabledState));
+    }
 
     if(!account()->isValid()) {
         //we paint a warning symbol in the right-bottom corner

-- 
ktp-accounts-kcm packaging



More information about the pkg-kde-commits mailing list