author | simon <simon> | 2002-12-08 20:36:14 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-08 20:36:14 (UTC) |
commit | 7c3bd0be34ef70a2297e6f27c592da62f3010da5 (patch) (unidiff) | |
tree | c73aaf583ef2b9f56f544f580b52145aca356e84 | |
parent | ec91b042d8312f83027beb357448fe02a13e8923 (diff) | |
download | opie-7c3bd0be34ef70a2297e6f27c592da62f3010da5.zip opie-7c3bd0be34ef70a2297e6f27c592da62f3010da5.tar.gz opie-7c3bd0be34ef70a2297e6f27c592da62f3010da5.tar.bz2 |
- minor cleanup
-rw-r--r-- | noncore/multimedia/opieplayer2/audiowidget.cpp | 13 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/videowidget.cpp | 12 |
2 files changed, 15 insertions, 10 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp index 8dbfb3d..7bf3a19 100644 --- a/noncore/multimedia/opieplayer2/audiowidget.cpp +++ b/noncore/multimedia/opieplayer2/audiowidget.cpp | |||
@@ -50,8 +50,11 @@ | |||
50 | #include "mediaplayerstate.h" | 50 | #include "mediaplayerstate.h" |
51 | #include "playlistwidget.h" | 51 | #include "playlistwidget.h" |
52 | 52 | ||
53 | static const int xo = -2; // movable x offset | 53 | namespace |
54 | static const int yo = 22; // movable y offset | 54 | { |
55 | |||
56 | const int xo = -2; // movable x offset | ||
57 | const int yo = 22; // movable y offset | ||
55 | 58 | ||
56 | struct MediaButton { | 59 | struct MediaButton { |
57 | bool isToggle, isHeld, isDown; | 60 | bool isToggle, isHeld, isDown; |
@@ -76,16 +79,16 @@ const char * const skin_mask_file_names[10] = { | |||
76 | "down", "loop", "playlist", "forward", "back" | 79 | "down", "loop", "playlist", "forward", "back" |
77 | }; | 80 | }; |
78 | 81 | ||
79 | 82 | void changeTextColor( QWidget * w) { | |
80 | static void changeTextColor( QWidget * w) { | ||
81 | QPalette p = w->palette(); | 83 | QPalette p = w->palette(); |
82 | p.setBrush( QColorGroup::Background, QColor( 167, 212, 167 ) ); | 84 | p.setBrush( QColorGroup::Background, QColor( 167, 212, 167 ) ); |
83 | p.setBrush( QColorGroup::Base, QColor( 167, 212, 167 ) ); | 85 | p.setBrush( QColorGroup::Base, QColor( 167, 212, 167 ) ); |
84 | w->setPalette( p ); | 86 | w->setPalette( p ); |
85 | } | 87 | } |
86 | 88 | ||
87 | static const int numButtons = (sizeof(audioButtons)/sizeof(MediaButton)); | 89 | const int numButtons = (sizeof(audioButtons)/sizeof(MediaButton)); |
88 | 90 | ||
91 | } | ||
89 | 92 | ||
90 | AudioWidget::AudioWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name) : | 93 | AudioWidget::AudioWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name) : |
91 | 94 | ||
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index b7305fe..a0aed62 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp | |||
@@ -53,10 +53,11 @@ | |||
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | 55 | ||
56 | namespace | ||
57 | { | ||
56 | 58 | ||
57 | 59 | const int xo = 2; // movable x offset | |
58 | static const int xo = 2; // movable x offset | 60 | const int yo = 0; // movable y offset |
59 | static const int yo = 0; // movable y offset | ||
60 | 61 | ||
61 | 62 | ||
62 | struct MediaButton { | 63 | struct MediaButton { |
@@ -73,12 +74,13 @@ MediaButton videoButtons[] = { | |||
73 | { TRUE, FALSE, FALSE } // fullscreen | 74 | { TRUE, FALSE, FALSE } // fullscreen |
74 | }; | 75 | }; |
75 | 76 | ||
76 | const char *skinV_mask_file_names[7] = { | 77 | const char * const skinV_mask_file_names[7] = { |
77 | "stop","play","back","fwd","up","down","full" | 78 | "stop","play","back","fwd","up","down","full" |
78 | }; | 79 | }; |
79 | 80 | ||
80 | static const int numVButtons = (sizeof(videoButtons)/sizeof(MediaButton)); | 81 | const int numVButtons = (sizeof(videoButtons)/sizeof(MediaButton)); |
81 | 82 | ||
83 | } | ||
82 | 84 | ||
83 | VideoWidget::VideoWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name ) | 85 | VideoWidget::VideoWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name ) |
84 | : MediaWidget( playList, mediaPlayerState, parent, name ), scaledWidth( 0 ), scaledHeight( 0 ) | 86 | : MediaWidget( playList, mediaPlayerState, parent, name ), scaledWidth( 0 ), scaledHeight( 0 ) |