open_iA 2024.9
Loading...
Searching...
No Matches
iASettings.cpp File Reference
#include "iASettings.h"
#include <QRegularExpression>
#include <QSettings>

Functions

QString configStorageName (QString const &in)
 
QVariantMap loadSettings (QString const &group, QVariantMap const &defaultValues)
 Load settings in the given group from the platform-specific storage.
 
QVariantMap mapFromQSettings (QSettings const &settings)
 Retrieve a map of all values in (the current group of) a given QSettings object.
 
void storeSettings (QString const &group, QVariantMap const &values)
 Save the given setting values to the platform-specific storage.
 

Function Documentation

◆ configStorageName()

QString configStorageName ( QString const & in)

◆ loadSettings()

QVariantMap loadSettings ( QString const & group,
QVariantMap const & defaultValues )

Load settings in the given group from the platform-specific storage.

Parameters
groupname of the group of settings to load from the platform-specific storage (see QSettings)
defaultValuesvalues for keys not present in the platform-specific storage will be initialized from this parameter

◆ mapFromQSettings()

QVariantMap mapFromQSettings ( QSettings const & settings)

Retrieve a map of all values in (the current group of) a given QSettings object.

Parameters
settingsthe QSettings object to load all settings from
Returns
a map containing key->value pairs for all settings currently in (current group of) the given QSettings object

◆ storeSettings()

void storeSettings ( QString const & group,
QVariantMap const & values )

Save the given setting values to the platform-specific storage.