From 9b8a6fa8552647c1c1e7b78000e93a1bbc508365 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 14 Aug 2018 10:30:07 +0200 Subject: core: make methods in qPref* static Make methods static to allow fast and esay access use qPrefXYZ::foo() instead of qPrefXYZ::instance()->foo() Signed-off-by: Jan Iversen --- core/settings/qPrefCloudStorage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/settings/qPrefCloudStorage.cpp') diff --git a/core/settings/qPrefCloudStorage.cpp b/core/settings/qPrefCloudStorage.cpp index c3e9c60a7..421893135 100644 --- a/core/settings/qPrefCloudStorage.cpp +++ b/core/settings/qPrefCloudStorage.cpp @@ -40,7 +40,7 @@ void qPrefCloudStorage::set_cloud_base_url(const QString &value) } disk_cloud_base_url(true); - emit cloud_base_url_changed(value); + emit instance()->cloud_base_url_changed(value); } } void qPrefCloudStorage::disk_cloud_base_url(bool doSync) @@ -65,7 +65,7 @@ void qPrefCloudStorage::set_cloud_storage_newpassword(const QString &value) qPrefPrivate::copy_txt(&prefs.cloud_storage_newpassword, value); // NOT saved on disk, because it is only temporary - emit cloud_storage_newpassword_changed(value); + emit instance()->cloud_storage_newpassword_changed(value); } void qPrefCloudStorage::set_cloud_storage_password(const QString &value) @@ -73,7 +73,7 @@ void qPrefCloudStorage::set_cloud_storage_password(const QString &value) if (value != prefs.cloud_storage_password) { qPrefPrivate::copy_txt(&prefs.cloud_storage_password, value); disk_cloud_storage_password(true); - emit cloud_storage_password_changed(value); + emit instance()->cloud_storage_password_changed(value); } } void qPrefCloudStorage::disk_cloud_storage_password(bool doSync) -- cgit v1.2.3-70-g09d2