diff options
Diffstat (limited to 'src/webengine')
-rw-r--r-- | src/webengine/webprofile.h | 3 | ||||
-rw-r--r-- | src/webengine/webview.cpp | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/webengine/webprofile.h b/src/webengine/webprofile.h index 1668067..0b3ce7f 100644 --- a/src/webengine/webprofile.h +++ b/src/webengine/webprofile.h @@ -34,7 +34,8 @@ public: } QString name() const; - QString search() const { + QString search() const + { return m_search; } QUrl homepage() const; diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp index dadac1e..3c4e19e 100644 --- a/src/webengine/webview.cpp +++ b/src/webengine/webview.cpp @@ -7,6 +7,7 @@ */ #include "webview.h" +#include "mainwindow/window.h" #include "webpage.h" #include "webprofile.h" #include "widgets/pagemenu.h" @@ -14,7 +15,6 @@ #include <QDialog> #include <QStatusBar> #include <QVBoxLayout> -#include "mainwindow/window.h" WebView::WebView(WebProfile *profile, QWidget *parent) : QWebEngineView(parent) @@ -73,7 +73,7 @@ int WebView::loadProgress() const return m_loadProgress; } -void WebView::search(const QString& term) +void WebView::search(const QString &term) { const QString searchUrl = m_profile->search().arg(QString(QUrl::toPercentEncoding(term))); load(searchUrl); |