18 #include <QDoubleSpinBox> 19 #include <QGridLayout> 21 #include <QHBoxLayout> 22 #include <QDialogButtonBox> 23 #include <QPushButton> 26 QString unit,
float min,
float max,
30 QGridLayout *grid =
new QGridLayout;
33 setWindowTitle(title);
35 QLabel *messageLabel =
new QLabel;
36 messageLabel->setText(message);
37 grid->addWidget(messageLabel, 0, 0, 1, 5);
48 grid->addWidget(
new QLabel(tr(
" to ")), 1, 2);
56 connect(
m_rangeEnd, SIGNAL(valueChanged(
double)),
59 QDialogButtonBox *bb =
new QDialogButtonBox(QDialogButtonBox::Ok |
60 QDialogButtonBox::Cancel);
61 grid->addWidget(bb, 2, 0, 1, 5);
62 connect(bb, SIGNAL(accepted()),
this, SLOT(accept()));
63 connect(bb, SIGNAL(rejected()),
this, SLOT(reject()));