diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
| commit | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (patch) | |
| tree | 0684c123db375336e0e03f0240155a12e744db16 /src/descriptionpage.h | |
| parent | 5ad912e1934061b38825801a27f7c12933878005 (diff) | |
Applied clang-format on source
Diffstat (limited to 'src/descriptionpage.h')
| -rw-r--r-- | src/descriptionpage.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/descriptionpage.h b/src/descriptionpage.h index f6158ee0..3956b7e8 100644 --- a/src/descriptionpage.h +++ b/src/descriptionpage.h @@ -3,17 +3,14 @@ #ifndef DESCRIPTIONPAGE_H #define DESCRIPTIONPAGE_H -class DescriptionPage : public QWebEnginePage -{ +class DescriptionPage : public QWebEnginePage { Q_OBJECT public: - DescriptionPage(QObject* parent = 0) : QWebEnginePage(parent){} + DescriptionPage(QObject* parent = 0) : QWebEnginePage(parent) {} - bool acceptNavigationRequest(const QUrl & url, QWebEnginePage::NavigationType type, bool isMainFrame) - { - if (type == QWebEnginePage::NavigationTypeLinkClicked) - { + bool acceptNavigationRequest(const QUrl& url, QWebEnginePage::NavigationType type, bool isMainFrame) { + if (type == QWebEnginePage::NavigationTypeLinkClicked) { emit linkClicked(url); return false; } @@ -22,7 +19,6 @@ public: signals: void linkClicked(const QUrl&); - }; -#endif //DESCRIPTIONPAGE_H +#endif // DESCRIPTIONPAGE_H |
