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_, SIGNAL(rejected()),
this, SLOT(reject()));
72 return (QSize(500, 100));
77 button_box_->button(QDialogButtonBox::Ok)->setToolTip(error_text);
QSize sizeHint() const override
Preferences * preferences_
PreferencesDialog(Factory *factory, Preferences *preferences_output, QWidget *parent=nullptr)
void setError(const QString &error_text)
Abstract superclass representing the ability to get a list of class IDs and the ability to get name...
QCheckBox * prompt_save_on_exit_checkbox_
QDialogButtonBox * button_box_