summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-04-27 15:32:47 (UTC)
committer llornkcor <llornkcor>2002-04-27 15:32:47 (UTC)
commitd0a9aaaca068af74d845743b0bf4f13f6f179f27 (patch) (unidiff)
tree4b4c83adeb464aca2e5a8439ba82d0494db6859e
parent320532727fc7dfbe9760d0eea0e17b8e1230fc8e (diff)
downloadopie-d0a9aaaca068af74d845743b0bf4f13f6f179f27.zip
opie-d0a9aaaca068af74d845743b0bf4f13f6f179f27.tar.gz
opie-d0a9aaaca068af74d845743b0bf4f13f6f179f27.tar.bz2
fix bug
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/audiowidget.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/multimedia/opieplayer/audiowidget.cpp b/core/multimedia/opieplayer/audiowidget.cpp
index aa48961..ac8c935 100644
--- a/core/multimedia/opieplayer/audiowidget.cpp
+++ b/core/multimedia/opieplayer/audiowidget.cpp
@@ -263,99 +263,96 @@ void AudioWidget::mouseMoveEvent( QMouseEvent *event ) {
263 audioButtons[i].isHeld = FALSE; 263 audioButtons[i].isHeld = FALSE;
264 if ( !audioButtons[i].isToggle ) 264 if ( !audioButtons[i].isToggle )
265 setToggleButton( i, FALSE ); 265 setToggleButton( i, FALSE );
266 qDebug("button toggled3 %d",i); 266 qDebug("button toggled3 %d",i);
267 switch (i) { 267 switch (i) {
268 case AudioPlay: mediaPlayerState->setPlaying(audioButtons[i].isDown); return; 268 case AudioPlay: mediaPlayerState->setPlaying(audioButtons[i].isDown); return;
269 case AudioStop: mediaPlayerState->setPlaying(FALSE); return; 269 case AudioStop: mediaPlayerState->setPlaying(FALSE); return;
270 case AudioPause: mediaPlayerState->setPaused(audioButtons[i].isDown); return; 270 case AudioPause: mediaPlayerState->setPaused(audioButtons[i].isDown); return;
271 case AudioNext: mediaPlayerState->setNext(); return; 271 case AudioNext: mediaPlayerState->setNext(); return;
272 case AudioPrevious: mediaPlayerState->setPrev(); return; 272 case AudioPrevious: mediaPlayerState->setPrev(); return;
273 case AudioLoop: mediaPlayerState->setLooping(audioButtons[i].isDown); return; 273 case AudioLoop: mediaPlayerState->setLooping(audioButtons[i].isDown); return;
274 case AudioVolumeUp: emit moreReleased(); return; 274 case AudioVolumeUp: emit moreReleased(); return;
275 case AudioVolumeDown: emit lessReleased(); return; 275 case AudioVolumeDown: emit lessReleased(); return;
276 case AudioPlayList: mediaPlayerState->setList(); return; 276 case AudioPlayList: mediaPlayerState->setList(); return;
277 } 277 }
278 } 278 }
279 } 279 }
280 } 280 }
281} 281}
282 282
283 283
284void AudioWidget::mousePressEvent( QMouseEvent *event ) { 284void AudioWidget::mousePressEvent( QMouseEvent *event ) {
285 mouseMoveEvent( event ); 285 mouseMoveEvent( event );
286} 286}
287 287
288 288
289void AudioWidget::mouseReleaseEvent( QMouseEvent *event ) { 289void AudioWidget::mouseReleaseEvent( QMouseEvent *event ) {
290 mouseMoveEvent( event ); 290 mouseMoveEvent( event );
291} 291}
292 292
293 293
294void AudioWidget::showEvent( QShowEvent* ) { 294void AudioWidget::showEvent( QShowEvent* ) {
295 QMouseEvent event( QEvent::MouseMove, QPoint( 0, 0 ), 0, 0 ); 295 QMouseEvent event( QEvent::MouseMove, QPoint( 0, 0 ), 0, 0 );
296 mouseMoveEvent( &event ); 296 mouseMoveEvent( &event );
297} 297}
298 298
299 299
300void AudioWidget::closeEvent( QCloseEvent* ) { 300void AudioWidget::closeEvent( QCloseEvent* ) {
301 mediaPlayerState->setList(); 301 mediaPlayerState->setList();
302} 302}
303 303
304 304
305void AudioWidget::paintEvent( QPaintEvent * ) { 305void AudioWidget::paintEvent( QPaintEvent * ) {
306 QPainter p( this ); 306 QPainter p( this );
307 for ( int i = 0; i < numButtons; i++ ) 307 for ( int i = 0; i < numButtons; i++ )
308 paintButton( &p, i ); 308 paintButton( &p, i );
309} 309}
310 310
311void AudioWidget::showMe() {
312 show();
313}
314void AudioWidget::keyReleaseEvent( QKeyEvent *e) 311void AudioWidget::keyReleaseEvent( QKeyEvent *e)
315{ 312{
316 switch ( e->key() ) { 313 switch ( e->key() ) {
317////////////////////////////// Zaurus keys 314////////////////////////////// Zaurus keys
318 case Key_Home: 315 case Key_Home:
319 break; 316 break;
320 case Key_F9: //activity 317 case Key_F9: //activity
321 hide(); 318 hide();
322// qDebug("Audio F9"); 319// qDebug("Audio F9");
323 break; 320 break;
324 case Key_F10: //contacts 321 case Key_F10: //contacts
325 break; 322 break;
326 case Key_F11: //menu 323 case Key_F11: //menu
327 break; 324 break;
328 case Key_F12: //home 325 case Key_F12: //home
329 break; 326 break;
330 case Key_F13: //mail 327 case Key_F13: //mail
331 break; 328 break;
332 case Key_Space: { 329 case Key_Space: {
333 if(mediaPlayerState->playing()) { 330 if(mediaPlayerState->playing()) {
334// toggleButton(1); 331// toggleButton(1);
335 mediaPlayerState->setPlaying(FALSE); 332 mediaPlayerState->setPlaying(FALSE);
336// toggleButton(1); 333// toggleButton(1);
337 } else { 334 } else {
338// toggleButton(0); 335// toggleButton(0);
339 mediaPlayerState->setPlaying(TRUE); 336 mediaPlayerState->setPlaying(TRUE);
340// toggleButton(0); 337// toggleButton(0);
341 } 338 }
342 } 339 }
343 break; 340 break;
344 case Key_Down: 341 case Key_Down:
345 toggleButton(6); 342 toggleButton(6);
346 emit lessClicked(); 343 emit lessClicked();
347 emit lessReleased(); 344 emit lessReleased();
348 toggleButton(6); 345 toggleButton(6);
349 break; 346 break;
350 case Key_Up: 347 case Key_Up:
351 toggleButton(5); 348 toggleButton(5);
352 emit moreClicked(); 349 emit moreClicked();
353 emit moreReleased(); 350 emit moreReleased();
354 toggleButton(5); 351 toggleButton(5);
355 break; 352 break;
356 case Key_Right: 353 case Key_Right:
357// toggleButton(3); 354// toggleButton(3);
358 mediaPlayerState->setNext(); 355 mediaPlayerState->setNext();
359// toggleButton(3); 356// toggleButton(3);
360 break; 357 break;
361 case Key_Left: 358 case Key_Left: