diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-04-01 13:19:55 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-04-01 13:19:55 +0200 |
commit | 67d1767533a8bfa87cc0744db469b890177307b7 (patch) | |
tree | ac02a535ff794f8141e4691cddc227c3a2757dd7 /src/webengine | |
parent | Added cookie widget (diff) | |
download | smolbote-67d1767533a8bfa87cc0744db469b890177307b7.tar.xz |
Moved CookiesForm into the ProfileDialog
Diffstat (limited to 'src/webengine')
-rw-r--r-- | src/webengine/webengineprofile.cpp | 10 | ||||
-rw-r--r-- | src/webengine/webengineprofile.h | 6 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/webengine/webengineprofile.cpp b/src/webengine/webengineprofile.cpp index a72f3cf..1ff27dc 100644 --- a/src/webengine/webengineprofile.cpp +++ b/src/webengine/webengineprofile.cpp @@ -28,7 +28,7 @@ WebEngineProfile::WebEngineProfile(QObject *parent) : { // Off-the-record constructor - m_cookiesForm = new CookiesWidget(cookieStore()); + m_profileDialog = new ProfileDialog(this); } WebEngineProfile::WebEngineProfile(const QString &storageName, QObject *parent) : @@ -37,7 +37,7 @@ WebEngineProfile::WebEngineProfile(const QString &storageName, QObject *parent) setPersistentStoragePath(sSettings->value("browser.profile.path").toString() + storageName); setCachePath(sSettings->value("browser.profile.path").toString() + storageName); - m_cookiesForm = new CookiesWidget(cookieStore()); + m_profileDialog = new ProfileDialog(this); QString profilePath = persistentStoragePath() + "/profile.ini"; qDebug("Reading profile from [%s]", qUtf8Printable(profilePath)); @@ -110,13 +110,11 @@ WebEngineProfile::~WebEngineProfile() if(!isOffTheRecord()) { saveProfile(); } - - m_cookiesForm->deleteLater(); } -CookiesWidget *WebEngineProfile::cookieUI() +ProfileDialog *WebEngineProfile::dialog() { - return m_cookiesForm; + return m_profileDialog; } void WebEngineProfile::saveProfile() diff --git a/src/webengine/webengineprofile.h b/src/webengine/webengineprofile.h index c93ae52..421ff0e 100644 --- a/src/webengine/webengineprofile.h +++ b/src/webengine/webengineprofile.h @@ -22,7 +22,7 @@ #define WEBENGINEPROFILE_H #include <QWebEngineProfile> -#include "forms/cookiesform.h" +#include "forms/profiledialog.h" class WebEngineProfile : public QWebEngineProfile { @@ -33,7 +33,7 @@ public: ~WebEngineProfile(); - CookiesWidget *cookieUI(); + ProfileDialog *dialog(); signals: @@ -41,7 +41,7 @@ public slots: void saveProfile(); private: - CookiesWidget *m_cookiesForm; + ProfileDialog *m_profileDialog; }; #endif // WEBENGINEPROFILE_H |