summaryrefslogtreecommitdiffstats
path: root/sigmodr/widgets/WeatherUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/widgets/WeatherUI.cpp')
-rw-r--r--sigmodr/widgets/WeatherUI.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sigmodr/widgets/WeatherUI.cpp b/sigmodr/widgets/WeatherUI.cpp
index e06db961..cfc30ce7 100644
--- a/sigmodr/widgets/WeatherUI.cpp
+++ b/sigmodr/widgets/WeatherUI.cpp
@@ -29,6 +29,7 @@
// Qt includes
#include <QtCore/QFile>
+#include <QtGui/QVBoxLayout>
#include <QtUiTools/QUiLoader>
using namespace Sigcore;
@@ -52,6 +53,9 @@ void WeatherUI::initGui()
ui_script = formWidget->findChild<ScriptWidget*>("varScript");
connect(ui_name, SIGNAL(textChanged(QString)), this, SLOT(nameChanged(QString)));
connect(ui_script, SIGNAL(scriptChanged(Sigcore::Script)), this, SLOT(scriptChanged(Sigcore::Script)));
+ QVBoxLayout* layout = new QVBoxLayout;
+ layout->addWidget(formWidget);
+ setLayout(layout);
}
void WeatherUI::setGui()