-rw-r--r-- | core/multimedia/opieplayer/audiowidget.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/multimedia/opieplayer/audiowidget.cpp b/core/multimedia/opieplayer/audiowidget.cpp index aa48961..ac8c935 100644 --- a/core/multimedia/opieplayer/audiowidget.cpp +++ b/core/multimedia/opieplayer/audiowidget.cpp | |||
@@ -279,67 +279,64 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) { | |||
279 | } | 279 | } |
280 | } | 280 | } |
281 | } | 281 | } |
282 | 282 | ||
283 | 283 | ||
284 | void AudioWidget::mousePressEvent( QMouseEvent *event ) { | 284 | void AudioWidget::mousePressEvent( QMouseEvent *event ) { |
285 | mouseMoveEvent( event ); | 285 | mouseMoveEvent( event ); |
286 | } | 286 | } |
287 | 287 | ||
288 | 288 | ||
289 | void AudioWidget::mouseReleaseEvent( QMouseEvent *event ) { | 289 | void AudioWidget::mouseReleaseEvent( QMouseEvent *event ) { |
290 | mouseMoveEvent( event ); | 290 | mouseMoveEvent( event ); |
291 | } | 291 | } |
292 | 292 | ||
293 | 293 | ||
294 | void AudioWidget::showEvent( QShowEvent* ) { | 294 | void AudioWidget::showEvent( QShowEvent* ) { |
295 | QMouseEvent event( QEvent::MouseMove, QPoint( 0, 0 ), 0, 0 ); | 295 | QMouseEvent event( QEvent::MouseMove, QPoint( 0, 0 ), 0, 0 ); |
296 | mouseMoveEvent( &event ); | 296 | mouseMoveEvent( &event ); |
297 | } | 297 | } |
298 | 298 | ||
299 | 299 | ||
300 | void AudioWidget::closeEvent( QCloseEvent* ) { | 300 | void AudioWidget::closeEvent( QCloseEvent* ) { |
301 | mediaPlayerState->setList(); | 301 | mediaPlayerState->setList(); |
302 | } | 302 | } |
303 | 303 | ||
304 | 304 | ||
305 | void AudioWidget::paintEvent( QPaintEvent * ) { | 305 | void AudioWidget::paintEvent( QPaintEvent * ) { |
306 | QPainter p( this ); | 306 | QPainter p( this ); |
307 | for ( int i = 0; i < numButtons; i++ ) | 307 | for ( int i = 0; i < numButtons; i++ ) |
308 | paintButton( &p, i ); | 308 | paintButton( &p, i ); |
309 | } | 309 | } |
310 | 310 | ||
311 | void AudioWidget::showMe() { | ||
312 | show(); | ||
313 | } | ||
314 | void AudioWidget::keyReleaseEvent( QKeyEvent *e) | 311 | void AudioWidget::keyReleaseEvent( QKeyEvent *e) |
315 | { | 312 | { |
316 | switch ( e->key() ) { | 313 | switch ( e->key() ) { |
317 | ////////////////////////////// Zaurus keys | 314 | ////////////////////////////// Zaurus keys |
318 | case Key_Home: | 315 | case Key_Home: |
319 | break; | 316 | break; |
320 | case Key_F9: //activity | 317 | case Key_F9: //activity |
321 | hide(); | 318 | hide(); |
322 | // qDebug("Audio F9"); | 319 | // qDebug("Audio F9"); |
323 | break; | 320 | break; |
324 | case Key_F10: //contacts | 321 | case Key_F10: //contacts |
325 | break; | 322 | break; |
326 | case Key_F11: //menu | 323 | case Key_F11: //menu |
327 | break; | 324 | break; |
328 | case Key_F12: //home | 325 | case Key_F12: //home |
329 | break; | 326 | break; |
330 | case Key_F13: //mail | 327 | case Key_F13: //mail |
331 | break; | 328 | break; |
332 | case Key_Space: { | 329 | case Key_Space: { |
333 | if(mediaPlayerState->playing()) { | 330 | if(mediaPlayerState->playing()) { |
334 | // toggleButton(1); | 331 | // toggleButton(1); |
335 | mediaPlayerState->setPlaying(FALSE); | 332 | mediaPlayerState->setPlaying(FALSE); |
336 | // toggleButton(1); | 333 | // toggleButton(1); |
337 | } else { | 334 | } else { |
338 | // toggleButton(0); | 335 | // toggleButton(0); |
339 | mediaPlayerState->setPlaying(TRUE); | 336 | mediaPlayerState->setPlaying(TRUE); |
340 | // toggleButton(0); | 337 | // toggleButton(0); |
341 | } | 338 | } |
342 | } | 339 | } |
343 | break; | 340 | break; |
344 | case Key_Down: | 341 | case Key_Down: |
345 | toggleButton(6); | 342 | toggleButton(6); |