author | llornkcor <llornkcor> | 2002-06-29 04:06:17 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-29 04:06:17 (UTC) |
commit | 869bbb0b53c6ce941906a05a1536ad3eb130163e (patch) (side-by-side diff) | |
tree | 068db89509c58effd9e2e0af879b761784042e1a | |
parent | 3c187ccc9f1b684453c978ca9e56ff3137cb15ec (diff) | |
download | opie-869bbb0b53c6ce941906a05a1536ad3eb130163e.zip opie-869bbb0b53c6ce941906a05a1536ad3eb130163e.tar.gz opie-869bbb0b53c6ce941906a05a1536ad3eb130163e.tar.bz2 |
how about some key action on the playlist
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.cpp | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp index 4926287..b9b63c7 100644 --- a/core/multimedia/opieplayer/playlistwidget.cpp +++ b/core/multimedia/opieplayer/playlistwidget.cpp @@ -1155,8 +1155,19 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e) break; - case Key_3: - tabWidget->setCurrentPage(2); - break; - case Key_4: - tabWidget->setCurrentPage(3); - break; + case Key_3: + tabWidget->setCurrentPage(2); + break; + case Key_4: + tabWidget->setCurrentPage(3); + break; + case Key_Down: + if ( !d->selectedFiles->next() ) + d->selectedFiles->first(); + + break; + case Key_Up: + if ( !d->selectedFiles->prev() ) + d->selectedFiles->last(); + + break; + } @@ -1338,10 +1349,8 @@ void PlayListWidget::readPls(const QString &filename) { lnk.setName( name); - if(s.at(s.length()-4) == '.') - lnk.setFile( s); - else { - if( name.right(1).find('/') == -1) - s+="/"; - // if(s.right(1) != '/') - lnk.setFile( s); - + if(s.at(s.length()-4) == '.') // if this is probably a file + lnk.setFile( s); + else { //if its a url + if( name.right(1).find('/') == -1) + s+="/"; + lnk.setFile( s); } |