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

List:       kde-commits
Subject:    KDE/kdeplasmoids/applets/twitter
From:       Andre Duffeck <andre () duffeck ! de>
Date:       2008-06-17 10:07:49
Message-ID: 1213697269.078907.19359.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 821385 by duffeck:

do not show the username below the icons


 M  +4 -2      twitter.cpp  


--- trunk/KDE/kdeplasmoids/applets/twitter/twitter.cpp #821384:821385
@@ -288,6 +288,7 @@
         if( !pm.isNull() ) {
             if( user == m_username ) {
                 QAction *profile = new QAction(QIcon(pm), m_username, this);
+                profile->setData(m_username);
                 
                 QSizeF iconSize = m_icon->sizeFromIconSize(48);
                 m_icon->setAction(profile);
@@ -376,7 +377,8 @@
         QString user = tweetData.value( "User" ).toString();
         QPixmap favIcon = tweetData.value("SourceFavIcon").value<QPixmap>();
 
-        QAction *profile = new QAction(QIcon(m_pictureMap[user]), user, this);
+        QAction *profile = new QAction(QIcon(m_pictureMap[user]), QString(), this);
+        profile->setData(user);
         
         Tweet t = m_tweetWidgets[i];
         t.icon->setAction(profile);
@@ -628,7 +630,7 @@
     QAction *action = qobject_cast<QAction *>(sender());
     
     if (action) {
-        KRun::runUrl( KUrl("http://www.twitter.com/" + action->text()), "text/html", 0 );
+        KRun::runUrl( KUrl("http://www.twitter.com/" + action->data().toString()), "text/html", 0 );
     }
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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