author | llornkcor <llornkcor> | 2002-11-14 02:30:07 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-14 02:30:07 (UTC) |
commit | 3bfb64a41ca7948b593982fc1c266d5ec829b9ab (patch) (side-by-side diff) | |
tree | cf2641ddb698d7095cd63741caf6564a3a0e6fbb | |
parent | 8cdfc8e0209bbd9190176fdfcbeea2684cb5e8b8 (diff) | |
download | opie-3bfb64a41ca7948b593982fc1c266d5ec829b9ab.zip opie-3bfb64a41ca7948b593982fc1c266d5ec829b9ab.tar.gz opie-3bfb64a41ca7948b593982fc1c266d5ec829b9ab.tar.bz2 |
hide the media column, and unhide the path column and changed default sorting to path column. might get rid of media column altogether.
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidgetgui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp index 5d9fb5d..a217c94 100644 --- a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp @@ -142,60 +142,60 @@ PlayListWidgetGui::PlayListWidgetGui( QWidget* parent, const char* name, WFlags vbox1 = new QVBox( hbox2 ); QPEApplication::setStylusOperation( d->selectedFiles->viewport(), QPEApplication::RightOnHold ); QVBox *stretch1 = new QVBox( vbox1 ); // add stretch Playout->addMultiCellWidget( vbox3, 0, 0, 0, 1 ); QWidget *aTab; aTab = new QWidget( tabWidget, "aTab" ); QGridLayout *Alayout = new QGridLayout( aTab ); Alayout->setSpacing( 2 ); Alayout->setMargin( 2 ); audioView = new QListView( aTab, "Audioview" ); audioView->addColumn( tr( "Title" ), 140 ); audioView->addColumn( tr( "Size" ), -1 ); - audioView->addColumn( tr( "Media" ), -1 ); - audioView->addColumn( tr( "Path" ), 0 ); + audioView->addColumn( tr( "Media" ), 0 ); + audioView->addColumn( tr( "Path" ), -1 ); audioView->setColumnAlignment( 1, Qt::AlignRight ); audioView->setColumnAlignment( 2, Qt::AlignRight ); audioView->setAllColumnsShowFocus( TRUE ); - audioView->setSorting( 0, TRUE ); + audioView->setSorting( 3, TRUE ); audioView->setMultiSelection( TRUE ); audioView->setSelectionMode( QListView::Extended ); Alayout->addMultiCellWidget( audioView, 0, 0, 0, 1 ); tabWidget->insertTab( aTab, tr( "Audio" ) ); QPEApplication::setStylusOperation( audioView->viewport(), QPEApplication::RightOnHold ); QWidget *vTab; vTab = new QWidget( tabWidget, "vTab" ); QGridLayout *Vlayout = new QGridLayout( vTab ); Vlayout->setSpacing( 2 ); Vlayout->setMargin( 2 ); videoView = new QListView( vTab, "Videoview" ); videoView->addColumn( tr( "Title" ), 140); videoView->addColumn( tr( "Size" ), -1 ); - videoView->addColumn(tr( "Media" ), -1 ); - videoView->addColumn(tr( "Path" ), 0 ); + videoView->addColumn(tr( "Media" ), 0 ); + videoView->addColumn(tr( "Path" ), -1 ); videoView->setColumnAlignment( 1, Qt::AlignRight ); videoView->setColumnAlignment( 2, Qt::AlignRight ); videoView->setAllColumnsShowFocus( TRUE ); - videoView->setSorting( 0, TRUE ); + videoView->setSorting( 3, TRUE ); videoView->setMultiSelection( TRUE ); videoView->setSelectionMode( QListView::Extended ); Vlayout->addMultiCellWidget( videoView, 0, 0, 0, 1 ); QPEApplication::setStylusOperation( videoView->viewport(), QPEApplication::RightOnHold ); tabWidget->insertTab( vTab, tr( "Video" ) ); //playlists list QWidget *LTab; LTab = new QWidget( tabWidget, "LTab" ); QGridLayout *Llayout = new QGridLayout( LTab ); Llayout->setSpacing( 2 ); Llayout->setMargin( 2 ); playLists = new FileSelector( "playlist/plain;audio/x-mpegurl", LTab, "fileselector" , FALSE, FALSE ); |