@@ -142,7 +142,7 @@ void QgsPalLayerSettings::initPropertyDefinitions()
142
142
{ QgsPalLayerSettings::ShapeSizeY, QgsPropertyDefinition ( " ShapeSizeY" , QObject::tr ( " Shape size (Y)" ), QgsPropertyDefinition::Double ) },
143
143
{ QgsPalLayerSettings::ShapeSizeUnits, QgsPropertyDefinition ( " ShapeSizeUnits" , QObject::tr ( " Shape size units" ), QgsPropertyDefinition::RenderUnits ) },
144
144
{ QgsPalLayerSettings::ShapeRotationType, QgsPropertyDefinition ( " ShapeRotationType" , QgsPropertyDefinition::DataTypeString, QObject::tr ( " Shape rotation type" ), QObject::tr ( " string " ) + " [<b>Sync</b>|<b>Offset</b>|<b>Fixed</b>]" ) },
145
- { QgsPalLayerSettings::ShapeRotation, QgsPropertyDefinition ( " ShapeRotation" , QObject::tr ( " Shape rotation" ), QgsPropertyDefinition::Double ) },
145
+ { QgsPalLayerSettings::ShapeRotation, QgsPropertyDefinition ( " ShapeRotation" , QObject::tr ( " Shape rotation" ), QgsPropertyDefinition::Rotation ) },
146
146
{ QgsPalLayerSettings::ShapeOffset, QgsPropertyDefinition ( " ShapeOffset" , QObject::tr ( " Shape offset" ), QgsPropertyDefinition::Offset ) },
147
147
{ QgsPalLayerSettings::ShapeOffsetUnits, QgsPropertyDefinition ( " ShapeOffsetUnits" , QObject::tr ( " Shape offset units" ), QgsPropertyDefinition::RenderUnits ) },
148
148
{ QgsPalLayerSettings::ShapeRadii, QgsPropertyDefinition ( " ShapeRadii" , QObject::tr ( " Shape radii" ), QgsPropertyDefinition::Size2D ) },
@@ -157,7 +157,7 @@ void QgsPalLayerSettings::initPropertyDefinitions()
157
157
{ QgsPalLayerSettings::ShadowDraw, QgsPropertyDefinition ( " ShadowDraw" , QObject::tr ( " Draw shadow" ), QgsPropertyDefinition::Boolean ) },
158
158
{ QgsPalLayerSettings::ShadowUnder, QgsPropertyDefinition ( " ShadowUnder" , QgsPropertyDefinition::DataTypeString, QObject::tr ( " Symbol size" ), QObject::tr ( " string " ) + QStringLiteral ( " [<b>Lowest</b>|<b>Text</b>|<br>"
159
159
" <b>Buffer</b>|<b>Background</b>]" ) ) },
160
- { QgsPalLayerSettings::ShadowOffsetAngle, QgsPropertyDefinition ( " ShadowOffsetAngle" , QObject::tr ( " Shadow offset angle" ), QgsPropertyDefinition::Double ) },
160
+ { QgsPalLayerSettings::ShadowOffsetAngle, QgsPropertyDefinition ( " ShadowOffsetAngle" , QObject::tr ( " Shadow offset angle" ), QgsPropertyDefinition::Rotation ) },
161
161
{ QgsPalLayerSettings::ShadowOffsetDist, QgsPropertyDefinition ( " ShadowOffsetDist" , QObject::tr ( " Shadow offset distance" ), QgsPropertyDefinition::DoublePositive ) },
162
162
{ QgsPalLayerSettings::ShadowOffsetUnits, QgsPropertyDefinition ( " ShadowOffsetUnits" , QObject::tr ( " Shadow offset units" ), QgsPropertyDefinition::RenderUnits ) },
163
163
{ QgsPalLayerSettings::ShadowRadius, QgsPropertyDefinition ( " ShadowRadius" , QObject::tr ( " Shadow blur radius" ), QgsPropertyDefinition::DoublePositive ) },
@@ -175,7 +175,7 @@ void QgsPalLayerSettings::initPropertyDefinitions()
175
175
{ QgsPalLayerSettings::OffsetUnits, QgsPropertyDefinition ( " OffsetUnits" , QObject::tr ( " Offset units" ), QgsPropertyDefinition::RenderUnits ) },
176
176
{ QgsPalLayerSettings::LabelDistance, QgsPropertyDefinition ( " LabelDistance" , QObject::tr ( " Label distance" ), QgsPropertyDefinition::DoublePositive ) },
177
177
{ QgsPalLayerSettings::DistanceUnits, QgsPropertyDefinition ( " DistanceUnits" , QObject::tr ( " Label distance units" ), QgsPropertyDefinition::RenderUnits ) },
178
- { QgsPalLayerSettings::OffsetRotation, QgsPropertyDefinition ( " OffsetRotation" , QObject::tr ( " Offset rotation" ), QgsPropertyDefinition::Double ) },
178
+ { QgsPalLayerSettings::OffsetRotation, QgsPropertyDefinition ( " OffsetRotation" , QObject::tr ( " Offset rotation" ), QgsPropertyDefinition::Rotation ) },
179
179
{ QgsPalLayerSettings::CurvedCharAngleInOut, QgsPropertyDefinition ( " CurvedCharAngleInOut" , QgsPropertyDefinition::DataTypeString, QObject::tr ( " Curved character angles" ), QObject::tr ( " double coord [<b>in,out</b> as 20.0-60.0,20.0-95.0]" ) ) },
180
180
{ QgsPalLayerSettings::RepeatDistance, QgsPropertyDefinition ( " RepeatDistance" , QObject::tr ( " Repeat distance" ), QgsPropertyDefinition::DoublePositive ) },
181
181
{ QgsPalLayerSettings::RepeatDistanceUnit, QgsPropertyDefinition ( " RepeatDistanceUnit" , QObject::tr ( " Repeat distance unit" ), QgsPropertyDefinition::RenderUnits ) },
@@ -193,7 +193,7 @@ void QgsPalLayerSettings::initPropertyDefinitions()
193
193
{ QgsPalLayerSettings::Hali, QgsPropertyDefinition ( " Hali" , QgsPropertyDefinition::DataTypeString, QObject::tr ( " Horizontal alignment" ), QObject::tr ( " string " ) + " [<b>Left</b>|<b>Center</b>|<b>Right</b>]" ) },
194
194
{ QgsPalLayerSettings::Vali, QgsPropertyDefinition ( " Vali" , QgsPropertyDefinition::DataTypeString, QObject::tr ( " Vertical alignment" ), QObject::tr ( " string " ) + QStringLiteral ( " [<b>Bottom</b>|<b>Base</b>|<br>"
195
195
" <b>Half</b>|<b>Cap</b>|<b>Top</b>]" ) ) },
196
- { QgsPalLayerSettings::Rotation, QgsPropertyDefinition ( " Rotation" , QObject::tr ( " Label rotation" ), QgsPropertyDefinition::Double ) },
196
+ { QgsPalLayerSettings::Rotation, QgsPropertyDefinition ( " Rotation" , QObject::tr ( " Label rotation" ), QgsPropertyDefinition::Rotation ) },
197
197
{ QgsPalLayerSettings::ScaleVisibility, QgsPropertyDefinition ( " ScaleVisibility" , QObject::tr ( " Scale based visibility" ), QgsPropertyDefinition::Boolean ) },
198
198
{ QgsPalLayerSettings::MinScale, QgsPropertyDefinition ( " MinScale" , QObject::tr ( " Minimum scale (denominator)" ), QgsPropertyDefinition::Double ) },
199
199
{ QgsPalLayerSettings::MaxScale, QgsPropertyDefinition ( " MaxScale" , QObject::tr ( " Maximum scale (denominator)" ), QgsPropertyDefinition::Double ) },
0 commit comments