-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index c35e03d..a65495e 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -58,3 +58,3 @@ PlayListWidget::PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* parent, const char* name ) - : PlayListWidgetGui( mediaPlayerState, parent, name ) , currentFileListView( 0 ) + : PlayListWidgetGui( mediaPlayerState, parent, name ) , currentFileListView( 0 ) { @@ -103,5 +103,5 @@ PlayListWidget::PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* par - (void)new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up", + (void)new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up", d->selectedFiles, SLOT(moveSelectedUp() ) ); - (void)new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut", + (void)new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut", d->selectedFiles, SLOT(removeSelected() ) ); @@ -109,3 +109,3 @@ PlayListWidget::PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* par d->selectedFiles, SLOT(moveSelectedDown() ) ); - // QVBox *stretch2 = new QVBox( vbox1 ); + QVBox *stretch2 = new QVBox( vbox1 ); @@ -190,3 +190,3 @@ void PlayListWidget::writeDefaultPlaylist() { delete m3uList; - + } @@ -201,3 +201,3 @@ void PlayListWidget::addToSelection( const DocLnk& lnk ) { } -// writeCurrentM3u(); +// writeCurrentM3u(); } @@ -263,3 +263,3 @@ void PlayListWidget::addAllToList() { d->selectedFiles->addToSelection( lnk); - } + } @@ -273,3 +273,3 @@ void PlayListWidget::addAllToList() { d->selectedFiles->addToSelection( lnk); - } + } @@ -279,3 +279,3 @@ void PlayListWidget::addAllToList() { // } - + @@ -283,3 +283,3 @@ void PlayListWidget::addAllToList() { // scanForAudio(); -// if(!videoScan) +// if(!videoScan) // scanForVideo(); @@ -298,3 +298,3 @@ void PlayListWidget::addAllToList() { tabWidget->setCurrentPage(0); - + writeCurrentM3u(); @@ -317,3 +317,3 @@ void PlayListWidget::addAllMusicToList() { d->selectedFiles->addToSelection( lnk); - } + } @@ -346,3 +346,3 @@ void PlayListWidget::addAllVideoToList() { d->selectedFiles->addToSelection( lnk); - } + } @@ -357,5 +357,5 @@ void PlayListWidget::addAllVideoToList() { } -*/ +*/ tabWidget->setCurrentPage(0); - writeCurrentM3u(); + writeCurrentM3u(); d->selectedFiles->first(); @@ -385,4 +385,4 @@ void PlayListWidget::setDocument( const QString& fileref ) { addToSelection( DocLnk( fileref ) ); - writeCurrentM3u(); - + writeCurrentM3u(); + d->setDocumentUsed = TRUE; @@ -507,3 +507,3 @@ void PlayListWidget::removeSelected() { d->selectedFiles->removeSelected( ); - writeCurrentM3u(); + writeCurrentM3u(); } @@ -533,6 +533,6 @@ void PlayListWidget::addToSelection( QListViewItem *it) { d->selectedFiles->addToSelection( lnk); - - writeCurrentM3u(); + + writeCurrentM3u(); // tabWidget->setCurrentPage(0); - + } @@ -695,3 +695,3 @@ void PlayListWidget::openFile() { } - + delete fileDlg; @@ -701,3 +701,3 @@ void PlayListWidget::openFile() { reads m3u and shows files/urls to playlist widget */ -void PlayListWidget::readm3u( const QString &filename ) { +void PlayListWidget::readm3u( const QString &filename ) { qDebug( "read m3u filename " + filename ); @@ -716,3 +716,3 @@ void PlayListWidget::readm3u( const QString &filename ) { lnk.setFile( s ); //sets file name - + } else { @@ -721,3 +721,3 @@ void PlayListWidget::readm3u( const QString &filename ) { // if(s.right(4) == '.') {//if regular file - if(s.left(1) != "/") { + if(s.left(1) != "/") { // qDebug("set link "+QFileInfo(filename).dirPath()+"/"+s); @@ -748,3 +748,3 @@ void PlayListWidget::readm3u( const QString &filename ) { setCaption(tr("OpiePlayer: ")+ QFileInfo(filename).baseName()); - + } @@ -817,3 +817,3 @@ void PlayListWidget::writeCurrentM3u() { delete m3uList; - + } @@ -852,3 +852,3 @@ void PlayListWidget::writem3u() { delete m3uList; - + delete fileDlg; @@ -863,3 +863,3 @@ void PlayListWidget::writem3u() { config.setGroup( "PlayList" ); - + config.writeEntry("CurrentPlaylist",filename); |