[vlc-commits] qt: avoid location bar overlapping with search widgets

Pierre Lamot git at videolan.org
Fri Dec 8 16:30:47 CET 2017


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Dec  7 16:16:28 2017 +0100| [7ff9d56336c65cd7e808b5730e752bf82c6f50a2] | committer: Jean-Baptiste Kempf

qt: avoid location bar overlapping with search widgets

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt/components/playlist/playlist.cpp | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/components/playlist/playlist.cpp b/modules/gui/qt/components/playlist/playlist.cpp
index 61bdc578c4..d2849a252b 100644
--- a/modules/gui/qt/components/playlist/playlist.cpp
+++ b/modules/gui/qt/components/playlist/playlist.cpp
@@ -96,18 +96,17 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
 
     mainView = new StandardPLPanel( this, p_intf, p_root, selector, model );
 
+    QHBoxLayout *topbarLayout = new QHBoxLayout();
+    topbarLayout->setSpacing( 10 );
+    layout->addLayout( topbarLayout, 0, 0 );
+
     /* Location Bar */
     locationBar = new LocationBar( model );
     locationBar->setSizePolicy( QSizePolicy::Ignored, QSizePolicy::Preferred );
-    layout->addWidget( locationBar, 0, 0, 1, 2 );
-    layout->setColumnStretch( 0, 5 );
+    topbarLayout->addWidget( locationBar );
     CONNECT( locationBar, invoked( const QModelIndex & ),
              mainView, browseInto( const QModelIndex & ) );
 
-    QHBoxLayout *topbarLayout = new QHBoxLayout();
-    layout->addLayout( topbarLayout, 0, 1 );
-    topbarLayout->setSpacing( 10 );
-
     /* Button to switch views */
     QToolButton *viewButton = new QToolButton( this );
     viewButton->setIcon( style()->standardIcon( QStyle::SP_FileDialogDetailedView ) );



More information about the vlc-commits mailing list