summaryrefslogtreecommitdiff
path: root/src/descriptionpage.h
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2018-02-22 16:54:34 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2018-02-22 16:54:34 +0100
commit5e5c9c07291f6b09623d31c92b1fb61c4ede576e (patch)
tree0684c123db375336e0e03f0240155a12e744db16 /src/descriptionpage.h
parent5ad912e1934061b38825801a27f7c12933878005 (diff)
Applied clang-format on source
Diffstat (limited to 'src/descriptionpage.h')
-rw-r--r--src/descriptionpage.h14
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