summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/audiowidget.cpp
authorsimon <simon>2002-12-09 15:19:47 (UTC)
committer simon <simon>2002-12-09 15:19:47 (UTC)
commit47d689545e68f2439cc88630ac78016712f92cc9 (patch) (unidiff)
tree5d2d01f7a68c2bed804c0b6518f9a8858de27a2e /noncore/multimedia/opieplayer2/audiowidget.cpp
parent3f37a852175ace7ee69b626f48eaea19d736b6ed (diff)
downloadopie-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.cpp19
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
@@ -397,25 +397,6 @@ void AudioWidget::showEvent( QShowEvent* ) {
397 mouseMoveEvent( &event ); 397 mouseMoveEvent( &event );
398} 398}
399 399
400
401void 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
419void AudioWidget::keyReleaseEvent( QKeyEvent *e) { 400void AudioWidget::keyReleaseEvent( QKeyEvent *e) {
420 switch ( e->key() ) { 401 switch ( e->key() ) {
421 ////////////////////////////// Zaurus keys 402 ////////////////////////////// Zaurus keys