Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index d083273..10b1e58 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -333,21 +333,21 @@ void AudioWidget::setToggleButton( int i, bool down ) { | |||
333 | } | 333 | } |
334 | 334 | ||
335 | 335 | ||
336 | void AudioWidget::toggleButton( int i ) { | 336 | void AudioWidget::toggleButton( int i ) { |
337 | buttons[i].isDown = !buttons[i].isDown; | 337 | buttons[i].isDown = !buttons[i].isDown; |
338 | QPainter p(this); | 338 | QPainter p(this); |
339 | paintButton ( &p, i ); | 339 | paintButton ( p, i ); |
340 | } | 340 | } |
341 | 341 | ||
342 | 342 | ||
343 | void AudioWidget::paintButton( QPainter *p, int i ) { | 343 | void AudioWidget::paintButton( QPainter &p, int i ) { |
344 | if ( buttons[i].isDown ) { | 344 | if ( buttons[i].isDown ) { |
345 | p->drawPixmap( upperLeftOfButtonMask, *buttonPixDown[i] ); | 345 | p.drawPixmap( upperLeftOfButtonMask, *buttonPixDown[i] ); |
346 | } else { | 346 | } else { |
347 | p->drawPixmap( upperLeftOfButtonMask, *buttonPixUp[i] ); | 347 | p.drawPixmap( upperLeftOfButtonMask, *buttonPixUp[i] ); |
348 | } | 348 | } |
349 | } | 349 | } |
350 | 350 | ||
351 | 351 | ||
352 | void AudioWidget::skipFor() { | 352 | void AudioWidget::skipFor() { |
353 | skipDirection = +1; | 353 | skipDirection = +1; |
@@ -439,19 +439,19 @@ void AudioWidget::paintEvent( QPaintEvent * pe ) { | |||
439 | // Combine with background and double buffer | 439 | // Combine with background and double buffer |
440 | QPixmap pix( pe->rect().size() ); | 440 | QPixmap pix( pe->rect().size() ); |
441 | QPainter p( &pix ); | 441 | QPainter p( &pix ); |
442 | p.translate( -pe->rect().topLeft().x(), -pe->rect().topLeft().y() ); | 442 | p.translate( -pe->rect().topLeft().x(), -pe->rect().topLeft().y() ); |
443 | p.drawTiledPixmap( pe->rect(), pixBg, pe->rect().topLeft() ); | 443 | p.drawTiledPixmap( pe->rect(), pixBg, pe->rect().topLeft() ); |
444 | for ( unsigned int i = 0; i < buttons.size(); i++ ) | 444 | for ( unsigned int i = 0; i < buttons.size(); i++ ) |
445 | paintButton( &p, i ); | 445 | paintButton( p, i ); |
446 | QPainter p2( this ); | 446 | QPainter p2( this ); |
447 | p2.drawPixmap( pe->rect().topLeft(), pix ); | 447 | p2.drawPixmap( pe->rect().topLeft(), pix ); |
448 | } else { | 448 | } else { |
449 | QPainter p( this ); | 449 | QPainter p( this ); |
450 | for ( unsigned int i = 0; i < buttons.size(); i++ ) | 450 | for ( unsigned int i = 0; i < buttons.size(); i++ ) |
451 | paintButton( &p, i ); | 451 | paintButton( p, i ); |
452 | } | 452 | } |
453 | } | 453 | } |
454 | 454 | ||
455 | void AudioWidget::keyReleaseEvent( QKeyEvent *e) { | 455 | void AudioWidget::keyReleaseEvent( QKeyEvent *e) { |
456 | switch ( e->key() ) { | 456 | switch ( e->key() ) { |
457 | ////////////////////////////// Zaurus keys | 457 | ////////////////////////////// Zaurus keys |