30 s.beginGroup( QStringLiteral(
"defaults/bearing_format" ) );
31 for (
auto it = config.constBegin(); it != config.constEnd(); ++it )
33 s.setValue( it.key(), it.value() );
42 s.beginGroup( QStringLiteral(
"defaults/bearing_format" ) );
43 const QStringList keys = s.childKeys();
44 for (
const QString &key : keys )
46 const QVariant value = s.value( key );
47 config.insert( key, value );
51 std::unique_ptr< QgsBearingNumericFormat > res = std::make_unique< QgsBearingNumericFormat >();
61 s.beginGroup( QStringLiteral(
"defaults/coordinate_format" ) );
62 for (
auto it = config.constBegin(); it != config.constEnd(); ++it )
64 s.setValue( it.key(), it.value() );
73 s.beginGroup( QStringLiteral(
"defaults/coordinate_format" ) );
74 const QStringList keys = s.childKeys();
75 for (
const QString &key : keys )
77 const QVariant value = s.value( key );
78 config.insert( key, value );
82 std::unique_ptr< QgsGeographicCoordinateNumericFormat > res = std::make_unique< QgsGeographicCoordinateNumericFormat >();
static QgsGeographicCoordinateNumericFormat * geographicCoordinateFormat()
Returns the default geographic coordinate format, which controls how geographic coordinates are displ...
static void setBearingFormat(const QgsBearingNumericFormat *format)
Sets the default bearing format, which controls how angular bearings are displayed.
static void setGeographicCoordinateFormat(const QgsGeographicCoordinateNumericFormat *format)
Sets the default geographic coordinate format, which controls how geographic coordinates are displaye...
static QgsBearingNumericFormat * bearingFormat()
Returns the default bearing format, which controls how angular bearings are displayed.
The class is used as a container of context for various read/write operations on other objects.