From 5b1be4982fd41e6107247ecb39fa90d6ed0f7f82 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sun, 24 Aug 2008 19:21:12 -0700 Subject: [PATCH] Resize the advanced properties of open capture with the scrollarea in the right way. Close #1915 --- modules/gui/qt4/components/open_panels.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp index 9d922acf55..5f4dcaba62 100644 --- a/modules/gui/qt4/components/open_panels.cpp +++ b/modules/gui/qt4/components/open_panels.cpp @@ -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 ); -- 2.39.2