author | simon <simon> | 2002-12-09 15:19:47 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-09 15:19:47 (UTC) |
commit | 47d689545e68f2439cc88630ac78016712f92cc9 (patch) (unidiff) | |
tree | 5d2d01f7a68c2bed804c0b6518f9a8858de27a2e /noncore/multimedia/opieplayer2/audiowidget.cpp | |
parent | 3f37a852175ace7ee69b626f48eaea19d736b6ed (diff) | |
download | opie-47d689545e68f2439cc88630ac78016712f92cc9.zip opie-47d689545e68f2439cc88630ac78016712f92cc9.tar.gz opie-47d689545e68f2439cc88630ac78016712f92cc9.tar.bz2 |
- merged the duplicated (and identical) paintEvent methods into the
base class
Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 553c56b..277d162 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -399,21 +399,2 @@ void AudioWidget::showEvent( QShowEvent* ) { | |||
399 | 399 | ||
400 | |||
401 | void AudioWidget::paintEvent( QPaintEvent * pe ) { | ||
402 | if ( !pe->erased() ) { | ||
403 | // Combine with background and double buffer | ||
404 | QPixmap pix( pe->rect().size() ); | ||
405 | QPainter p( &pix ); | ||
406 | p.translate( -pe->rect().topLeft().x(), -pe->rect().topLeft().y() ); | ||
407 | p.drawTiledPixmap( pe->rect(), backgroundPixmap, pe->rect().topLeft() ); | ||
408 | for ( unsigned int i = 0; i < buttons.count(); i++ ) | ||
409 | paintButton( p, buttons[ i ] ); | ||
410 | QPainter p2( this ); | ||
411 | p2.drawPixmap( pe->rect().topLeft(), pix ); | ||
412 | } else { | ||
413 | QPainter p( this ); | ||
414 | for ( unsigned int i = 0; i < buttons.count(); i++ ) | ||
415 | paintButton( p, buttons[ i ] ); | ||
416 | } | ||
417 | } | ||
418 | |||
419 | void AudioWidget::keyReleaseEvent( QKeyEvent *e) { | 400 | void AudioWidget::keyReleaseEvent( QKeyEvent *e) { |