From 657e13760365aad3ab358b237060bf2356fc4a80 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 22 Jun 2018 19:37:31 +0200 Subject: clang-format pass --- src/webengine/urlinterceptor.cpp | 14 +++++++------- src/webengine/webpage.cpp | 2 +- src/webengine/webview.h | 3 ++- src/webengine/widgets/pagemenu.cpp | 4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-) (limited to 'src/webengine') diff --git a/src/webengine/urlinterceptor.cpp b/src/webengine/urlinterceptor.cpp index 5e17e78..815018b 100644 --- a/src/webengine/urlinterceptor.cpp +++ b/src/webengine/urlinterceptor.cpp @@ -75,13 +75,13 @@ QHash parse(const QString &filename) } } -// for(const QString &host : parts.mid(1)) { -// if(!rules.contains(host)) { -// UrlRequestInterceptor::HostRule rule{}; -// rule.isBlocking = redirect == "0.0.0.0"; -// rules.insert(host, rule); -// } -// } + // for(const QString &host : parts.mid(1)) { + // if(!rules.contains(host)) { + // UrlRequestInterceptor::HostRule rule{}; + // rule.isBlocking = redirect == "0.0.0.0"; + // rules.insert(host, rule); + // } + // } } hostfile.close(); diff --git a/src/webengine/webpage.cpp b/src/webengine/webpage.cpp index 7358223..b075fa1 100644 --- a/src/webengine/webpage.cpp +++ b/src/webengine/webpage.cpp @@ -84,7 +84,7 @@ bool WebPage::acceptNavigationRequest(const QUrl &url, NavigationType type, bool auto count = layout->count(); if(count > 1) { - for (int i = 0; i < count; ++i) { + for(int i = 0; i < count; ++i) { auto *item = layout->itemAt(i); if(item == nullptr) continue; diff --git a/src/webengine/webview.h b/src/webengine/webview.h index 4d648d7..0717e27 100644 --- a/src/webengine/webview.h +++ b/src/webengine/webview.h @@ -38,7 +38,8 @@ public: return m_toolsMenu; } - WebProfile *profile() { + WebProfile *profile() + { return m_profile; } void setProfile(WebProfile *profile); diff --git a/src/webengine/widgets/pagemenu.cpp b/src/webengine/widgets/pagemenu.cpp index 21efd3d..efd176b 100644 --- a/src/webengine/widgets/pagemenu.cpp +++ b/src/webengine/widgets/pagemenu.cpp @@ -8,7 +8,7 @@ #include "pagemenu.h" #include "../webview.h" -#include +#include "browser.h" #include #include #include @@ -18,8 +18,8 @@ #include #include #include -#include "browser.h" #include +#include PageMenu::PageMenu(WebView *parent) : QMenu(tr("Page"), parent) -- cgit v1.2.1