summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/audiowidget.cpp
Unidiff
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