author | llornkcor <llornkcor> | 2002-08-17 14:35:43 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-08-17 14:35:43 (UTC) |
commit | d9311a2086108b6880bcb17d7317c629068d5e6c (patch) (side-by-side diff) | |
tree | b8ce0876c6842efaa09b070c9db5297d3e3737f4 | |
parent | 313a4f44a645a0b58855ac18cdbf7642fe93a753 (diff) | |
download | opie-d9311a2086108b6880bcb17d7317c629068d5e6c.zip opie-d9311a2086108b6880bcb17d7317c629068d5e6c.tar.gz opie-d9311a2086108b6880bcb17d7317c629068d5e6c.tar.bz2 |
changed to better layout
-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 @@ -181,9 +181,12 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) + QGridLayout *Playout = new QGridLayout( pTab ); + Playout->setSpacing( 2); + Playout->setMargin( 2); + // Add the playlist area QVBox *vbox3 = new QVBox( pTab ); vbox3->setBackgroundMode( PaletteButton ); d->playListFrame = vbox3; - d->playListFrame ->setMinimumSize(235,250); QHBox *hbox2 = new QHBox( vbox3 ); hbox2->setBackgroundMode( PaletteButton ); @@ -200,8 +203,15 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) QVBox *stretch2 = new QVBox( vbox1 ); stretch2->setBackgroundMode( PaletteButton ); // 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->setMinimumSize(233,250); audioView->addColumn( tr("Title"),140); audioView->addColumn(tr("Size"), -1); @@ -214,4 +224,6 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) audioView->setSelectionMode( QListView::Extended); + Alayout->addMultiCellWidget( audioView, 0, 0, 0, 1 ); + tabWidget->insertTab(aTab,tr("Audio")); @@ -220,6 +232,10 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) QWidget *vTab; 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); videoView->addColumn(tr("Title"),140); @@ -232,4 +248,10 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) 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); @@ -239,6 +261,12 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) QWidget *LTab; 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")); @@ -677,6 +705,5 @@ void PlayListWidget::removeSelected() { void PlayListWidget::playIt( QListViewItem *it) { - // if(it==NULL) return; - qDebug("playIt"); + if(!it) return; mediaPlayerState->setPlaying(FALSE); mediaPlayerState->setPlaying(TRUE); |