[vlc-devel] commit: Qt: make the search box take less space. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Dec 4 14:08:32 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Dec 4 14:08:06 2009 +0100| [6b45f1bbd5c3386078ecad1a138a017c3811793e] | committer: Jean-Baptiste Kempf
Qt: make the search box take less space.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b45f1bbd5c3386078ecad1a138a017c3811793e
---
modules/gui/qt4/components/playlist/selector.cpp | 3 ++-
.../gui/qt4/components/playlist/standardpanel.cpp | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index 9a59a9f..17de1f2 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<PLSelItem*>( 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 8023740..1fedbc3 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 );
More information about the vlc-devel
mailing list