From 181d2cf364f22c5e673916d884ca5f0742e137ce Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Fri, 27 Jul 2018 21:55:49 +0200 Subject: 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 --- desktop-widgets/preferences/preferences_network.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'desktop-widgets') 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(); -- cgit v1.2.3-70-g09d2