aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/settings/settingsdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/settings/settingsdialog.cpp b/lib/settings/settingsdialog.cpp
index 18e8dd2..fea9ab9 100644
--- a/lib/settings/settingsdialog.cpp
+++ b/lib/settings/settingsdialog.cpp
@@ -49,11 +49,11 @@ SettingsDialog::~SettingsDialog()
QWidget *widgetForGroup(std::shared_ptr<Configuration> &settings, const std::string &group, QWidget *parent)
{
QWidget *widget = new QWidget(parent);
- QVBoxLayout *layout = new QVBoxLayout(widget);
+ QVBoxLayout *layout = new QVBoxLayout();
widget->setLayout(layout);
// add entry for every key
- QFormLayout *form = new QFormLayout(widget);
+ QFormLayout *form = new QFormLayout();
for(const std::string &key : settings->childrenSettings(group.c_str())) {
QHBoxLayout *hBox = createEntry(QString::fromStdString(settings->value<std::string>((group + '.' + key).c_str()).value()), widget);
form->addRow(parent->tr(key.c_str()), hBox);