summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2
authorsimon <simon>2002-12-09 16:33:52 (UTC)
committer simon <simon>2002-12-09 16:33:52 (UTC)
commit1ae041fba55e218a2523de441bec6ec3a1eecf02 (patch) (unidiff)
treee12caa0db284f3237f52c91bbcd9578c5dcce8a7 /noncore/multimedia/opieplayer2
parent8eb71085cec5e24e20b441ceae9e5e66448405b3 (diff)
downloadopie-1ae041fba55e218a2523de441bec6ec3a1eecf02.zip
opie-1ae041fba55e218a2523de441bec6ec3a1eecf02.tar.gz
opie-1ae041fba55e218a2523de441bec6ec3a1eecf02.tar.bz2
- more cleanups in the mouse event handler
Diffstat (limited to 'noncore/multimedia/opieplayer2') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp6
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp5
2 files changed, 4 insertions, 7 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index 3838e2c..37c565b 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -335,9 +335,8 @@ void AudioWidget::timerEvent( QTimerEvent * ) {
335 335
336 336
337void AudioWidget::mouseMoveEvent( QMouseEvent *event ) { 337void AudioWidget::mouseMoveEvent( QMouseEvent *event ) {
338 for ( unsigned int i = 0; i < buttons.size(); i++ ) { 338 for ( ButtonVector::iterator it = buttons.begin(); it != buttons.end(); ++it ) {
339 339 Button &button = *it;
340 Button &button = buttons[ i ];
341 Command command = button.command; 340 Command command = button.command;
342 341
343 if ( event->state() == QMouseEvent::LeftButton ) { 342 if ( event->state() == QMouseEvent::LeftButton ) {
@@ -372,7 +371,6 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) {
372 if ( button.type != ToggleButton ) { 371 if ( button.type != ToggleButton ) {
373 setToggleButton( button, FALSE ); 372 setToggleButton( button, FALSE );
374 } 373 }
375 qDebug("mouseEvent %d", i);
376 handleCommand( command, button.isDown ); 374 handleCommand( command, button.isDown );
377 } 375 }
378 } 376 }
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index 06f6cd2..12316f8 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -244,9 +244,8 @@ void VideoWidget::updateSlider( long i, long max ) {
244} 244}
245 245
246void VideoWidget::mouseMoveEvent( QMouseEvent *event ) { 246void VideoWidget::mouseMoveEvent( QMouseEvent *event ) {
247 for ( unsigned int i = 0; i < buttons.size(); i++ ) { 247 for ( ButtonVector::iterator it = buttons.begin(); it != buttons.end(); ++it ) {
248 248 Button &button = *it;
249 Button &button = buttons[ i ];
250 Command command = button.command; 249 Command command = button.command;
251 250
252 if ( event->state() == QMouseEvent::LeftButton ) { 251 if ( event->state() == QMouseEvent::LeftButton ) {