Commit 6b45f1bb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: make the search box take less space.

parent 7bdd5b8a
...@@ -464,3 +464,4 @@ PLSelItem * PLSelector::itemWidget( QTreeWidgetItem *item ) ...@@ -464,3 +464,4 @@ PLSelItem * PLSelector::itemWidget( QTreeWidgetItem *item )
{ {
return ( static_cast<PLSelItem*>( QTreeWidget::itemWidget( item, 0 ) ) ); return ( static_cast<PLSelItem*>( QTreeWidget::itemWidget( item, 0 ) ) );
} }
...@@ -119,9 +119,10 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -119,9 +119,10 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
layout->addWidget( title, 0, 0 ); layout->addWidget( title, 0, 0 );
/* A Spacer and the search possibilities */ /* A Spacer and the search possibilities */
layout->setRowStretch( 1, 10 ); layout->setColumnStretch( 1, 10 );
SearchLineEdit *search = new SearchLineEdit( this ); SearchLineEdit *search = new SearchLineEdit( this );
search->setMaximumWidth( 160 );
layout->addWidget( search, 0, 4 ); layout->addWidget( search, 0, 4 );
CONNECT( search, textChanged( const QString& ), this, search( const QString& ) ); CONNECT( search, textChanged( const QString& ), this, search( const QString& ) );
...@@ -130,7 +131,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -130,7 +131,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
addButton->setIcon( QIcon( ":/buttons/playlist/playlist_add" ) ); addButton->setIcon( QIcon( ":/buttons/playlist/playlist_add" ) );
addButton->setMaximumWidth( 30 ); addButton->setMaximumWidth( 30 );
BUTTONACT( addButton, popupAdd() ); BUTTONACT( addButton, popupAdd() );
layout->addWidget( addButton, 0, 2 ); layout->addWidget( addButton, 0, 3 );
/* Finish the layout */ /* Finish the layout */
layout->addWidget( view, 1, 0, 1, -1 ); layout->addWidget( view, 1, 0, 1, -1 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment