diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-04-29 18:05:48 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-04-29 19:55:24 -0700 |
commit | 788fa40c2ae0e9786c070f4593a4e7ff6efc77d3 (patch) | |
tree | 3eb86f6640005a4e4a54d7623518f0f9a8a181bf /launcher/settings/SettingsObject.cpp | |
parent | 0ce30495796627e7591587ca1e977be98178f225 (diff) | |
download | PrismLauncher-788fa40c2ae0e9786c070f4593a4e7ff6efc77d3.tar.gz PrismLauncher-788fa40c2ae0e9786c070f4593a4e7ff6efc77d3.tar.bz2 PrismLauncher-788fa40c2ae0e9786c070f4593a4e7ff6efc77d3.zip |
refactor: Move ini to use QSettings && drop get/setList functions
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/settings/SettingsObject.cpp')
-rw-r--r-- | launcher/settings/SettingsObject.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/launcher/settings/SettingsObject.cpp b/launcher/settings/SettingsObject.cpp index 4c51d6e9..8a0bc045 100644 --- a/launcher/settings/SettingsObject.cpp +++ b/launcher/settings/SettingsObject.cpp @@ -121,19 +121,6 @@ bool SettingsObject::contains(const QString &id) return m_settings.contains(id); } -bool SettingsObject::setList(const QString &id, QVariantList value) -{ - QString stringList = QJsonDocument(QVariant(value).toJsonArray()).toJson(QJsonDocument::Compact); - - return set(id, stringList); -} - -QVariantList SettingsObject::getList(const QString &id) -{ - QVariant value = this->get(id); - return QJsonDocument::fromJson(value.toByteArray()).toVariant().toList(); -} - bool SettingsObject::reload() { for (auto setting : m_settings.values()) |