summaryrefslogtreecommitdiff
path: root/src/descriptionpage.h
diff options
context:
space:
mode:
authorBrian Munro <brian.alexander.munro@gmail.com>2018-02-22 18:02:02 +0200
committerGitHub <noreply@github.com>2018-02-22 18:02:02 +0200
commit28714f0eb800f2170acbf29dddce1582d20d6b8b (patch)
tree0684c123db375336e0e03f0240155a12e744db16 /src/descriptionpage.h
parent0bcd752b2758bdb072b498ccc90905276be065e9 (diff)
parent5e5c9c07291f6b09623d31c92b1fb61c4ede576e (diff)
Merge pull request #236 from SuperSandro2000/new_vfs_library
Update reame.md
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