Skip to content

Commit 8799cc9

Browse files
committed
Added missing colour accessor/mutator/member from composerlegenditem header
1 parent e355a60 commit 8799cc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/composer/qgscomposerlegenditem.h

+4
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,12 @@ class CORE_EXPORT QgsComposerRasterSymbolItem: public QgsComposerLegendItem
125125
QString layerID() const { return mLayerID; }
126126
ItemType itemType() const { return RasterSymbolItem; }
127127

128+
void setColor( const QColor& c ){ mColor = c; }
129+
QColor color() const { return mColor; }
130+
128131
private:
129132
QString mLayerID;
133+
QColor mColor;
130134
};
131135

132136
class CORE_EXPORT QgsComposerLayerItem: public QgsComposerLegendItem

0 commit comments

Comments
 (0)