--- a/src/documentation.cpp Thu Jan 04 19:40:52 2018 +0200 +++ b/src/documentation.cpp Thu Jan 04 19:44:26 2018 +0200 @@ -28,23 +28,23 @@ class DocumentViewer : public QDialog { public: - explicit DocumentViewer (QWidget* parent = nullptr, Qt::WindowFlags f = 0) : QDialog (parent, f) + explicit DocumentViewer(QWidget* parent = nullptr, Qt::WindowFlags f = 0) : QDialog(parent, f) { - te_text = new QTextEdit (this); - te_text->setMinimumSize (QSize (400, 300)); - te_text->setReadOnly (true); + 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); + 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())); + connect(bbx_buttons, SIGNAL(rejected()), this, SLOT(reject())); } - void setText (const char* text) + void setText(const char* text) { - te_text->setText (text); + te_text->setText(text); } private: @@ -68,9 +68,9 @@ // ============================================================================= // ============================================================================= -void showDocumentation (const char* text) +void showDocumentation(const char* text) { DocumentViewer dlg; - dlg.setText (text); + dlg.setText(text); dlg.exec(); }