From f47e32c5d0451308d5f0ff99e31397bd8ce53f73 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 2 Jul 2017 14:36:54 +0200 Subject: Added homepage button --- src/webengine/webengineprofile.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/webengine/webengineprofile.cpp') diff --git a/src/webengine/webengineprofile.cpp b/src/webengine/webengineprofile.cpp index ddf62a8..5d00495 100644 --- a/src/webengine/webengineprofile.cpp +++ b/src/webengine/webengineprofile.cpp @@ -28,12 +28,14 @@ WebEngineProfile::WebEngineProfile(QObject *parent) : { // Off-the-record constructor m_name = tr("Off-the-record"); + m_homepage = QUrl("https://duckduckgo.com"); } WebEngineProfile::WebEngineProfile(const QString &name, const QString &path, QObject *parent) : QWebEngineProfile(name, parent) { m_name = name; + m_homepage = QUrl("https://duckduckgo.com"); setPersistentStoragePath(path + name); setCachePath(path + name); @@ -126,6 +128,11 @@ ProfileView *WebEngineProfile::dialog() return m_profileDialog; } +QUrl WebEngineProfile::homepage() const +{ + return m_homepage; +} + void WebEngineProfile::saveProfile() { QSettings config(persistentStoragePath() + "/profile.ini", QSettings::IniFormat); -- cgit v1.2.1