[vlc-devel] [PATCH 2/2] qt: avoid location bar overlapping with search widgets

Pierre Lamot pierre at videolabs.io
Thu Dec 7 16:16:28 CET 2017


---
 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 ) );
-- 
2.14.1



More information about the vlc-devel mailing list