diff -r e964085e6913 -r 16766ac1bbd9 src/docs.cpp --- a/src/docs.cpp Thu Oct 03 18:07:06 2013 +0300 +++ b/src/docs.cpp Thu Oct 03 20:56:20 2013 +0300 @@ -25,27 +25,27 @@ // ============================================================================= // ----------------------------------------------------------------------------- -class DocumentViewer : public QDialog { -public: - explicit DocumentViewer (QWidget* parent = null, Qt::WindowFlags f = 0) : QDialog (parent, f) { - te_text = new QTextEdit (this); - te_text->setMinimumSize (QSize (400, 300)); - te_text->setReadOnly (true); - - QDialogButtonBox* bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Close); - QVBoxLayout* layout = new QVBoxLayout (this); - layout->addWidget (te_text); - layout->addWidget (bbx_buttons); - - connect (bbx_buttons, SIGNAL (rejected()), this, SLOT (reject())); - } - - void setText (const char* text) { - te_text->setText (text); - } - -private: - QTextEdit* te_text; +class DocumentViewer : public QDialog +{ public: + explicit DocumentViewer (QWidget* parent = null, Qt::WindowFlags f = 0) : QDialog (parent, f) + { te_text = new QTextEdit (this); + te_text->setMinimumSize (QSize (400, 300)); + te_text->setReadOnly (true); + + QDialogButtonBox* bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Close); + QVBoxLayout* layout = new QVBoxLayout (this); + layout->addWidget (te_text); + layout->addWidget (bbx_buttons); + + connect (bbx_buttons, SIGNAL (rejected()), this, SLOT (reject())); + } + + void setText (const char* text) + { te_text->setText (text); + } + + private: + QTextEdit* te_text; }; const char* g_docs_overlays = @@ -65,8 +65,8 @@ // ============================================================================= // ----------------------------------------------------------------------------- -void showDocumentation (const char* text) { - DocumentViewer dlg; +void showDocumentation (const char* text) +{ DocumentViewer dlg; dlg.setText (text); dlg.exec(); -} \ No newline at end of file +}