summaryrefslogtreecommitdiff
path: root/noncore/multimedia
authorsimon <simon>2002-12-11 16:10:09 (UTC)
committer simon <simon>2002-12-11 16:10:09 (UTC)
commitba5eeb8ae2a59c896a9228f48022acf3f34b54a6 (patch) (unidiff)
tree1656c18449132732a42441c2fa8d789c47776ebf /noncore/multimedia
parent22f4babbd8ed8f431bbc92ef83cf46dbeabade88 (diff)
downloadopie-ba5eeb8ae2a59c896a9228f48022acf3f34b54a6.zip
opie-ba5eeb8ae2a59c896a9228f48022acf3f34b54a6.tar.gz
opie-ba5eeb8ae2a59c896a9228f48022acf3f34b54a6.tar.bz2
- ah, forgot to remove this unused code
Diffstat (limited to 'noncore/multimedia') (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 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
102 setLength( mediaPlayerState.length() ); 102 setLength( mediaPlayerState.length() );
103 setPosition( mediaPlayerState.position() ); 103 setPosition( mediaPlayerState.position() );
104 setLooping( mediaPlayerState.isFullscreen() ); 104 setLooping( mediaPlayerState.isFullscreen() );
105 // setPaused( mediaPlayerState->paused() ); 105 // setPaused( mediaPlayerState->paused() );
106 setPlaying( mediaPlayerState.isPlaying() ); 106 setPlaying( mediaPlayerState.isPlaying() );
107} 107}
108 108
109AudioWidget::~AudioWidget() { 109AudioWidget::~AudioWidget() {
110 110
111// mediaPlayerState->setPlaying(false); 111// mediaPlayerState->setPlaying(false);
112} 112}
113 113
114namespace {
115
116QPixmap combineImageWithBackground( QImage img, QPixmap bg, QPoint offset ) {
117 QPixmap pix( img.width(), img.height() );
118 QPainter p( &pix );
119 p.drawTiledPixmap( pix.rect(), bg, offset );
120 p.drawImage( 0, 0, img );
121 return pix;
122}
123
124
125QPixmap maskPixToMask( QPixmap pix, QBitmap mask ) {
126 QPixmap pixmap( pix );
127 pixmap.setMask( mask );
128 return pixmap;
129}
130
131};
132
133void AudioWidget::resizeEvent( QResizeEvent *e ) { 114void AudioWidget::resizeEvent( QResizeEvent *e ) {
134 int h = height(); 115 int h = height();
135 int w = width(); 116 int w = width();
136 117
137 songInfo.setGeometry( QRect( 2, 2, w - 4, 20 ) ); 118 songInfo.setGeometry( QRect( 2, 2, w - 4, 20 ) );
138 slider.setFixedWidth( w - 110 ); 119 slider.setFixedWidth( w - 110 );
139 slider.setGeometry( QRect( 15, h - 22, w - 90, 20 ) ); 120 slider.setGeometry( QRect( 15, h - 22, w - 90, 20 ) );
140 slider.setBackgroundOrigin( QWidget::ParentOrigin ); 121 slider.setBackgroundOrigin( QWidget::ParentOrigin );
141 time.setGeometry( QRect( w - 85, h - 30, 70, 20 ) ); 122 time.setGeometry( QRect( w - 85, h - 30, 70, 20 ) );
142 123
143 upperLeftOfButtonMask.rx() = ( w - buttonUpImage.width() ) / 2; 124 upperLeftOfButtonMask.rx() = ( w - buttonUpImage.width() ) / 2;
144 upperLeftOfButtonMask.ry() = (( h - buttonUpImage.height() ) / 2) - 10; 125 upperLeftOfButtonMask.ry() = (( h - buttonUpImage.height() ) / 2) - 10;