Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.cpp | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp index 8b295b0..bffda38 100644 --- a/core/multimedia/opieplayer/playlistwidget.cpp +++ b/core/multimedia/opieplayer/playlistwidget.cpp | |||
@@ -168,4 +168,5 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) | |||
168 | tbDeletePlaylist = new QPushButton( Resource::loadIconSet("trash"),"",bar,"close"); | 168 | tbDeletePlaylist = new QPushButton( Resource::loadIconSet("trash"),"",bar,"close"); |
169 | tbDeletePlaylist->setFlat(TRUE); | 169 | tbDeletePlaylist->setFlat(TRUE); |
170 | |||
170 | tbDeletePlaylist->setFixedSize(20,20); | 171 | tbDeletePlaylist->setFixedSize(20,20); |
171 | 172 | ||
@@ -228,8 +229,13 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) | |||
228 | 229 | ||
229 | // Add the playlist area | 230 | // Add the playlist area |
230 | 231 | ||
231 | QVBox *vbox3 = new QVBox( pTab ); vbox3->setBackgroundMode( PaletteButton ); | 232 | QVBox *vbox3 = new QVBox( pTab ); vbox3->setBackgroundMode( PaletteButton ); |
232 | d->playListFrame = vbox3; | 233 | d->playListFrame = vbox3; |
233 | d->playListFrame ->setMinimumSize(235,260); | 234 | |
235 | QGridLayout *layoutF = new QGridLayout( pTab ); | ||
236 | layoutF->setSpacing( 2); | ||
237 | layoutF->setMargin( 2); | ||
238 | layoutF->addMultiCellWidget( d->playListFrame , 0, 0, 0, 1 ); | ||
239 | // d->playListFrame ->setMinimumSize(235,260); | ||
234 | 240 | ||
235 | QHBox *hbox2 = new QHBox( vbox3 ); hbox2->setBackgroundMode( PaletteButton ); | 241 | QHBox *hbox2 = new QHBox( vbox3 ); hbox2->setBackgroundMode( PaletteButton ); |
@@ -251,5 +257,10 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) | |||
251 | aTab = new QWidget( tabWidget, "aTab" ); | 257 | aTab = new QWidget( tabWidget, "aTab" ); |
252 | audioView = new QListView( aTab, "Audioview" ); | 258 | audioView = new QListView( aTab, "Audioview" ); |
253 | audioView->setMinimumSize(233,260); | 259 | |
260 | QGridLayout *layoutA = new QGridLayout( aTab ); | ||
261 | layoutA->setSpacing( 2); | ||
262 | layoutA->setMargin( 2); | ||
263 | layoutA->addMultiCellWidget( audioView, 0, 0, 0, 1 ); | ||
264 | |||
254 | audioView->addColumn( tr("Title"),140); | 265 | audioView->addColumn( tr("Title"),140); |
255 | audioView->addColumn(tr("Size"), -1); | 266 | audioView->addColumn(tr("Size"), -1); |
@@ -276,5 +287,9 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) | |||
276 | vTab = new QWidget( tabWidget, "vTab" ); | 287 | vTab = new QWidget( tabWidget, "vTab" ); |
277 | videoView = new QListView( vTab, "Videoview" ); | 288 | videoView = new QListView( vTab, "Videoview" ); |
278 | videoView->setMinimumSize(233,260); | 289 | |
290 | QGridLayout *layoutV = new QGridLayout( vTab ); | ||
291 | layoutV->setSpacing( 2); | ||
292 | layoutV->setMargin( 2); | ||
293 | layoutV->addMultiCellWidget( videoView, 0, 0, 0, 1 ); | ||
279 | 294 | ||
280 | videoView->addColumn(tr("Title"),140); | 295 | videoView->addColumn(tr("Title"),140); |
@@ -295,5 +310,11 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) | |||
295 | LTab = new QWidget( tabWidget, "LTab" ); | 310 | LTab = new QWidget( tabWidget, "LTab" ); |
296 | playLists = new FileSelector( "playlist/plain", LTab, "fileselector" , FALSE, FALSE); //buggy | 311 | playLists = new FileSelector( "playlist/plain", LTab, "fileselector" , FALSE, FALSE); //buggy |
297 | playLists->setMinimumSize(233,260); | 312 | |
313 | QGridLayout *layoutL = new QGridLayout( LTab ); | ||
314 | layoutL->setSpacing( 2); | ||
315 | layoutL->setMargin( 2); | ||
316 | layoutL->addMultiCellWidget( playLists, 0, 0, 0, 1 ); | ||
317 | // playLists->setMinimumSize(233,260); | ||
318 | |||
298 | tabWidget->insertTab(LTab,tr("Lists")); | 319 | tabWidget->insertTab(LTab,tr("Lists")); |
299 | 320 | ||
@@ -322,15 +343,11 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) | |||
322 | connect( videoView, SIGNAL( doubleClicked( QListViewItem *) ), this, SLOT( addToSelection( QListViewItem *) ) ); | 343 | connect( videoView, SIGNAL( doubleClicked( QListViewItem *) ), this, SLOT( addToSelection( QListViewItem *) ) ); |
323 | 344 | ||
324 | |||
325 | //playlists | 345 | //playlists |
326 | connect( playLists, SIGNAL( fileSelected( const DocLnk &) ), this, SLOT( loadList( const DocLnk & ) ) ); | 346 | connect( playLists, SIGNAL( fileSelected( const DocLnk &) ), this, SLOT( loadList( const DocLnk & ) ) ); |
327 | 347 | ||
328 | |||
329 | connect( tabWidget, SIGNAL (currentChanged(QWidget*)),this,SLOT(tabChanged(QWidget*))); | 348 | connect( tabWidget, SIGNAL (currentChanged(QWidget*)),this,SLOT(tabChanged(QWidget*))); |
330 | 349 | ||
331 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), d->tbPlay, SLOT( setOn( bool ) ) ); | 350 | connect( mediaPlayerState, SIGNAL( playingToggled( bool ) ), d->tbPlay, SLOT( setOn( bool ) ) ); |
332 | 351 | ||
333 | |||
334 | |||
335 | connect( mediaPlayerState, SIGNAL( loopingToggled( bool ) ), d->tbLoop, SLOT( setOn( bool ) ) ); | 352 | connect( mediaPlayerState, SIGNAL( loopingToggled( bool ) ), d->tbLoop, SLOT( setOn( bool ) ) ); |
336 | connect( mediaPlayerState, SIGNAL( shuffledToggled( bool ) ), d->tbShuffle, SLOT( setOn( bool ) ) ); | 353 | connect( mediaPlayerState, SIGNAL( shuffledToggled( bool ) ), d->tbShuffle, SLOT( setOn( bool ) ) ); |