author | simon <simon> | 2002-12-09 09:50:33 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-09 09:50:33 (UTC) |
commit | 94a4c102d20eb63104a66fd8fba141a716ae3623 (patch) (side-by-side diff) | |
tree | d54c220fc94d8d7e7b84c7e6ed07bfb13cab5dcc | |
parent | 7ccd9b65ab621dbf8bf79c053141af81fb39ca4b (diff) | |
download | opie-94a4c102d20eb63104a66fd8fba141a716ae3623.zip opie-94a4c102d20eb63104a66fd8fba141a716ae3623.tar.gz opie-94a4c102d20eb63104a66fd8fba141a716ae3623.tar.bz2 |
switch (mouse) {
- case 1:
+ case LeftButton:
break;
- case 2:
+ case RightButton:
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 889667c..27a3286 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -196,51 +196,51 @@ void PlayListWidget::addToSelection( const DocLnk& lnk ) { if( QFileInfo( lnk.file() ).exists() || lnk.file().left(4) == "http" ) { d->selectedFiles->addToSelection( lnk ); } // writeCurrentM3u(); } void PlayListWidget::clearList() { while ( first() ) { d->selectedFiles->removeSelected(); } } void PlayListWidget::viewPressed( int mouse, QListViewItem *, const QPoint& , int) { switch (mouse) { - case 1: + case LeftButton: break; - case 2: + case RightButton: { QPopupMenu m; m.insertItem( tr( "Play Selected" ), this, SLOT( playSelected() )); m.insertItem( tr( "Add to Playlist" ), this, SLOT( addSelected() )); m.exec( QCursor::pos() ); } break; } } void PlayListWidget::playlistViewPressed( int mouse, QListViewItem *, const QPoint& , int ) { switch (mouse) { - case 1: + case LeftButton: break; - case 2: + case RightButton: { QPopupMenu m; m.insertItem( tr( "Play" ), this, SLOT( playSelected() )); m.insertItem( tr( "Remove" ), this, SLOT( removeSelected() )); m.exec( QCursor::pos() ); } break; } } void PlayListWidget::addAllToList() { // QTime t; // t.start(); |