author | llornkcor <llornkcor> | 2002-08-17 15:05:08 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-08-17 15:05:08 (UTC) |
commit | 5f271187a72b18339310f12a2c753e9b8548c078 (patch) (unidiff) | |
tree | 147455c2af3f85358f67a7a6b9cc15587b3dadab | |
parent | d9311a2086108b6880bcb17d7317c629068d5e6c (diff) | |
download | opie-5f271187a72b18339310f12a2c753e9b8548c078.zip opie-5f271187a72b18339310f12a2c753e9b8548c078.tar.gz opie-5f271187a72b18339310f12a2c753e9b8548c078.tar.bz2 |
set sorting on audio/video tabs
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 13 |
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 ) | |||
219 | audioView->setColumnAlignment(1, Qt::AlignRight); | 219 | audioView->setColumnAlignment(1, Qt::AlignRight); |
220 | audioView->setColumnAlignment(2, Qt::AlignRight); | 220 | audioView->setColumnAlignment(2, Qt::AlignRight); |
221 | audioView->setAllColumnsShowFocus(TRUE); | 221 | audioView->setAllColumnsShowFocus(TRUE); |
222 | audioView->setSorting(0,TRUE); | ||
222 | 223 | ||
223 | audioView->setMultiSelection( TRUE ); | 224 | audioView->setMultiSelection( TRUE ); |
224 | audioView->setSelectionMode( QListView::Extended); | 225 | audioView->setSelectionMode( QListView::Extended); |
@@ -244,13 +245,11 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) | |||
244 | videoView->setColumnAlignment(1, Qt::AlignRight); | 245 | videoView->setColumnAlignment(1, Qt::AlignRight); |
245 | videoView->setColumnAlignment(2, Qt::AlignRight); | 246 | videoView->setColumnAlignment(2, Qt::AlignRight); |
246 | videoView->setAllColumnsShowFocus(TRUE); | 247 | videoView->setAllColumnsShowFocus(TRUE); |
248 | videoView->setSorting(0,TRUE); | ||
249 | |||
247 | videoView->setMultiSelection( TRUE ); | 250 | videoView->setMultiSelection( TRUE ); |
248 | videoView->setSelectionMode( QListView::Extended); | 251 | videoView->setSelectionMode( QListView::Extended); |
249 | 252 | ||
250 | // d->playListFrame->setMaximumSize(235,240); | ||
251 | // audioView->setMaximumSize(233,240); | ||
252 | // videoView->setMaximumSize(233,240); | ||
253 | |||
254 | Vlayout->addMultiCellWidget( videoView, 0, 0, 0, 1 ); | 253 | Vlayout->addMultiCellWidget( videoView, 0, 0, 0, 1 ); |
255 | 254 | ||
256 | QPEApplication::setStylusOperation( videoView->viewport(),QPEApplication::RightOnHold); | 255 | QPEApplication::setStylusOperation( videoView->viewport(),QPEApplication::RightOnHold); |
@@ -265,7 +264,6 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) | |||
265 | Llayout->setMargin( 2); | 264 | Llayout->setMargin( 2); |
266 | 265 | ||
267 | playLists = new FileSelector( "playlist/plain", LTab, "fileselector" , FALSE, FALSE); //buggy | 266 | playLists = new FileSelector( "playlist/plain", LTab, "fileselector" , FALSE, FALSE); //buggy |
268 | // playLists->setMinimumSize(233,260); | ||
269 | Llayout->addMultiCellWidget( playLists, 0, 0, 0, 1 ); | 267 | Llayout->addMultiCellWidget( playLists, 0, 0, 0, 1 ); |
270 | 268 | ||
271 | tabWidget->insertTab(LTab,tr("Lists")); | 269 | tabWidget->insertTab(LTab,tr("Lists")); |
@@ -909,6 +907,7 @@ void PlayListWidget::scanForAudio() { | |||
909 | Global::findDocuments(&files, "audio/*"); | 907 | Global::findDocuments(&files, "audio/*"); |
910 | audioScan = TRUE; | 908 | audioScan = TRUE; |
911 | } | 909 | } |
910 | |||
912 | void PlayListWidget::scanForVideo() { | 911 | void PlayListWidget::scanForVideo() { |
913 | qDebug("scan for video"); | 912 | qDebug("scan for video"); |
914 | vFiles.detachChildren(); | 913 | vFiles.detachChildren(); |
@@ -1111,7 +1110,7 @@ void PlayListWidget::readm3u(const QString &filename) { | |||
1111 | if(s.find(" ",0,TRUE) == -1) { // not sure if this is neede since cf uses vfat | 1110 | if(s.find(" ",0,TRUE) == -1) { // not sure if this is neede since cf uses vfat |
1112 | if(s.left(2) == "E:" || s.left(2) == "P:") { | 1111 | if(s.left(2) == "E:" || s.left(2) == "P:") { |
1113 | s=s.right(s.length()-2); | 1112 | s=s.right(s.length()-2); |
1114 | if(QFile(s).exists()) { | 1113 | // if(QFile(s).exists()) { |
1115 | DocLnk lnk( s ); | 1114 | DocLnk lnk( s ); |
1116 | QFileInfo f(s); | 1115 | QFileInfo f(s); |
1117 | QString name = f.baseName(); | 1116 | QString name = f.baseName(); |
@@ -1122,7 +1121,7 @@ void PlayListWidget::readm3u(const QString &filename) { | |||
1122 | lnk.writeLink(); | 1121 | lnk.writeLink(); |
1123 | qDebug("add "+name); | 1122 | qDebug("add "+name); |
1124 | d->selectedFiles->addToSelection( lnk); | 1123 | d->selectedFiles->addToSelection( lnk); |
1125 | } | 1124 | // } |
1126 | } else { // is url | 1125 | } else { // is url |
1127 | s.replace(QRegExp("%20")," "); | 1126 | s.replace(QRegExp("%20")," "); |
1128 | DocLnk lnk( s ); | 1127 | DocLnk lnk( s ); |