X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fcoreconfigwizard.cpp;h=8225fe47f36e29910f98515ed86dd57a6316f102;hp=471837bfde491d835027877ed13a3ec6e6a40038;hb=b40672ab5c48b577b31371c159e60d330fdd7ce5;hpb=f18d6c40cd704e26734a77b371ae2c4a284bee38 diff --git a/src/qtui/coreconfigwizard.cpp b/src/qtui/coreconfigwizard.cpp index 471837bf..8225fe47 100644 --- a/src/qtui/coreconfigwizard.cpp +++ b/src/qtui/coreconfigwizard.cpp @@ -54,10 +54,11 @@ QGroupBox *createFieldBox(const QString &title, const std::vector &fi // provide specialized config widgets for those (which may be a good idea anyway, e.g. if we // think about client-side translations...) - QGroupBox *fieldBox = new QGroupBox; + auto *fieldBox = new QGroupBox; fieldBox->setTitle(title); + auto *formLayout = new QFormLayout; + fieldBox->setLayout(formLayout); - QFormLayout *formLayout = new QFormLayout(fieldBox); for (auto &&fieldInfo : fieldInfos) { QWidget *widget {nullptr}; switch (std::get<2>(fieldInfo).type()) {