-rw-r--r-- | core/launcher/launcherview.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index dbcb0d7..5daaeff 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -85,3 +85,3 @@ public: | |||
85 | 85 | ||
86 | QPixmap* busyPixmap() const { return (QPixmap*)&bpm; } | 86 | QPixmap* busyPixmap() const { return (QPixmap*)&bpm[::abs(busystate)]; } |
87 | QIconViewItem* busyItem() const { return bsy; } | 87 | QIconViewItem* busyItem() const { return bsy; } |
@@ -105,7 +105,7 @@ public: | |||
105 | if ( bsy ) { | 105 | if ( bsy ) { |
106 | busystate = 5; | ||
107 | for ( int i = 0; i <= 5; i++ ) | ||
108 | bpm [i] = QPixmap ( ); | ||
109 | timerEvent ( 0 ); | ||
106 | busytimer = startTimer ( 150 ); | 110 | busytimer = startTimer ( 150 ); |
107 | busystate = 50; | ||
108 | // not sure what this startTimer is for, maybe i am just to tired. But | ||
109 | // currently that causes 100% cpuload on app launch | ||
110 | //startTimer ( 0 ); | ||
111 | } | 111 | } |
@@ -120,2 +120,3 @@ public: | |||
120 | if ( bsy ) { | 120 | if ( bsy ) { |
121 | if ( bpm [::abs(busystate)]. isNull ( )) { | ||
121 | QPixmap *src = bsy-> QIconViewItem::pixmap(); | 122 | QPixmap *src = bsy-> QIconViewItem::pixmap(); |
@@ -132,3 +133,3 @@ public: | |||
132 | int rc, gc, bc; | 133 | int rc, gc, bc; |
133 | int bs = ::abs ( busystate ) + 25; | 134 | int bs = ::abs ( busystate * 10 ) + 25; |
134 | colorGroup().highlight().rgb( &rc, &gc, &bc ); | 135 | colorGroup().highlight().rgb( &rc, &gc, &bc ); |
@@ -146,9 +147,9 @@ public: | |||
146 | 147 | ||
147 | bpm.convertFromImage( img ); | 148 | bpm [::abs(busystate)].convertFromImage( img ); |
148 | 149 | } | |
149 | bsy-> repaint ( ); | 150 | bsy-> repaint ( ); |
150 | 151 | ||
151 | busystate += 10; | 152 | busystate++; |
152 | if ( busystate > 50 ) | 153 | if ( busystate > 5 ) |
153 | busystate = -40; | 154 | busystate = -4; |
154 | } | 155 | } |
@@ -313,3 +314,3 @@ private: | |||
313 | QPixmap bgPixmap; | 314 | QPixmap bgPixmap; |
314 | QPixmap bpm; | 315 | QPixmap bpm [6]; |
315 | QColor bgColor; | 316 | QColor bgColor; |