Index: src/core/renderer/qgsuniquevaluerenderer.cpp =================================================================== --- src/core/renderer/qgsuniquevaluerenderer.cpp (revision 11419) +++ src/core/renderer/qgsuniquevaluerenderer.cpp (working copy) @@ -84,6 +84,11 @@ return symbollist; } +const QMap QgsUniqueValueRenderer::symbolMap() const +{ + return mSymbols; +} + void QgsUniqueValueRenderer::insertValue( QString name, QgsSymbol* symbol ) { mSymbols.insert( name, symbol ); Index: src/core/renderer/qgsuniquevaluerenderer.h =================================================================== --- src/core/renderer/qgsuniquevaluerenderer.h (revision 11419) +++ src/core/renderer/qgsuniquevaluerenderer.h (working copy) @@ -43,7 +43,7 @@ */ int readXML( const QDomNode& rnode, QgsVectorLayer& vl ); /**Writes the contents of the renderer to a configuration file - @ return true in case of success*/ + @return true in case of success*/ virtual bool writeXML( QDomNode & layer_node, QDomDocument & document, const QgsVectorLayer& vl ) const; /** Returns true, if attribute values are used by the renderer and false otherwise*/ bool needsAttributes() const; @@ -63,6 +63,9 @@ int classificationField() const; /**Return symbology items*/ const QList symbols() const; + /**Return the classification map + @note added in 1.3 */ + const QMap symbolMap() const; QgsRenderer* clone() const; protected: /**Field index used for classification*/ Index: python/core/qgsuniquevaluerenderer.sip =================================================================== --- python/core/qgsuniquevaluerenderer.sip (revision 11419) +++ python/core/qgsuniquevaluerenderer.sip (working copy) @@ -39,6 +39,9 @@ int classificationField(); /**Return symbology items*/ const QList symbols() const; + /**Return classification symbology + @note added in 1.3 */ + const QMap symbolMap() const; QgsRenderer* clone() const /Factory/; };