diff options
Diffstat (limited to 'src/webengine')
-rw-r--r-- | src/webengine/urlinterceptor.cpp | 14 | ||||
-rw-r--r-- | src/webengine/webpage.cpp | 2 | ||||
-rw-r--r-- | src/webengine/webview.h | 3 | ||||
-rw-r--r-- | src/webengine/widgets/pagemenu.cpp | 4 |
4 files changed, 12 insertions, 11 deletions
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<QString, UrlRequestInterceptor::HostRule> 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 <webprofile.h> +#include "browser.h" #include <QFileDialog> #include <QLabel> #include <QPrintDialog> @@ -18,8 +18,8 @@ #include <QToolButton> #include <QVBoxLayout> #include <QWidgetAction> -#include "browser.h" #include <bookmarks/bookmarkswidget.h> +#include <webprofile.h> PageMenu::PageMenu(WebView *parent) : QMenu(tr("Page"), parent) |