[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-1/amarok/src
From: Max Howell <max.howell () methylblue ! com>
Date: 2005-02-14 16:56:12
Message-ID: 20050214165612.0D3A11D19D () office ! kde ! org
[Download RAW message or body]
CVS commit by mhowell:
Show tooltips containing the bigger random/repeatplaylist icons, Qt rich text isn't \
too flexible so this isn't too pretty, especially on the ugly yellow tooltip \
background. CCMAIL:amarok-devel@lists.sf.net
A images/icons/cr64-action-random.png 1.1
A images/icons/cr64-action-repeat_playlist.png 1.1
M +9 -0 statusbar/toggleLabel.h 1.3
--- kdeextragear-1/amarok/src/statusbar/toggleLabel.h #1.2:1.3
@@ -26,6 +26,8 @@
#include <kactionclasses.h>
#include <kglobalsettings.h>
+#include <kiconloader.h>
#include <qiconset.h>
#include <qlabel.h>
+#include <qtooltip.h>
@@ -48,4 +50,11 @@ public:
setChecked( isChecked() );
+
+ QString tip = "<qt><img src='%1' style='margin:auto'><br> ";
+ tip += action->isChecked() ? i18n("%2: on") : i18n("%2: off");
+ tip += " ";
+ const QString path = KGlobal::iconLoader()->iconPath( action->icon(), \
KIcon::Desktop ); +
+ QToolTip::add( this, tip.arg( path ).arg( action->text().remove('&') ) );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic