29   : mUseContinuousLegend( other.mUseContinuousLegend )
 
   30   , mMinimumLabel( other.mMinimumLabel )
 
   31   , mMaximumLabel( other.mMaximumLabel )
 
   32   , mPrefix( other.mPrefix )
 
   33   , mSuffix( other.mSuffix )
 
   34   , mDirection( other.mDirection )
 
   35   , mNumericFormat( other.numericFormat()->clone() )
 
   36   , mTextFormat( other.textFormat() )
 
   37   , mOrientation( other.mOrientation )
 
   44   mUseContinuousLegend = other.mUseContinuousLegend;
 
   45   mMinimumLabel = other.mMinimumLabel;
 
   46   mMaximumLabel = other.mMaximumLabel;
 
   47   mPrefix = other.mPrefix;
 
   48   mSuffix = other.mSuffix;
 
   49   mDirection = other.mDirection;
 
   51   mTextFormat = other.mTextFormat;
 
   52   mOrientation = other.mOrientation;
 
   75   mMinimumLabel = label;
 
   85   mMaximumLabel = label;
 
   90   return mNumericFormat.get();
 
   95   mNumericFormat.reset( format );
 
  100   QDomElement settingsElement = doc.createElement( QStringLiteral( 
"rampLegendSettings" ) );
 
  102   settingsElement.setAttribute( QStringLiteral( 
"useContinuousLegend" ),  mUseContinuousLegend );
 
  103   settingsElement.setAttribute( QStringLiteral( 
"minimumLabel" ), mMinimumLabel );
 
  104   settingsElement.setAttribute( QStringLiteral( 
"maximumLabel" ), mMaximumLabel );
 
  105   settingsElement.setAttribute( QStringLiteral( 
"prefix" ), mPrefix );
 
  106   settingsElement.setAttribute( QStringLiteral( 
"suffix" ), mSuffix );
 
  107   settingsElement.setAttribute( QStringLiteral( 
"direction" ), 
static_cast< int >( mDirection ) );
 
  108   settingsElement.setAttribute( QStringLiteral( 
"orientation" ), 
static_cast< int >( mOrientation ) );
 
  110   QDomElement numericFormatElem = doc.createElement( QStringLiteral( 
"numericFormat" ) );
 
  111   mNumericFormat->writeXml( numericFormatElem, doc, context );
 
  112   settingsElement.appendChild( numericFormatElem );
 
  116     settingsElement.appendChild( mTextFormat.
writeXml( doc, context ) );
 
  119   element.appendChild( settingsElement );
 
  124   const QDomElement settingsElement = element.firstChildElement( QStringLiteral( 
"rampLegendSettings" ) );
 
  125   if ( !settingsElement.isNull() )
 
  127     mUseContinuousLegend = settingsElement.attribute( QStringLiteral( 
"useContinuousLegend" ), QStringLiteral( 
"1" ) ).toInt( );
 
  128     mMinimumLabel = settingsElement.attribute( QStringLiteral( 
"minimumLabel" ) );
 
  129     mMaximumLabel = settingsElement.attribute( QStringLiteral( 
"maximumLabel" ) );
 
  130     mPrefix = settingsElement.attribute( QStringLiteral( 
"prefix" ) );
 
  131     mSuffix = settingsElement.attribute( QStringLiteral( 
"suffix" ) );
 
  133     mOrientation = 
static_cast<  Qt::Orientation 
>( settingsElement.attribute( QStringLiteral( 
"orientation" ), QString::number( Qt::Vertical ) ).toInt() );
 
  135     const QDomNodeList numericFormatNodeList = settingsElement.elementsByTagName( QStringLiteral( 
"numericFormat" ) );
 
  136     if ( !numericFormatNodeList.isEmpty() )
 
  138       const QDomElement numericFormatElem = numericFormatNodeList.at( 0 ).toElement();
 
  142     if ( !settingsElement.firstChildElement( QStringLiteral( 
"text-style" ) ).isNull() )
 
  144       mTextFormat.
readXml( settingsElement, context );
 
  180   mTextFormat = format;
 
  195   return mUseContinuousLegend;