symbols2.patch

Maxim Dubinin, 2009-08-25 05:26 PM

Download (1.25 KB)

View differences:

src/core/renderer/qgsuniquevaluerenderer.cpp (working copy)
74 74
  }
75 75
}
76 76

  
77
const QList<QgsSymbol*> QgsUniqueValueRenderer::symbols() const
78
{
79
  QList <QgsSymbol*> symbollist;
80
  for ( QMap<QString, QgsSymbol*>::const_iterator it = mSymbols.begin(); it != mSymbols.end(); ++it )
81
  {
82
    symbollist.append( it.value() );
83
  }
84
  return symbollist;
85
}
86

  
87 77
void QgsUniqueValueRenderer::insertValue( QString name, QgsSymbol* symbol )
88 78
{
89 79
  mSymbols.insert( name, symbol );
src/core/renderer/qgsuniquevaluerenderer.h (working copy)
62 62
    /**Returns the index of the classification field*/
63 63
    int classificationField() const;
64 64
    /**Return symbology items*/
65
    const QList<QgsSymbol*> symbols() const;
65
    const QList<QgsSymbol*> symbols() const { return mSymbols.values(); }
66 66
    QgsRenderer* clone() const;
67 67
  protected:
68 68
    /**Field index used for classification*/