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/GameUI.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sigmodr/widgets/GameUI.cpp') diff --git a/sigmodr/widgets/GameUI.cpp b/sigmodr/widgets/GameUI.cpp index d036b897..06c52f79 100644 --- a/sigmodr/widgets/GameUI.cpp +++ b/sigmodr/widgets/GameUI.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include using namespace Sigcore; @@ -74,6 +75,9 @@ void GameUI::initGui() connect(ui_startScript, SIGNAL(valueChanged(Sigcore::Script)), this, SLOT(startScriptChanged(Sigcore::Script))); connect(ui_typechart, SIGNAL(clicked(QModelIndex)), this, SLOT(typechartChanged(QModelIndex))); connect(ui_effectiveness, SIGNAL(valueChanged(Sigcore::Fraction)), this, SLOT(effectivenessChanged(Sigcore::Fraction))); + QVBoxLayout* layout = new QVBoxLayout; + layout->addWidget(formWidget); + setLayout(layout); } void GameUI::refreshGui() -- cgit