From 61fa7fa904e5a28bafa8e2565e362e98fe3efa58 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 26 Feb 2009 01:30:39 -0500 Subject: Added layouts to all widgets so that the forms expand --- sigmodr/widgets/RulesUI.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sigmodr/widgets/RulesUI.cpp') diff --git a/sigmodr/widgets/RulesUI.cpp b/sigmodr/widgets/RulesUI.cpp index 0cb94bab..0c2dcd3c 100644 --- a/sigmodr/widgets/RulesUI.cpp +++ b/sigmodr/widgets/RulesUI.cpp @@ -27,6 +27,7 @@ // Qt includes #include #include +#include #include using namespace Sigmod; @@ -90,6 +91,9 @@ void RulesUI::initGui() connect(ui_maxStages, SIGNAL(valueChanged(int)), this, SLOT(maxStagesChanged(int))); connect(ui_maxMoney, SIGNAL(valueChanged(int)), this, SLOT(maxMoneyChanged(int))); connect(ui_maxTotalWeight, SIGNAL(valueChanged(int)), this, SLOT(maxTotalWeightChanged(int))); + QVBoxLayout* layout = new QVBoxLayout; + layout->addWidget(formWidget); + setLayout(layout); } void RulesUI::setGui() -- cgit