From 1efd63efaf435db81cf5bfd0ca6b0534d8c1c36c Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 14 Jun 2018 18:09:01 +0200 Subject: ProfileEditor: add delete button --- lib/web/webprofile.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/web/webprofile.h') diff --git a/lib/web/webprofile.h b/lib/web/webprofile.h index a421359..7a747a3 100644 --- a/lib/web/webprofile.h +++ b/lib/web/webprofile.h @@ -34,9 +34,9 @@ class WebProfile : public QWebEngineProfile public: // off-the-record constructor - explicit WebProfile(const QString &name, QObject *parent = nullptr); + explicit WebProfile(const QString &name, const QString &configPath, QObject *parent = nullptr); // default constructor - explicit WebProfile(const QString &storageName, const QString &name, QObject *parent = nullptr); + explicit WebProfile(const QString &storageName, const QString &name, const QString &configPath, QObject *parent = nullptr); ~WebProfile() = default; @@ -55,6 +55,10 @@ public: { return m_name; } + QString configurationPath() const + { + return m_configPath; + } // search url QString search() const; @@ -102,6 +106,7 @@ signals: private: static WebProfile *profile; + QString m_configPath; QString m_name; QString m_search = QString("about:blank"); QUrl m_homepage = QUrl("about:blank"); -- cgit v1.2.1