Diffstat (limited to 'noncore/net/opietooth/applet/bluezapplet.cpp') (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 | |||
@@ -161,61 +161,61 @@ namespace OpieTooth { | |||
161 | break; | 161 | break; |
162 | case 3: | 162 | case 3: |
163 | setBluezDiscoveryStatus(0); | 163 | setBluezDiscoveryStatus(0); |
164 | timerEvent( 0 ); | 164 | timerEvent( 0 ); |
165 | break; | 165 | break; |
166 | case 4: | 166 | case 4: |
167 | setBluezDiscoveryStatus(1); | 167 | setBluezDiscoveryStatus(1); |
168 | timerEvent(0 ); | 168 | timerEvent(0 ); |
169 | break; | 169 | break; |
170 | //case 7: | 170 | //case 7: |
171 | // With table of currently-detected devices. | 171 | // With table of currently-detected devices. |
172 | } | 172 | } |
173 | 173 | ||
174 | delete signal; | 174 | delete signal; |
175 | delete menu; | 175 | delete menu; |
176 | } | 176 | } |
177 | 177 | ||
178 | 178 | ||
179 | /** | 179 | /** |
180 | * Launches the bluetooth manager | 180 | * Launches the bluetooth manager |
181 | */ | 181 | */ |
182 | void BluezApplet::launchManager() { | 182 | void BluezApplet::launchManager() { |
183 | QCopEnvelope e("QPE/System", "execute(QString)"); | 183 | QCopEnvelope e("QPE/System", "execute(QString)"); |
184 | e << QString("bluetooth-manager"); | 184 | e << QString("bluetooth-manager"); |
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 | }; |