aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webengine/webview.cpp')
-rw-r--r--src/webengine/webview.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp
index d145d2b..1e5d8d5 100644
--- a/src/webengine/webview.cpp
+++ b/src/webengine/webview.cpp
@@ -74,10 +74,16 @@ int WebView::loadProgress() const
return m_loadProgress;
}
+void WebView::search(const QString& term)
+{
+ const QString searchUrl = m_profile->search().arg(QString(QUrl::toPercentEncoding(term)));
+ load(searchUrl);
+}
+
WebView *WebView::createWindow(QWebEnginePage::WebWindowType type)
{
if(m_parentWindow == nullptr) {
- qDebug("parent window not found!");
+ qDebug("WebView::createWindow: parent window not found, returning nullptr");
return nullptr;
}
@@ -111,7 +117,7 @@ WebView *WebView::createWindow(QWebEnginePage::WebWindowType type)
void WebView::handleLinkHovered(const QString &url)
{
// TODO: tooltip
- qDebug("%s", qUtf8Printable(url));
+ Q_UNUSED(url);
}
void WebView::triggerViewAction(WebView::ViewAction action)