summaryrefslogtreecommitdiff
path: root/core
Unidiff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp
index 9f86136..dbcb0d7 100644
--- a/core/launcher/launcherview.cpp
+++ b/core/launcher/launcherview.cpp
@@ -84,49 +84,51 @@ public:
84 } 84 }
85 85
86 QPixmap* busyPixmap() const { return (QPixmap*)&bpm; } 86 QPixmap* busyPixmap() const { return (QPixmap*)&bpm; }
87 QIconViewItem* busyItem() const { return bsy; } 87 QIconViewItem* busyItem() const { return bsy; }
88 void setBigIcons( bool bi ) { bigIcns = bi; } 88 void setBigIcons( bool bi ) { bigIcns = bi; }
89 89
90 void updateCategoriesAndMimeTypes(); 90 void updateCategoriesAndMimeTypes();
91 91
92 void doAutoScroll() 92 void doAutoScroll()
93 { 93 {
94 // We don't want rubberbanding (yet) 94 // We don't want rubberbanding (yet)
95 } 95 }
96 96
97 void setBusy(bool on) 97 void setBusy(bool on)
98 { 98 {
99 QIconViewItem *c = on ? currentItem() : 0; 99 QIconViewItem *c = on ? currentItem() : 0;
100 if ( bsy != c ) { 100 if ( bsy != c ) {
101 if ( bsy ) 101 if ( bsy )
102 bsy-> repaint ( ); 102 bsy-> repaint ( );
103 bsy = c; 103 bsy = c;
104 104
105 if ( bsy ) { 105 if ( bsy ) {
106 busytimer = startTimer ( 150 ); 106 busytimer = startTimer ( 150 );
107 busystate = 50; 107 busystate = 50;
108 startTimer ( 0 ); 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 );
109 } 111 }
110 else 112 else
111 killTimer ( busytimer ); 113 killTimer ( busytimer );
112 } 114 }
113 } 115 }
114 116
115 virtual void timerEvent ( QTimerEvent *te ) 117 virtual void timerEvent ( QTimerEvent *te )
116 { 118 {
117 if ( !te || ( te-> timerId ( ) == busytimer )) { 119 if ( !te || ( te-> timerId ( ) == busytimer )) {
118 if ( bsy ) { 120 if ( bsy ) {
119 QPixmap *src = bsy-> QIconViewItem::pixmap(); 121 QPixmap *src = bsy-> QIconViewItem::pixmap();
120 QImage img = src->convertToImage(); 122 QImage img = src->convertToImage();
121 QRgb* rgb; 123 QRgb* rgb;
122 int count; 124 int count;
123 if ( img.depth() == 32 ) { 125 if ( img.depth() == 32 ) {
124 rgb = (QRgb*)img.bits(); 126 rgb = (QRgb*)img.bits();
125 count = img.bytesPerLine()/sizeof(QRgb)*img.height(); 127 count = img.bytesPerLine()/sizeof(QRgb)*img.height();
126 } else { 128 } else {
127 rgb = img.colorTable(); 129 rgb = img.colorTable();
128 count = img.numColors(); 130 count = img.numColors();
129 } 131 }
130 int rc, gc, bc; 132 int rc, gc, bc;
131 int bs = ::abs ( busystate ) + 25; 133 int bs = ::abs ( busystate ) + 25;
132 colorGroup().highlight().rgb( &rc, &gc, &bc ); 134 colorGroup().highlight().rgb( &rc, &gc, &bc );