summaryrefslogtreecommitdiff
path: root/core/launcher/launcherview.cpp
Side-by-side diff
Diffstat (limited to 'core/launcher/launcherview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp
index e15b150..fa46543 100644
--- a/core/launcher/launcherview.cpp
+++ b/core/launcher/launcherview.cpp
@@ -54,2 +54,7 @@ public:
+enum BusyIndicatorType {
+ BIT_Normal = 0,
+ BIT_Blinking
+};
+
static QMap<QString,BgPixmap*> *bgCache = 0;
@@ -85,2 +90,4 @@ public:
+ void setBusyIndicatorType ( BusyIndicatorType t ) { busyType = t; }
+
QPixmap* busyPixmap() const { return (QPixmap*)&bpm[::abs(busystate)]; }
@@ -99,3 +106,2 @@ public:
QIconViewItem *c = on ? currentItem() : 0;
- qDebug ( "set busy %d -> %s", on, c ? c-> text ().latin1() : "(null)" );
@@ -138,2 +144,3 @@ public:
}
+ if ( busyType == BIT_Blinking ) {
busystate = 0;
@@ -141,5 +148,8 @@ public:
killTimer ( busytimer );
- timerEvent ( 0 );
busytimer = startTimer ( 200 );
}
+ else
+ busystate = 3;
+ timerEvent ( 0 );
+ }
else {
@@ -339,2 +349,3 @@ private:
int busystate;
+ BusyIndicatorType busyType;
};
@@ -915 +926,9 @@ void LauncherView::paletteChange( const QPalette &p )
+
+void LauncherView::setBusyIndicatorType ( const QString &type )
+{
+ if ( type. lower ( ) == "blink" )
+ icons-> setBusyIndicatorType ( BIT_Blinking );
+ else
+ icons-> setBusyIndicatorType ( BIT_Normal );
+}