28 #include <QGridLayout>
29 #include <QVBoxLayout>
30 #include <QHBoxLayout>
32 #include <QPushButton>
38 QGridLayout *gridLayout =
new QGridLayout(
this);
39 gridLayout->setSpacing(1);
40 gridLayout->setMargin(1);
42 QHBoxLayout *buttLayout =
new QHBoxLayout();
44 QPushButton *bOk =
new QPushButton(
this);
45 bOk->setText(
"Apply");
46 connect(bOk, SIGNAL( clicked() ),
this, SLOT( accept() ));
47 buttLayout->addWidget(bOk);
49 QPushButton *bCancel =
new QPushButton(
this);
50 bCancel->setText(
"Cancel");
51 connect(bCancel, SIGNAL( clicked() ),
this, SLOT( reject() ));
52 buttLayout->addWidget(bCancel);
56 setSizePolicy(QSizePolicy(QSizePolicy::Expanding,
57 QSizePolicy::Expanding));
60 gridLayout->addLayout(buttLayout, 1, 0, Qt::AlignBottom);
65 QLabel* lbl =
new QLabel(argname);
68 QLineEdit* le =
new QLineEdit();
69 le->setGeometry(10,10, 130, 30);
79 if ((n<0) || (n>=
fArgs.size()))
return QString(
"");
80 return fArgs[n]->text();
void addArg(const char *argname, const char *value, const char *type)
QVector< QLineEdit * > fArgs