author | simon <simon> | 2002-12-11 16:10:09 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-11 16:10:09 (UTC) |
commit | ba5eeb8ae2a59c896a9228f48022acf3f34b54a6 (patch) (side-by-side diff) | |
tree | 1656c18449132732a42441c2fa8d789c47776ebf | |
parent | 22f4babbd8ed8f431bbc92ef83cf46dbeabade88 (diff) | |
download | opie-ba5eeb8ae2a59c896a9228f48022acf3f34b54a6.zip opie-ba5eeb8ae2a59c896a9228f48022acf3f34b54a6.tar.gz opie-ba5eeb8ae2a59c896a9228f48022acf3f34b54a6.tar.bz2 |
- ah, forgot to remove this unused code
-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 bb07882..78079dd 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp @@ -102,43 +102,24 @@ AudioWidget::AudioWidget( PlayListWidget &playList, MediaPlayerState &mediaPlaye setLength( mediaPlayerState.length() ); setPosition( mediaPlayerState.position() ); setLooping( mediaPlayerState.isFullscreen() ); // setPaused( mediaPlayerState->paused() ); setPlaying( mediaPlayerState.isPlaying() ); } AudioWidget::~AudioWidget() { // mediaPlayerState->setPlaying(false); } -namespace { - -QPixmap combineImageWithBackground( QImage img, QPixmap bg, QPoint offset ) { - QPixmap pix( img.width(), img.height() ); - QPainter p( &pix ); - p.drawTiledPixmap( pix.rect(), bg, offset ); - p.drawImage( 0, 0, img ); - return pix; -} - - -QPixmap maskPixToMask( QPixmap pix, QBitmap mask ) { - QPixmap pixmap( pix ); - pixmap.setMask( mask ); - return pixmap; -} - -}; - void AudioWidget::resizeEvent( QResizeEvent *e ) { int h = height(); int w = width(); songInfo.setGeometry( QRect( 2, 2, w - 4, 20 ) ); slider.setFixedWidth( w - 110 ); slider.setGeometry( QRect( 15, h - 22, w - 90, 20 ) ); slider.setBackgroundOrigin( QWidget::ParentOrigin ); time.setGeometry( QRect( w - 85, h - 30, 70, 20 ) ); upperLeftOfButtonMask.rx() = ( w - buttonUpImage.width() ) / 2; upperLeftOfButtonMask.ry() = (( h - buttonUpImage.height() ) / 2) - 10; |