45 #include <QPushButton> 46 #include <QVBoxLayout> 47 #include <QScrollArea> 50 #include "../parser/input.hh" 52 #include "dynamicDialog.hh" 53 #include "dynamicValue.hh" 68 QVBoxLayout *configL =
new QVBoxLayout;
70 foreach (
Input *i, _inputs)
80 configL->addWidget (v->group_);
85 configL->addStretch(1);
87 QPushButton *ok =
new QPushButton (
"OK");
89 connect (ok, SIGNAL (pressed ()),
this, SLOT (accept ()));
91 QHBoxLayout *buttonL =
new QHBoxLayout;
92 buttonL->addStretch();
93 buttonL->addWidget (ok);
95 QVBoxLayout *vL =
new QVBoxLayout;
97 QWidget *sW =
new QWidget;
98 sW->setLayout (configL);
99 QScrollArea *sA =
new QScrollArea;
101 sA->setWidgetResizable (
true);
104 vL->addLayout (buttonL);
114 DynamicDialog::~ DynamicDialog()
126 QMap<QString, QString> rv;
DynamicDialog(QVector< Input *> _inputs, QWidget *_parent=0)
Constructor.
const QString & name() const
Name.
QMap< QString, QString > getResults()
Results.