summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-27 21:55:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-30 07:43:22 -0700
commit181d2cf364f22c5e673916d884ca5f0742e137ce (patch)
tree3fbf7f47b17e193d29d703daaba2af6d1a11a6ac /desktop-widgets/preferences
parentf4f798f8dd43a4da884845af102e0b97dd8409dd (diff)
downloadsubsurface-181d2cf364f22c5e673916d884ca5f0742e137ce.tar.gz
core: activate qPrefProxy
remove Proxy from SettingsObjectWrapper and reference qPrefProxy update files using SettingsObjectWrapper/Proxy to use qPrefProxy this activated qPrefProxy and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r--desktop-widgets/preferences/preferences_network.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/desktop-widgets/preferences/preferences_network.cpp b/desktop-widgets/preferences/preferences_network.cpp
index ba08cea63..bb72bef19 100644
--- a/desktop-widgets/preferences/preferences_network.cpp
+++ b/desktop-widgets/preferences/preferences_network.cpp
@@ -45,18 +45,18 @@ void PreferencesNetwork::refreshSettings()
void PreferencesNetwork::syncSettings()
{
- auto cloud = SettingsObjectWrapper::instance()->cloud_storage;
- auto proxy = SettingsObjectWrapper::instance()->proxy;
+ auto cloud = qPrefCloudStorage::instance();
+ auto proxy = qPrefProxy::instance();
cloud->set_userid(ui->default_uid->text().toUpper());
cloud->set_save_userid_local(ui->save_uid_local->checkState());
- proxy->setType(ui->proxyType->itemData(ui->proxyType->currentIndex()).toInt());
- proxy->setHost(ui->proxyHost->text());
- proxy->setPort(ui->proxyPort->value());
- proxy->setAuth(ui->proxyAuthRequired->isChecked());
- proxy->setUser(ui->proxyUsername->text());
- proxy->setPass(ui->proxyPassword->text());
+ proxy->set_proxy_type(ui->proxyType->itemData(ui->proxyType->currentIndex()).toInt());
+ proxy->set_proxy_host(ui->proxyHost->text());
+ proxy->set_proxy_port(ui->proxyPort->value());
+ proxy->set_proxy_auth(ui->proxyAuthRequired->isChecked());
+ proxy->set_proxy_user(ui->proxyUsername->text());
+ proxy->set_proxy_pass(ui->proxyPassword->text());
QString email = ui->cloud_storage_email->text();
QString password = ui->cloud_storage_password->text();