[Kget] [Bug 50071] provide different icon on system tray when download is not started

Urs Wolfer u.wolfer at bluewin.ch
Sun Jul 24 16:30:32 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=50071         
u.wolfer bluewin ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From u.wolfer bluewin ch  2005-07-24 16:30 -------
SVN commit 438157 by uwolfer:

Now the systrayicon change it's color when a download is in progress. I simply changed the arrow color to green (I'm not an artist... ;) ).

FEATURE: 50071
FEATURE: 59380

 M  +6 -0      docking.cpp  
 M  +1 -0      docking.h  
 AM            icons/cr22-action-kget_dock_download.png  
 M  +9 -0      kmainwidget.cpp  


--- trunk/KDE/kdenetwork/kget/docking.cpp #438156:438157
 @ -103,6 +103,12  @
 }
 
 
+void DockWidget::changeIcon( const QString& icon )
+{
+    setPixmap( loadIcon( icon ));
+}
+
+
 DynamicTip::DynamicTip( QWidget * parent )
    : QToolTip( parent )
 {
--- trunk/KDE/kdenetwork/kget/docking.h #438156:438157
 @ -60,6 +60,7  @
     ~DockWidget();
     /** No descriptions */
     void updateToolTip( const QString& );
+    void changeIcon( const QString& icon );
 
 
 
** trunk/KDE/kdenetwork/kget/icons/cr22-action-kget_dock_download.png #property changes
Name: svn:mime-type
   + application/octet-stream
--- trunk/KDE/kdenetwork/kget/kmainwidget.cpp #438156:438157
 @ -2111,6 +2111,15  @
                  i18n("<br /><b>Time:</b> %1 ").arg(KIO::convertSeconds(remTime)) +
                  i18n("<br /><b>Speed:</b> %1/s").arg(KIO::convertSize(totalSpeed));
         kdock->updateToolTip( tmpstr );
+        //trayicon changes if download is in progress
+        if (totalSpeed == 0)
+        {
+            kdock->changeIcon( "kget_dock" );
+        }
+        else
+        {
+            kdock->changeIcon( "kget_dock_download" );
+        }
     }
 #ifdef _DEBUG
     //sDebugOut << endl;



More information about the Kget mailing list