From 8c30d0d5f0ab93c44b6957040fd0a2b3b7749faa Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 12 Jan 2017 19:57:00 +0100 Subject: Profile config loading and saving --- src/forms/profiledialog.cpp | 4 ++++ src/forms/profiledialog.ui | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) (limited to 'src/forms') diff --git a/src/forms/profiledialog.cpp b/src/forms/profiledialog.cpp index 14279c4..b485419 100644 --- a/src/forms/profiledialog.cpp +++ b/src/forms/profiledialog.cpp @@ -1,6 +1,8 @@ #include "profiledialog.h" #include "ui_profiledialog.h" +#include + ProfileDialog::ProfileDialog(QWebEngineProfile *profile, QWidget *parent) : QDialog(parent), ui(new Ui::ProfileDialog) @@ -9,6 +11,8 @@ ProfileDialog::ProfileDialog(QWebEngineProfile *profile, QWidget *parent) : ui->setupUi(this); ui->userAgent_lineEdit->setText(_profile->httpUserAgent()); + ui->storagePath_lineEdit->setText(_profile->persistentStoragePath()); + ui->cachePath_lineEdit->setText(_profile->cachePath()); connect(this, SIGNAL(accepted()), this, SLOT(saveProfile())); } diff --git a/src/forms/profiledialog.ui b/src/forms/profiledialog.ui index 160743b..097d9cb 100644 --- a/src/forms/profiledialog.ui +++ b/src/forms/profiledialog.ui @@ -26,6 +26,34 @@ + + + + Storage Path + + + + + + + false + + + + + + + Cache Path + + + + + + + false + + + -- cgit v1.2.1