32 return QObject::tr(
"Bearing" );
47 switch ( mDirectionFormat )
51 value = fmod( value, 360.0 );
57 if ( res !=
"0"_L1 && res !=
"180"_L1 )
59 res += QChar( 176 ) + ( value < 0 ? QObject::tr(
"W" ) : QObject::tr(
"E" ) );
68 value = fmod( value, 360.0 );
78 value = fmod( value, 360.0 );
94 auto res = std::make_unique< QgsBearingNumericFormat >();
103 res.insert( u
"direction_format"_s,
static_cast< int >( mDirectionFormat ) );
109 return mDirectionFormat;
A context for numeric formats.
A container for the context for various read/write operations on objects.