Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 78079dd..4db444a 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -108,12 +108,22 @@ 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 | const MediaWidget::SkinButtonInfo *AudioWidget::skinInfo() | ||
115 | { | ||
116 | return ::skinInfo; | ||
117 | } | ||
118 | |||
119 | const uint AudioWidget::buttonCount() | ||
120 | { | ||
121 | return ::buttonCount; | ||
122 | } | ||
123 | |||
114 | void AudioWidget::resizeEvent( QResizeEvent *e ) { | 124 | void AudioWidget::resizeEvent( QResizeEvent *e ) { |
115 | int h = height(); | 125 | int h = height(); |
116 | int w = width(); | 126 | int w = width(); |
117 | 127 | ||
118 | songInfo.setGeometry( QRect( 2, 2, w - 4, 20 ) ); | 128 | songInfo.setGeometry( QRect( 2, 2, w - 4, 20 ) ); |
119 | slider.setFixedWidth( w - 110 ); | 129 | slider.setFixedWidth( w - 110 ); |
@@ -161,13 +171,13 @@ void AudioWidget::setDisplayType( MediaPlayerState::DisplayType mediaType ) { | |||
161 | killTimers(); | 171 | killTimers(); |
162 | hide(); | 172 | hide(); |
163 | } | 173 | } |
164 | 174 | ||
165 | void AudioWidget::loadSkin() | 175 | void AudioWidget::loadSkin() |
166 | { | 176 | { |
167 | loadDefaultSkin( skinInfo, buttonCount ); | 177 | loadDefaultSkin( ::skinInfo, ::buttonCount ); |
168 | 178 | ||
169 | setBackgroundPixmap( backgroundPixmap ); | 179 | setBackgroundPixmap( backgroundPixmap ); |
170 | 180 | ||
171 | songInfo.setFocusPolicy( QWidget::NoFocus ); | 181 | songInfo.setFocusPolicy( QWidget::NoFocus ); |
172 | // changeTextColor( &songInfo ); | 182 | // changeTextColor( &songInfo ); |
173 | // songInfo.setBackgroundColor( QColor( 167, 212, 167 )); | 183 | // songInfo.setBackgroundColor( QColor( 167, 212, 167 )); |