32 #include <QVBoxLayout>
33 #include <QDialogButtonBox>
34 #include <QPushButton>
42 : QDialog(parent), factory_(factory), preferences_(preferences_output)
47 QGroupBox* preferences_box =
new QGroupBox(
"Preferences");
49 QVBoxLayout* preferences_layout =
new QVBoxLayout;
50 preferences_layout->setAlignment(Qt::AlignLeft | Qt::AlignTop);
55 preferences_box->setLayout(preferences_layout);
58 button_box_ =
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal);
60 QVBoxLayout* main_layout =
new QVBoxLayout;
61 main_layout->addWidget(preferences_box);
63 setLayout(main_layout);
67 connect(
button_box_, &QDialogButtonBox::rejected,
this, &PreferencesDialog::reject);
72 return (QSize(500, 100));
77 button_box_->button(QDialogButtonBox::Ok)->setToolTip(error_text);