open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Functions
iASettings.cpp File Reference
#include "iASettings.h"
#include <QSettings>

Functions

void initializeSettingTypes ()
 Initialize Qt meta types / serialization operators required for storing and loading specific setting values.
 
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

◆ initializeSettingTypes()

void initializeSettingTypes ( )

Initialize Qt meta types / serialization operators required for storing and loading specific setting values.

◆ 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.