author | llornkcor <llornkcor> | 2002-11-14 04:03:36 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-14 04:03:36 (UTC) |
commit | 736339b62f325652b71615b8c3fbc0b064fcf837 (patch) (unidiff) | |
tree | cd739278da93b0092bcb6d947a8c43390df2aaa6 /noncore/multimedia/opieplayer2/playlistwidget.cpp | |
parent | abf6aa1c155e3d5df3092f4261edb7143656de7e (diff) | |
download | opie-736339b62f325652b71615b8c3fbc0b064fcf837.zip opie-736339b62f325652b71615b8c3fbc0b064fcf837.tar.gz opie-736339b62f325652b71615b8c3fbc0b064fcf837.tar.bz2 |
takeout qDebugs
Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 1138dc2..53cd00e 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -380,25 +380,25 @@ void PlayListWidget::addAllVideoToList() { | |||
380 | if( QFileInfo( dit.current()->file() ).exists() ) { | 380 | if( QFileInfo( dit.current()->file() ).exists() ) { |
381 | d->selectedFiles->addToSelection( **dit ); | 381 | d->selectedFiles->addToSelection( **dit ); |
382 | } | 382 | } |
383 | } | 383 | } |
384 | */ | 384 | */ |
385 | tabWidget->setCurrentPage(0); | 385 | tabWidget->setCurrentPage(0); |
386 | writeCurrentM3u(); | 386 | writeCurrentM3u(); |
387 | d->selectedFiles->first(); | 387 | d->selectedFiles->first(); |
388 | } | 388 | } |
389 | 389 | ||
390 | 390 | ||
391 | void PlayListWidget::setDocument( const QString& fileref ) { | 391 | void PlayListWidget::setDocument( const QString& fileref ) { |
392 | qDebug( "<<<<<<<<set document>>>>>>>>>> "+fileref ); | 392 | // qDebug( "<<<<<<<<set document>>>>>>>>>> "+fileref ); |
393 | fromSetDocument = TRUE; | 393 | fromSetDocument = TRUE; |
394 | if ( fileref.isNull() ) { | 394 | if ( fileref.isNull() ) { |
395 | QMessageBox::warning( this, tr( "Invalid File" ), | 395 | QMessageBox::warning( this, tr( "Invalid File" ), |
396 | tr( "There was a problem in getting the file." ) ); | 396 | tr( "There was a problem in getting the file." ) ); |
397 | return; | 397 | return; |
398 | } | 398 | } |
399 | 399 | ||
400 | clearList(); | 400 | clearList(); |
401 | if( fileref.find( "m3u", 0, TRUE) != -1 ) { //is m3u | 401 | if( fileref.find( "m3u", 0, TRUE) != -1 ) { //is m3u |
402 | readm3u( fileref ); | 402 | readm3u( fileref ); |
403 | } else if( DocLnk( fileref).file().find( "m3u", 0, TRUE) != -1 ) { | 403 | } else if( DocLnk( fileref).file().find( "m3u", 0, TRUE) != -1 ) { |
404 | readm3u( DocLnk( fileref).file() ); | 404 | readm3u( DocLnk( fileref).file() ); |
@@ -950,29 +950,29 @@ void PlayListWidget::readPls( const QString &filename ) { | |||
950 | writes current playlist to current m3u file */ | 950 | writes current playlist to current m3u file */ |
951 | void PlayListWidget::writeCurrentM3u() { | 951 | void PlayListWidget::writeCurrentM3u() { |
952 | qDebug("writing to current m3u"); | 952 | qDebug("writing to current m3u"); |
953 | Config cfg( "OpiePlayer" ); | 953 | Config cfg( "OpiePlayer" ); |
954 | cfg.setGroup("PlayList"); | 954 | cfg.setGroup("PlayList"); |
955 | QString currentPlaylist = cfg.readEntry("CurrentPlaylist","default"); | 955 | QString currentPlaylist = cfg.readEntry("CurrentPlaylist","default"); |
956 | 956 | ||
957 | Om3u *m3uList; | 957 | Om3u *m3uList; |
958 | m3uList = new Om3u( currentPlaylist, IO_ReadWrite | IO_Truncate ); | 958 | m3uList = new Om3u( currentPlaylist, IO_ReadWrite | IO_Truncate ); |
959 | if( d->selectedFiles->first()) { | 959 | if( d->selectedFiles->first()) { |
960 | 960 | ||
961 | do { | 961 | do { |
962 | qDebug( "add writeCurrentM3u " +d->selectedFiles->current()->file()); | 962 | // qDebug( "add writeCurrentM3u " +d->selectedFiles->current()->file()); |
963 | m3uList->add( d->selectedFiles->current()->file() ); | 963 | m3uList->add( d->selectedFiles->current()->file() ); |
964 | } | 964 | } |
965 | while ( d->selectedFiles->next() ); | 965 | while ( d->selectedFiles->next() ); |
966 | qDebug( "<<<<<<<<<<<<>>>>>>>>>>>>>>>>>" ); | 966 | // qDebug( "<<<<<<<<<<<<>>>>>>>>>>>>>>>>>" ); |
967 | m3uList->write(); | 967 | m3uList->write(); |
968 | m3uList->close(); | 968 | m3uList->close(); |
969 | 969 | ||
970 | if(m3uList) delete m3uList; | 970 | if(m3uList) delete m3uList; |
971 | } | 971 | } |
972 | 972 | ||
973 | } | 973 | } |
974 | 974 | ||
975 | /* | 975 | /* |
976 | writes current playlist to m3u file */ | 976 | writes current playlist to m3u file */ |
977 | void PlayListWidget::writem3u() { | 977 | void PlayListWidget::writem3u() { |
978 | InputDialog *fileDlg; | 978 | InputDialog *fileDlg; |