Diffstat (limited to 'noncore/net/opietooth/applet') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/applet/bluezapplet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index 8a7f0bc..1d93f5c 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp | |||
@@ -185,37 +185,37 @@ namespace OpieTooth { | |||
185 | } | 185 | } |
186 | 186 | ||
187 | /** | 187 | /** |
188 | * Refresh timer | 188 | * Refresh timer |
189 | * @param the timer event | 189 | * @param the timer event |
190 | */ | 190 | */ |
191 | void BluezApplet::timerEvent( QTimerEvent * ) { | 191 | void BluezApplet::timerEvent( QTimerEvent * ) { |
192 | bool oldactive = bluezactive; | 192 | bool oldactive = bluezactive; |
193 | int olddiscovery = bluezDiscoveryActive; | 193 | int olddiscovery = bluezDiscoveryActive; |
194 | 194 | ||
195 | bluezactive = checkBluezStatus(); | 195 | bluezactive = checkBluezStatus(); |
196 | bluezDiscoveryActive = checkBluezDiscoveryStatus(); | 196 | bluezDiscoveryActive = checkBluezDiscoveryStatus(); |
197 | 197 | ||
198 | if ((bluezactive != oldactive) || (bluezDiscoveryActive != olddiscovery)) { | 198 | if ((bluezactive != oldactive) || (bluezDiscoveryActive != olddiscovery)) { |
199 | update(); | 199 | update(); |
200 | } | 200 | } |
201 | } | 201 | } |
202 | 202 | ||
203 | /** | 203 | /** |
204 | * Implementation of the paint event | 204 | * Implementation of the paint event |
205 | * @param the QPaintEvent | 205 | * @param the QPaintEvent |
206 | */ | 206 | */ |
207 | void BluezApplet::paintEvent( QPaintEvent* ) { | 207 | void BluezApplet::paintEvent( QPaintEvent* ) { |
208 | QPainter p(this); | 208 | QPainter p(this); |
209 | qDebug("paint bluetooth pixmap"); | 209 | odebug << "paint bluetooth pixmap" << oendl; |
210 | 210 | ||
211 | if (bluezactive > 0) { | 211 | if (bluezactive > 0) { |
212 | p.drawPixmap( 0, 1, bluezOnPixmap ); | 212 | p.drawPixmap( 0, 1, bluezOnPixmap ); |
213 | } else { | 213 | } else { |
214 | p.drawPixmap( 0, 1, bluezOffPixmap ); | 214 | p.drawPixmap( 0, 1, bluezOffPixmap ); |
215 | } | 215 | } |
216 | 216 | ||
217 | if (bluezDiscoveryActive > 0) { | 217 | if (bluezDiscoveryActive > 0) { |
218 | p.drawPixmap( 0, 1, bluezDiscoveryOnPixmap ); | 218 | p.drawPixmap( 0, 1, bluezDiscoveryOnPixmap ); |
219 | } | 219 | } |
220 | } | 220 | } |
221 | }; | 221 | }; |