diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-13 13:43:41 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-13 13:43:41 +0100 |
commit | 7078da9ea8feef6fc89151e9359e9e9ae3bb5724 (patch) | |
tree | 1780dc70b661ae3e3681b738e2c5e7b225d26c98 /lib | |
parent | Autogenerating settings dialog (diff) | |
download | smolbote-7078da9ea8feef6fc89151e9359e9e9ae3bb5724.tar.xz |
Updated documentation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/settings/settingsdialog.cpp | 4 |
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); |