summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 0c3ea74..874800a 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -218,8 +218,9 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
audioView->addColumn(tr("Media"),-1);
audioView->setColumnAlignment(1, Qt::AlignRight);
audioView->setColumnAlignment(2, Qt::AlignRight);
audioView->setAllColumnsShowFocus(TRUE);
+ audioView->setSorting(0,TRUE);
audioView->setMultiSelection( TRUE );
audioView->setSelectionMode( QListView::Extended);
@@ -243,15 +244,13 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
videoView->addColumn(tr("Media"),-1);
videoView->setColumnAlignment(1, Qt::AlignRight);
videoView->setColumnAlignment(2, Qt::AlignRight);
videoView->setAllColumnsShowFocus(TRUE);
+ videoView->setSorting(0,TRUE);
+
videoView->setMultiSelection( TRUE );
videoView->setSelectionMode( QListView::Extended);
-// d->playListFrame->setMaximumSize(235,240);
-// audioView->setMaximumSize(233,240);
-// videoView->setMaximumSize(233,240);
-
Vlayout->addMultiCellWidget( videoView, 0, 0, 0, 1 );
QPEApplication::setStylusOperation( videoView->viewport(),QPEApplication::RightOnHold);
@@ -264,9 +263,8 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
Llayout->setSpacing( 2);
Llayout->setMargin( 2);
playLists = new FileSelector( "playlist/plain", LTab, "fileselector" , FALSE, FALSE); //buggy
- // playLists->setMinimumSize(233,260);
Llayout->addMultiCellWidget( playLists, 0, 0, 0, 1 );
tabWidget->insertTab(LTab,tr("Lists"));
@@ -908,8 +906,9 @@ void PlayListWidget::scanForAudio() {
}
Global::findDocuments(&files, "audio/*");
audioScan = TRUE;
}
+
void PlayListWidget::scanForVideo() {
qDebug("scan for video");
vFiles.detachChildren();
QListIterator<DocLnk> sdit( vFiles.children() );
@@ -1110,9 +1109,9 @@ void PlayListWidget::readm3u(const QString &filename) {
if(s.find("#",0,TRUE) == -1) {
if(s.find(" ",0,TRUE) == -1) { // not sure if this is neede since cf uses vfat
if(s.left(2) == "E:" || s.left(2) == "P:") {
s=s.right(s.length()-2);
- if(QFile(s).exists()) {
+ // if(QFile(s).exists()) {
DocLnk lnk( s );
QFileInfo f(s);
QString name = f.baseName();
name = name.right( name.length()-name.findRev( "\\",-1,TRUE ) -1 );
@@ -1121,9 +1120,9 @@ void PlayListWidget::readm3u(const QString &filename) {
lnk.setFile( s );
lnk.writeLink();
qDebug("add "+name);
d->selectedFiles->addToSelection( lnk);
- }
+ // }
} else { // is url
s.replace(QRegExp("%20")," ");
DocLnk lnk( s );
QString name;