summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistfileview.cpp10
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidgetgui.cpp20
2 files changed, 10 insertions, 20 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistfileview.cpp b/noncore/multimedia/opieplayer2/playlistfileview.cpp
index bdd38e0..c4f93e7 100644
--- a/noncore/multimedia/opieplayer2/playlistfileview.cpp
+++ b/noncore/multimedia/opieplayer2/playlistfileview.cpp
@@ -4,6 +4,16 @@
PlayListFileView::PlayListFileView( QWidget *parent, const char *name )
: PlayListView( parent, name )
{
+ addColumn( tr( "Title" ), 140);
+ addColumn( tr( "Size" ), -1 );
+ addColumn(tr( "Media" ), 0 );
+ addColumn(tr( "Path" ), -1 );
+ setColumnAlignment( 1, Qt::AlignRight );
+ setColumnAlignment( 2, Qt::AlignRight );
+ setAllColumnsShowFocus( TRUE );
+ setSorting( 3, TRUE );
+ setMultiSelection( TRUE );
+ setSelectionMode( QListView::Extended );
}
PlayListFileView::~PlayListFileView()
diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
index de7b6d5..cfca5e3 100644
--- a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
@@ -151,16 +151,6 @@ PlayListWidgetGui::PlayListWidgetGui( MediaPlayerState &_mediaPlayerState, QWidg
Alayout->setSpacing( 2 );
Alayout->setMargin( 2 );
audioView = new PlayListFileView( aTab, "Audioview" );
- audioView->addColumn( tr( "Title" ), 140 );
- audioView->addColumn( tr( "Size" ), -1 );
- 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( 3, TRUE );
- audioView->setMultiSelection( TRUE );
- audioView->setSelectionMode( QListView::Extended );
Alayout->addMultiCellWidget( audioView, 0, 0, 0, 1 );
tabWidget->insertTab( aTab, tr( "Audio" ) );
@@ -173,16 +163,6 @@ PlayListWidgetGui::PlayListWidgetGui( MediaPlayerState &_mediaPlayerState, QWidg
Vlayout->setSpacing( 2 );
Vlayout->setMargin( 2 );
videoView = new PlayListFileView( vTab, "Videoview" );
- videoView->addColumn( tr( "Title" ), 140);
- videoView->addColumn( tr( "Size" ), -1 );
- 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( 3, TRUE );
- videoView->setMultiSelection( TRUE );
- videoView->setSelectionMode( QListView::Extended );
Vlayout->addMultiCellWidget( videoView, 0, 0, 0, 1 );
QPEApplication::setStylusOperation( videoView->viewport(), QPEApplication::RightOnHold );