author | llornkcor <llornkcor> | 2002-04-10 20:16:48 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-10 20:16:48 (UTC) |
commit | 5d7caf051fb1b46fc2ed7d2f71b03fdf3b42b3ac (patch) (side-by-side diff) | |
tree | af7abddaeb16b6167d975968f62a521d8e6231dc /core/multimedia/opieplayer/playlistwidget.cpp | |
parent | 5cf7797af9fb965916f5017f84898516157c4620 (diff) | |
download | opie-5d7caf051fb1b46fc2ed7d2f71b03fdf3b42b3ac.zip opie-5d7caf051fb1b46fc2ed7d2f71b03fdf3b42b3ac.tar.gz opie-5d7caf051fb1b46fc2ed7d2f71b03fdf3b42b3ac.tar.bz2 |
added ability to remember position in the playlist you were last at startup and when opening playlists
Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp index 63df715..0764c01 100644 --- a/core/multimedia/opieplayer/playlistwidget.cpp +++ b/core/multimedia/opieplayer/playlistwidget.cpp @@ -320,5 +320,6 @@ void PlayListWidget::initializeStates() { // setPlaylist( mediaPlayerState->playlist() ); setPlaylist( true); - d->selectedFiles->first(); +// d->selectedFiles->first(); + } @@ -337,4 +338,5 @@ void PlayListWidget::readConfig( Config& cfg ) { } } + d->selectedFiles->setSelectedItem( currentString); // d->selectedFiles->setSelectedItem( (const QString &)currentString); } @@ -352,5 +354,5 @@ void PlayListWidget::writeConfig( Config& cfg ) const { QString entryName; entryName.sprintf( "File%i", noOfFiles + 1 ); - qDebug(entryName); +// qDebug(entryName); cfg.writeEntry( entryName, lnk->linkFile() ); // if this link does exist, add it so we have the file @@ -474,5 +476,5 @@ const DocLnk *PlayListWidget::current() { // this is fugly // case 0: //playlist // { - qDebug("playlist"); +// qDebug("playlist"); if ( mediaPlayerState->playlist() ) { return d->selectedFiles->current(); @@ -610,5 +612,5 @@ void PlayListWidget::saveList() { lnk.setIcon("mpegplayer/playlist2"); lnk.setName( filename); //sets file name - qDebug(filename); +// qDebug(filename); if(!lnk.writeLink()) qDebug("Writing doclink did not work"); @@ -887,5 +889,5 @@ void PlayListWidget::listDelete() { for ( ; dit.current(); ++dit ) { if( dit.current()->name() == file) { - qDebug(file); +// qDebug(file); LnkProperties prop( dit.current() ); // connect(&prop, SIGNAL(select(const AppLnk *)), this, SLOT(externalSelected(const AppLnk *))); |