]> git.sesse.net Git - vlc/commitdiff
Qt: make the search box take less space.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 4 Dec 2009 13:08:06 +0000 (14:08 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 4 Dec 2009 13:08:29 +0000 (14:08 +0100)
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp

index 9a59a9fd55ffc10af5785faa5d6128677c0d7a22..17de1f2fa70d678102f498820370562249a8016b 100644 (file)
@@ -463,4 +463,5 @@ void PLSelector::podcastRemove( PLSelItem* item )
 PLSelItem * PLSelector::itemWidget( QTreeWidgetItem *item )
 {
     return ( static_cast<PLSelItem*>( QTreeWidget::itemWidget( item, 0 ) ) );
-}
\ No newline at end of file
+}
+
index 8023740480e4b84acc1c5acdb85fdae89fa3af68..1fedbc3a9c9969ce83f7c92c6a95d3d852d8b232 100644 (file)
@@ -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 );