25 #define FONT_WORKAROUND_SCALE 10 //scale factor for upscaling fontsize and downscaling painter
28 #define M_DEG2RAD 0.0174532925
33 , mComposition( composition )
77 if ( itemElem.isNull() )
97 QMap< QgsComposerObject::DataDefinedProperty, QgsDataDefined* >::const_iterator it = mDataDefinedProperties.find( property );
98 if ( it != mDataDefinedProperties.constEnd() )
115 bool defaultVals = ( !active && !useExpression && expression.isEmpty() && field.isEmpty() );
117 if ( mDataDefinedProperties.contains( property ) )
119 QMap< QgsComposerObject::DataDefinedProperty, QgsDataDefined* >::const_iterator it = mDataDefinedProperties.find( property );
120 if ( it != mDataDefinedProperties.constEnd() )
129 else if ( !defaultVals )
132 mDataDefinedProperties.insert( property, dd );
143 Q_UNUSED( property );
154 return mComposition->dataDefinedEvaluate( property, expressionValue, &mDataDefinedProperties );
157 void QgsComposerObject::prepareDataDefinedExpressions()
const
164 if ( atlas && atlas->
enabled() )
171 QMap< DataDefinedProperty, QgsDataDefined* >::const_iterator it = mDataDefinedProperties.constBegin();
172 if ( it != mDataDefinedProperties.constEnd() )
174 it.value()->prepareExpression( atlasLayer );