From 7ae10e6ed72c81032737a58e7dd43b3ba2e14a47 Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Tue, 3 Feb 2026 11:19:24 +0100 Subject: [PATCH] Added GenericCore::getSettings(...) for the UIs (they don't need to use the NetworkHandler directly). --- genericcore.cpp | 4 ++++ genericcore.h | 1 + 2 files changed, 5 insertions(+) diff --git a/genericcore.cpp b/genericcore.cpp index 8a527f2..1d0eaba 100644 --- a/genericcore.cpp +++ b/genericcore.cpp @@ -135,6 +135,10 @@ bool GenericCore::exportCSVFile(const QString& filePath) { return FileHandler::exportToCSVFile(itemsAsStringLists, filePath); } +QVariantMap GenericCore::getSettings(QString group) const { + return SettingsHandler::getSettings(group); +} + void GenericCore::applySettings(QVariantMap settingMap, QString group) { SettingsHandler::saveSettings(settingMap, group); diff --git a/genericcore.h b/genericcore.h index 1c39ef0..4bf30ea 100644 --- a/genericcore.h +++ b/genericcore.h @@ -33,6 +33,7 @@ class GenericCore : public QObject { void importCSVFile(const QString& filePath); bool exportCSVFile(const QString& filePath); + QVariantMap getSettings(QString group = "") const; void applySettings(QVariantMap settingMap, QString group = ""); bool isSyncServerSetup() const;