[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/network/telepathy-accounts-kcm/src
From:       Dominik Schmidt <ich () dominik-schmidt ! de>
Date:       2010-08-05 18:42:46
Message-ID: 20100805184246.5E5F9AC7CB () svn ! kde ! org
[Download RAW message or body]

SVN commit 1159598 by dschmidt:

Set account icon on account creation.

For now the protocol icon is identical to the protocol icon.
Once the profile spec is finished we can set service icons here.

 M  +5 -0      add-account-assistant.cpp  


--- trunk/playground/network/telepathy-accounts-kcm/src/add-account-assistant.cpp #1159597:1159598
@@ -397,6 +397,11 @@
     // Get the account pointer.
     d->account = pendingAccount->account();
 
+    // Set the account icon
+    QString icon = QString("im-%1").arg(d->account->protocolName());
+    kDebug() << "Set account icon to: " << icon;
+    d->account->setIcon(icon);
+
     kDebug() << "Calling set enabled.";
 
     connect(d->account->setEnabled(true),
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic