18 #ifndef QGSCOMPOSERLEGEND_H
19 #define QGSCOMPOSERLEGEND_H
47 QVariant
data(
const QModelIndex&
index,
int role )
const override;
49 Qt::ItemFlags
flags(
const QModelIndex &index )
const override;
68 void paint( QPainter* painter,
const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget )
override;
71 QSizeF paintAndDetermineSize( QPainter* painter );
84 void setAutoUpdateModel(
bool autoUpdate );
86 bool autoUpdateModel()
const;
90 void setLegendFilterByMapEnabled(
bool enabled );
96 void setTitle(
const QString& t );
97 QString title()
const;
104 Qt::AlignmentFlag titleAlignment()
const;
110 void setTitleAlignment( Qt::AlignmentFlag alignment );
126 double boxSpace()
const;
127 void setBoxSpace(
double s );
129 double columnSpace()
const;
130 void setColumnSpace(
double s );
132 QColor fontColor()
const;
133 void setFontColor(
const QColor& c );
135 double symbolWidth()
const;
136 void setSymbolWidth(
double w );
138 double symbolHeight()
const;
139 void setSymbolHeight(
double h );
141 double wmsLegendWidth()
const;
142 void setWmsLegendWidth(
double w );
144 double wmsLegendHeight()
const;
145 void setWmsLegendHeight(
double h );
147 void setWrapChar(
const QString& t );
148 QString wrapChar()
const;
150 int columnCount()
const;
151 void setColumnCount(
int c );
153 int splitLayer()
const;
154 void setSplitLayer(
bool s );
156 int equalColumnWidth()
const;
157 void setEqualColumnWidth(
bool s );
169 bool writeXML( QDomElement& elem, QDomDocument & doc )
const override;
175 bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc )
override;
182 void synchronizeWithModel();
184 void invalidateCurrentMap();
187 void updateFilterByMap();
204 bool mLegendFilterByMap;