]>
git.siccegge.de Git - frida/frida.git/blob - src/gui/dialogs/SimpleStringDialog.cxx
1 #include "SimpleStringDialog.hxx"
3 SimpleStringDialog::SimpleStringDialog(const QString
& title
) {
4 QGridLayout
* layout
= new QGridLayout
;
7 layout
->addWidget(edit
, 0, 0, 1, 2);
9 QPushButton
* cancelButton
= new QPushButton("Cancel");
10 QPushButton
* okButton
= new QPushButton("OK");
11 layout
->addWidget(okButton
, 1, 1, 1, 1);
12 connect(okButton
, SIGNAL(clicked()),
13 this, SLOT(accept()));
14 layout
->addWidget(cancelButton
, 1, 0, 1, 1);
15 connect(cancelButton
, SIGNAL(clicked()),
16 this, SLOT(reject()));
19 setWindowTitle(title
);
22 QString
SimpleStringDialog::result() {
23 QString result
= edit
->text();