author | harlekin <harlekin> | 2002-09-29 23:08:59 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-29 23:08:59 (UTC) |
commit | b53db7a5a334fdd53bd86e8b50587f1dae41cfba (patch) (unidiff) | |
tree | a2a24eea2bebefdbb02302ad57c0c0cbf425683e /core/launcher/launcherview.cpp | |
parent | a54430dbebd980109afdf604c7bfc9b0e15c4fdb (diff) | |
download | opie-b53db7a5a334fdd53bd86e8b50587f1dae41cfba.zip opie-b53db7a5a334fdd53bd86e8b50587f1dae41cfba.tar.gz opie-b53db7a5a334fdd53bd86e8b50587f1dae41cfba.tar.bz2 |
temporary workarround to prevent high cpuloads after first app is launched
Diffstat (limited to 'core/launcher/launcherview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/launcherview.cpp | 4 |
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 | |||
@@ -96,25 +96,27 @@ public: | |||
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(); |