33 QDialogButtonBox* bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Close); |
33 QDialogButtonBox* bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Close); |
34 QVBoxLayout* layout = new QVBoxLayout (this); |
34 QVBoxLayout* layout = new QVBoxLayout (this); |
35 layout->addWidget (te_text); |
35 layout->addWidget (te_text); |
36 layout->addWidget (bbx_buttons); |
36 layout->addWidget (bbx_buttons); |
37 |
37 |
38 connect (bbx_buttons, SIGNAL (rejected ()), this, SLOT (reject ())); |
38 connect (bbx_buttons, SIGNAL (rejected()), this, SLOT (reject())); |
39 } |
39 } |
40 |
40 |
41 void setText (const char* text) { |
41 void setText (const char* text) { |
42 te_text->setText (text); |
42 te_text->setText (text); |
43 } |
43 } |