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/forms/profiledialog.cpp | |
parent | Added cookie widget (diff) | |
download | smolbote-67d1767533a8bfa87cc0744db469b890177307b7.tar.xz |
Moved CookiesForm into the ProfileDialog
Diffstat (limited to 'src/forms/profiledialog.cpp')
-rw-r--r-- | src/forms/profiledialog.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/forms/profiledialog.cpp b/src/forms/profiledialog.cpp index 057dc7d..047f51b 100644 --- a/src/forms/profiledialog.cpp +++ b/src/forms/profiledialog.cpp @@ -25,8 +25,10 @@ #include <QPlainTextEdit> #include <QComboBox> #include <QPushButton> +#include "webengine/webengineprofile.h" +#include "forms/cookiesform.h" -ProfileDialog::ProfileDialog(QWebEngineProfile *profile, QWidget *parent) : +ProfileDialog::ProfileDialog(WebEngineProfile *profile, QWidget *parent) : QDialog(parent), ui(new Ui::ProfileDialog) { @@ -39,6 +41,9 @@ ProfileDialog::ProfileDialog(QWebEngineProfile *profile, QWidget *parent) : setWindowTitle(tr("Off-the-record")); } + m_cookiesForm = new CookiesForm(_profile->cookieStore(), this); + ui->tabWidget->addTab(m_cookiesForm, m_cookiesForm->windowTitle()); + // http ui->userAgent->setPlainText(_profile->httpUserAgent()); ui->acceptLanguage->setPlainText(_profile->httpAcceptLanguage()); @@ -68,6 +73,18 @@ ProfileDialog::~ProfileDialog() delete ui; } +void ProfileDialog::showProfile() +{ + ui->tabWidget->setCurrentIndex(0); + show(); +} + +void ProfileDialog::showCookies() +{ + ui->tabWidget->setCurrentIndex(4); + show(); +} + void ProfileDialog::updateProfile() { qDebug("Updating profile..."); |