]> git.sesse.net Git - vlc/commitdiff
Resize the advanced properties of open capture with the scrollarea in the right way.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Aug 2008 02:21:12 +0000 (19:21 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Aug 2008 02:21:12 +0000 (19:21 -0700)
Close #1915

modules/gui/qt4/components/open_panels.cpp

index 9d922acf5508a28a2dec9567eb155424f13cf843..5f4dcaba62909be495e25917ad4b7c96d33ff216 100644 (file)
@@ -1119,15 +1119,13 @@ void CaptureOpenPanel::advancedDialog()
 
     /* A main Layout with a Frame */
     QVBoxLayout *mainLayout = new QVBoxLayout( adv );
-    QFrame *advFrame = new QFrame;
     QScrollArea *scroll = new QScrollArea;
     mainLayout->addWidget( scroll );
 
+    QFrame *advFrame = new QFrame;
     /* GridLayout inside the Frame */
     QGridLayout *gLayout = new QGridLayout( advFrame );
-    gLayout->setSizeConstraint( QLayout::SetFixedSize );
 
-    scroll->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
     scroll->setWidgetResizable( true );
     scroll->setWidget( advFrame );