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
@@ -219,6 +219,7 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
audioView->setColumnAlignment(1, Qt::AlignRight);
audioView->setColumnAlignment(2, Qt::AlignRight);
audioView->setAllColumnsShowFocus(TRUE);
+ audioView->setSorting(0,TRUE);
audioView->setMultiSelection( TRUE );
audioView->setSelectionMode( QListView::Extended);
@@ -244,13 +245,11 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
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);
@@ -265,7 +264,6 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
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"));
@@ -909,6 +907,7 @@ void PlayListWidget::scanForAudio() {
Global::findDocuments(&files, "audio/*");
audioScan = TRUE;
}
+
void PlayListWidget::scanForVideo() {
qDebug("scan for video");
vFiles.detachChildren();
@@ -1111,7 +1110,7 @@ void PlayListWidget::readm3u(const QString &filename) {
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();
@@ -1122,7 +1121,7 @@ void PlayListWidget::readm3u(const QString &filename) {
lnk.writeLink();
qDebug("add "+name);
d->selectedFiles->addToSelection( lnk);
- }
+ // }
} else { // is url
s.replace(QRegExp("%20")," ");
DocLnk lnk( s );