From 5fca5830c53da2d68d9a5ed10eb15d26345c8565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 20 Jul 2020 21:41:46 +0200 Subject: [PATCH] astyle formatting [ci skip] --- gui/helpdialog.cpp | 3 ++- gui/helpdialog.h | 10 ++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gui/helpdialog.cpp b/gui/helpdialog.cpp index 920671834..68b306509 100644 --- a/gui/helpdialog.cpp +++ b/gui/helpdialog.cpp @@ -10,7 +10,8 @@ void HelpBrowser::setHelpEngine(QHelpEngine *helpEngine) mHelpEngine = helpEngine; } -QVariant HelpBrowser::loadResource(int type, const QUrl &name){ +QVariant HelpBrowser::loadResource(int type, const QUrl &name) +{ if (name.scheme() == "qthelp") { QString url(name.toString()); while (url.indexOf("/./") > 0) diff --git a/gui/helpdialog.h b/gui/helpdialog.h index 36e1e7954..e37784437 100644 --- a/gui/helpdialog.h +++ b/gui/helpdialog.h @@ -5,23 +5,21 @@ #include namespace Ui { -class HelpDialog; + class HelpDialog; } class QHelpEngine; -class HelpBrowser : public QTextBrowser -{ +class HelpBrowser : public QTextBrowser { public: HelpBrowser(QWidget* parent = 0) : QTextBrowser(parent), mHelpEngine(nullptr) {} void setHelpEngine(QHelpEngine *helpEngine); - QVariant loadResource (int type, const QUrl& name); + QVariant loadResource(int type, const QUrl& name); private: QHelpEngine* mHelpEngine; }; -class HelpDialog : public QDialog -{ +class HelpDialog : public QDialog { Q_OBJECT public: