Diffstat (limited to 'noncore/multimedia/opieplayer2/mediawidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp index 3533d74..439ba2e 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.cpp +++ b/noncore/multimedia/opieplayer2/mediawidget.cpp | |||
@@ -104,24 +104,34 @@ void MediaWidget::mouseMoveEvent( QMouseEvent *event ) | |||
104 | } else { | 104 | } else { |
105 | if ( button.isHeld ) { | 105 | if ( button.isHeld ) { |
106 | button.isHeld = FALSE; | 106 | button.isHeld = FALSE; |
107 | if ( button.type != ToggleButton ) { | 107 | if ( button.type != ToggleButton ) { |
108 | setToggleButton( button, FALSE ); | 108 | setToggleButton( button, FALSE ); |
109 | } | 109 | } |
110 | handleCommand( command, button.isDown ); | 110 | handleCommand( command, button.isDown ); |
111 | } | 111 | } |
112 | } | 112 | } |
113 | } | 113 | } |
114 | } | 114 | } |
115 | 115 | ||
116 | void MediaWidget::mousePressEvent( QMouseEvent *event ) | ||
117 | { | ||
118 | mouseMoveEvent( event ); | ||
119 | } | ||
120 | |||
121 | void MediaWidget::mouseReleaseEvent( QMouseEvent *event ) | ||
122 | { | ||
123 | mouseMoveEvent( event ); | ||
124 | } | ||
125 | |||
116 | void MediaWidget::makeVisible() | 126 | void MediaWidget::makeVisible() |
117 | { | 127 | { |
118 | } | 128 | } |
119 | 129 | ||
120 | void MediaWidget::handleCommand( Command command, bool buttonDown ) | 130 | void MediaWidget::handleCommand( Command command, bool buttonDown ) |
121 | { | 131 | { |
122 | switch ( command ) { | 132 | switch ( command ) { |
123 | case Play: mediaPlayerState.togglePaused(); | 133 | case Play: mediaPlayerState.togglePaused(); |
124 | case Stop: mediaPlayerState.setPlaying(FALSE); return; | 134 | case Stop: mediaPlayerState.setPlaying(FALSE); return; |
125 | case Next: if( playList.currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setNext(); return; | 135 | case Next: if( playList.currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setNext(); return; |
126 | case Previous: if( playList.currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setPrev(); return; | 136 | case Previous: if( playList.currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setPrev(); return; |
127 | case Loop: mediaPlayerState.setLooping( buttonDown ); return; | 137 | case Loop: mediaPlayerState.setLooping( buttonDown ); return; |