src/docs.cpp

changeset 421
7d26db0be944
parent 381
241f65769a57
child 455
c5d14d112034
equal deleted inserted replaced
420:8d6af951b611 421:7d26db0be944
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 }
62 "overlay image should then be ready for use."; 62 "overlay image should then be ready for use.";
63 63
64 void showDocumentation (const char* text) { 64 void showDocumentation (const char* text) {
65 DocumentViewer dlg; 65 DocumentViewer dlg;
66 dlg.setText (text); 66 dlg.setText (text);
67 dlg.exec (); 67 dlg.exec();
68 } 68 }

mercurial