[vlc-devel] commit: Qt: playlist. Remove unnecessary includes (Jean-Baptiste Kempf )

git version control git at videolan.org
Sat Dec 12 22:49:38 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Dec 12 18:24:12 2009 +0100| [ddc087747e4e4e32b11e943474fb00d8a5bcd8f9] | committer: Jean-Baptiste Kempf 

Qt: playlist. Remove unnecessary includes

and stretch the search to 1 in the playlist

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ddc087747e4e4e32b11e943474fb00d8a5bcd8f9
---

 .../gui/qt4/components/playlist/standardpanel.cpp  |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 604c703..97b1ad3 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -5,7 +5,7 @@
  * $Id$
  *
  * Authors: Clément Stenac <zorglub at videolan.org>
- *          JB Kempf
+ *          JB Kempf <jb at videolan.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -36,15 +36,13 @@
 #include <vlc_intf_strings.h>
 
 #include <QPushButton>
-#include <QHBoxLayout>
-#include <QVBoxLayout>
 #include <QHeaderView>
 #include <QKeyEvent>
 #include <QModelIndexList>
 #include <QLabel>
-#include <QSpacerItem>
 #include <QMenu>
 #include <QSignalMapper>
+
 #include <assert.h>
 
 #include "sorting.h"
@@ -123,9 +121,11 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
     layout->setColumnStretch( 1, 10 );
 
     SearchLineEdit *search = new SearchLineEdit( this );
-    search->setMaximumWidth( 160 );
+    search->setMaximumWidth( 200 );
     layout->addWidget( search, 0, 4 );
-    CONNECT( search, textChanged( const QString& ), this, search( const QString& ) );
+    CONNECT( search, textChanged( const QString& ),
+             this, search( const QString& ) );
+    layout->setColumnStretch( 4, 1 );
 
     /* Add item to the playlist button */
     addButton = new QPushButton;
@@ -138,7 +138,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
     layout->addWidget( view, 1, 0, 1, -1 );
 
     selectColumnsSigMapper = new QSignalMapper( this );
-    CONNECT( selectColumnsSigMapper, mapped( int ), this, toggleColumnShown( int ) );
+    CONNECT( selectColumnsSigMapper, mapped( int ),
+             this, toggleColumnShown( int ) );
 }
 
 StandardPLPanel::~StandardPLPanel()




More information about the vlc-devel mailing list