From 27742143d60e80bc925439e44664cc23c472f433 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 28 May 2017 12:46:11 +0200 Subject: Profiles dialog --- src/webengine/webengineprofile.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/webengine/webengineprofile.cpp') diff --git a/src/webengine/webengineprofile.cpp b/src/webengine/webengineprofile.cpp index 89cc301..2fed937 100644 --- a/src/webengine/webengineprofile.cpp +++ b/src/webengine/webengineprofile.cpp @@ -27,11 +27,13 @@ WebEngineProfile::WebEngineProfile(QObject *parent) : QWebEngineProfile(parent) { // Off-the-record constructor + m_name = tr("Off-the-record"); } WebEngineProfile::WebEngineProfile(const QString &storageName, QObject *parent) : QWebEngineProfile(storageName, parent) { + m_name = storageName; setPersistentStoragePath(sSettings->value("browser.profile.path").toString() + storageName); setCachePath(sSettings->value("browser.profile.path").toString() + storageName); @@ -111,10 +113,15 @@ WebEngineProfile::~WebEngineProfile() } } -ProfileDialog *WebEngineProfile::dialog() +QString WebEngineProfile::name() const +{ + return m_name; +} + +ProfileView *WebEngineProfile::dialog() { if(m_profileDialog == nullptr) { - m_profileDialog = new ProfileDialog(this); + m_profileDialog = new ProfileView(this); } return m_profileDialog; } -- cgit v1.2.1