author | ar <ar> | 2004-02-14 17:15:39 (UTC) |
---|---|---|
committer | ar <ar> | 2004-02-14 17:15:39 (UTC) |
commit | f8e43c3ba35bc784fc332e27db2898d4191269ac (patch) (unidiff) | |
tree | 2783066d8dc6d902765d1f733e04618914b88f18 /noncore/multimedia/opieplayer2/audiowidget.cpp | |
parent | c6bca75c479533d064a782a5f27d3dfb3aa1c042 (diff) | |
download | opie-f8e43c3ba35bc784fc332e27db2898d4191269ac.zip opie-f8e43c3ba35bc784fc332e27db2898d4191269ac.tar.gz opie-f8e43c3ba35bc784fc332e27db2898d4191269ac.tar.bz2 |
improve support for BigScreen
Diffstat (limited to 'noncore/multimedia/opieplayer2/audiowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 2c54ae6..4242aa6 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -27,24 +27,26 @@ | |||
27 | -- :-=` this library; see the file COPYING.LIB. | 27 | -- :-=` this library; see the file COPYING.LIB. |
28 | If not, write to the Free Software Foundation, | 28 | If not, write to the Free Software Foundation, |
29 | Inc., 59 Temple Place - Suite 330, | 29 | Inc., 59 Temple Place - Suite 330, |
30 | Boston, MA 02111-1307, USA. | 30 | Boston, MA 02111-1307, USA. |
31 | 31 | ||
32 | */ | 32 | */ |
33 | 33 | ||
34 | 34 | ||
35 | #include "audiowidget.h" | 35 | #include "audiowidget.h" |
36 | #include "mediaplayerstate.h" | 36 | #include "mediaplayerstate.h" |
37 | #include "playlistwidget.h" | 37 | #include "playlistwidget.h" |
38 | 38 | ||
39 | #include <qpe/qpeapplication.h> | ||
40 | |||
39 | namespace | 41 | namespace |
40 | { | 42 | { |
41 | 43 | ||
42 | const int xo = -2; // movable x offset | 44 | const int xo = -2; // movable x offset |
43 | const int yo = 22; // movable y offset | 45 | const int yo = 22; // movable y offset |
44 | 46 | ||
45 | const MediaWidget::SkinButtonInfo skinInfo[] = | 47 | const MediaWidget::SkinButtonInfo skinInfo[] = |
46 | { | 48 | { |
47 | { MediaWidget::Play, "play", MediaWidget::ToggleButton }, | 49 | { MediaWidget::Play, "play", MediaWidget::ToggleButton }, |
48 | { MediaWidget::Stop, "stop", MediaWidget::NormalButton }, | 50 | { MediaWidget::Stop, "stop", MediaWidget::NormalButton }, |
49 | { MediaWidget::Next, "next", MediaWidget::NormalButton }, | 51 | { MediaWidget::Next, "next", MediaWidget::NormalButton }, |
50 | { MediaWidget::Previous, "prev", MediaWidget::NormalButton }, | 52 | { MediaWidget::Previous, "prev", MediaWidget::NormalButton }, |
@@ -136,25 +138,25 @@ void AudioWidget::setPosition( long i ) { | |||
136 | updateSlider( i, mediaPlayerState.length() ); | 138 | updateSlider( i, mediaPlayerState.length() ); |
137 | } | 139 | } |
138 | 140 | ||
139 | 141 | ||
140 | void AudioWidget::setLength( long max ) { | 142 | void AudioWidget::setLength( long max ) { |
141 | updateSlider( mediaPlayerState.position(), max ); | 143 | updateSlider( mediaPlayerState.position(), max ); |
142 | } | 144 | } |
143 | 145 | ||
144 | 146 | ||
145 | void AudioWidget::setDisplayType( MediaPlayerState::DisplayType mediaType ) { | 147 | void AudioWidget::setDisplayType( MediaPlayerState::DisplayType mediaType ) { |
146 | if ( mediaType == MediaPlayerState::Audio ) { | 148 | if ( mediaType == MediaPlayerState::Audio ) { |
147 | // startTimer( 150 ); | 149 | // startTimer( 150 ); |
148 | showMaximized(); | 150 | QPEApplication::showDialog( this ); |
149 | return; | 151 | return; |
150 | } | 152 | } |
151 | 153 | ||
152 | killTimers(); | 154 | killTimers(); |
153 | hide(); | 155 | hide(); |
154 | } | 156 | } |
155 | 157 | ||
156 | void AudioWidget::loadSkin() | 158 | void AudioWidget::loadSkin() |
157 | { | 159 | { |
158 | loadDefaultSkin( guiInfo() ); | 160 | loadDefaultSkin( guiInfo() ); |
159 | 161 | ||
160 | songInfo.setFocusPolicy( QWidget::NoFocus ); | 162 | songInfo.setFocusPolicy( QWidget::NoFocus ); |