-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 0cfd720..0c3ea74 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -182,2 +182,6 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) + QGridLayout *Playout = new QGridLayout( pTab ); + Playout->setSpacing( 2); + Playout->setMargin( 2); + // Add the playlist area @@ -186,3 +190,2 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) d->playListFrame = vbox3; - d->playListFrame ->setMinimumSize(235,250); @@ -201,6 +204,13 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) + + 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->setMinimumSize(233,250); audioView->addColumn( tr("Title"),140); @@ -215,2 +225,4 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) + Alayout->addMultiCellWidget( audioView, 0, 0, 0, 1 ); + tabWidget->insertTab(aTab,tr("Audio")); @@ -221,4 +233,8 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) vTab = new QWidget( tabWidget, "vTab" ); + + QGridLayout *Vlayout = new QGridLayout( vTab ); + Vlayout->setSpacing( 2); + Vlayout->setMargin( 2); + videoView = new QListView( vTab, "Videoview" ); - videoView->setMinimumSize(233,250); @@ -233,2 +249,8 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) +// 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); @@ -240,4 +262,10 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) LTab = new QWidget( tabWidget, "LTab" ); + QGridLayout *Llayout = new QGridLayout( LTab ); + Llayout->setSpacing( 2); + Llayout->setMargin( 2); + playLists = new FileSelector( "playlist/plain", LTab, "fileselector" , FALSE, FALSE); //buggy - playLists->setMinimumSize(233,260); + // playLists->setMinimumSize(233,260); + Llayout->addMultiCellWidget( playLists, 0, 0, 0, 1 ); + tabWidget->insertTab(LTab,tr("Lists")); @@ -678,4 +706,3 @@ void PlayListWidget::removeSelected() { void PlayListWidget::playIt( QListViewItem *it) { - // if(it==NULL) return; - qDebug("playIt"); + if(!it) return; mediaPlayerState->setPlaying(FALSE); |