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 bb07882..78079dd 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -108,31 +108,12 @@ AudioWidget::AudioWidget( PlayListWidget &playList, MediaPlayerState &mediaPlaye | |||
108 | 108 | ||
109 | AudioWidget::~AudioWidget() { | 109 | AudioWidget::~AudioWidget() { |
110 | 110 | ||
111 | // mediaPlayerState->setPlaying(false); | 111 | // mediaPlayerState->setPlaying(false); |
112 | } | 112 | } |
113 | 113 | ||
114 | namespace { | ||
115 | |||
116 | QPixmap 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 | |||
125 | QPixmap maskPixToMask( QPixmap pix, QBitmap mask ) { | ||
126 | QPixmap pixmap( pix ); | ||
127 | pixmap.setMask( mask ); | ||
128 | return pixmap; | ||
129 | } | ||
130 | |||
131 | }; | ||
132 | |||
133 | void AudioWidget::resizeEvent( QResizeEvent *e ) { | 114 | void 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 ); |