summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/videowidget.cpp
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index a0aed62..7c20c6d 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -58,14 +58,9 @@ namespace
58 58
59const int xo = 2; // movable x offset 59const int xo = 2; // movable x offset
60const int yo = 0; // movable y offset 60const int yo = 0; // movable y offset
61 61
62 62MediaWidget::Button videoButtons[] = {
63struct MediaButton {
64 bool isToggle, isHeld, isDown;
65};
66
67MediaButton videoButtons[] = {
68 { FALSE, FALSE, FALSE }, // stop 63 { FALSE, FALSE, FALSE }, // stop
69 { TRUE, FALSE, FALSE }, // play 64 { TRUE, FALSE, FALSE }, // play
70 { FALSE, FALSE, FALSE }, // previous 65 { FALSE, FALSE, FALSE }, // previous
71 { FALSE, FALSE, FALSE }, // next 66 { FALSE, FALSE, FALSE }, // next
@@ -77,9 +72,9 @@ MediaButton videoButtons[] = {
77const char * const skinV_mask_file_names[7] = { 72const char * const skinV_mask_file_names[7] = {
78"stop","play","back","fwd","up","down","full" 73"stop","play","back","fwd","up","down","full"
79}; 74};
80 75
81const int numVButtons = (sizeof(videoButtons)/sizeof(MediaButton)); 76const int numVButtons = (sizeof(videoButtons)/sizeof(MediaWidget::Button));
82 77
83} 78}
84 79
85VideoWidget::VideoWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name ) 80VideoWidget::VideoWidget( PlayListWidget &playList, MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name )