diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-08 13:13:24 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-08 13:13:24 +0200 |
commit | ccae7d1520548aaec95f6bd7302dd72c6fbdd6b9 (patch) | |
tree | da6706a388a4318bc309f840ca302b3a998b7572 /plugins/ProfileEditor/forms/profileview.cpp | |
parent | Move ProfileManager to libweb (diff) | |
download | smolbote-ccae7d1520548aaec95f6bd7302dd72c6fbdd6b9.tar.xz |
Replace ProfileManager::profileList() with ProfileManager::idList()
Diffstat (limited to 'plugins/ProfileEditor/forms/profileview.cpp')
-rw-r--r-- | plugins/ProfileEditor/forms/profileview.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/ProfileEditor/forms/profileview.cpp b/plugins/ProfileEditor/forms/profileview.cpp index e265e16..2ffb119 100644 --- a/plugins/ProfileEditor/forms/profileview.cpp +++ b/plugins/ProfileEditor/forms/profileview.cpp @@ -35,6 +35,21 @@ ProfileView::ProfileView(WebProfile *profile, QWidget *parent) ui->name->setText(profile->name()); ui->offTheRecord->setChecked(profile->isOffTheRecord()); + ui->homepage->setText(profile->homepage().toString()); + connect(ui->homepage, &QLineEdit::editingFinished, profile, [=]() { + profile->setHomepage(QUrl::fromUserInput(ui->homepage->text())); + }); + + ui->newtab->setText(profile->newtab().toString()); + connect(ui->newtab, &QLineEdit::editingFinished, profile, [=]() { + profile->setNewtab(QUrl::fromUserInput(ui->newtab->text())); + }); + + ui->search->setText(profile->search()); + connect(ui->search, &QLineEdit::editingFinished, profile, [=]() { + profile->setSearch(ui->search->text()); + }); + // http tab ui->userAgent->setPlainText(m_profile->httpUserAgent()); connect(ui->userAgent, &QPlainTextEdit::textChanged, profile, [=]() { |