From: Jean-Baptiste Kempf Date: Fri, 4 Dec 2009 13:08:06 +0000 (+0100) Subject: Qt: make the search box take less space. X-Git-Tag: 1.1.0-ff~2231 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6b45f1bbd5c3386078ecad1a138a017c3811793e;p=vlc Qt: make the search box take less space. --- diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp index 9a59a9fd55..17de1f2fa7 100644 --- a/modules/gui/qt4/components/playlist/selector.cpp +++ b/modules/gui/qt4/components/playlist/selector.cpp @@ -463,4 +463,5 @@ void PLSelector::podcastRemove( PLSelItem* item ) PLSelItem * PLSelector::itemWidget( QTreeWidgetItem *item ) { return ( static_cast( QTreeWidget::itemWidget( item, 0 ) ) ); -} \ No newline at end of file +} + diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index 8023740480..1fedbc3a9c 100644 --- a/modules/gui/qt4/components/playlist/standardpanel.cpp +++ b/modules/gui/qt4/components/playlist/standardpanel.cpp @@ -119,9 +119,10 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, layout->addWidget( title, 0, 0 ); /* A Spacer and the search possibilities */ - layout->setRowStretch( 1, 10 ); + layout->setColumnStretch( 1, 10 ); SearchLineEdit *search = new SearchLineEdit( this ); + search->setMaximumWidth( 160 ); layout->addWidget( search, 0, 4 ); CONNECT( search, textChanged( const QString& ), this, search( const QString& ) ); @@ -130,7 +131,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, addButton->setIcon( QIcon( ":/buttons/playlist/playlist_add" ) ); addButton->setMaximumWidth( 30 ); BUTTONACT( addButton, popupAdd() ); - layout->addWidget( addButton, 0, 2 ); + layout->addWidget( addButton, 0, 3 ); /* Finish the layout */ layout->addWidget( view, 1, 0, 1, -1 );