19 #ifndef QGSLAYERTREEMODELLEGENDNODE_H
20 #define QGSLAYERTREEMODELLEGENDNODE_H
50 RuleKeyRole = Qt::UserRole,
62 virtual Qt::ItemFlags flags()
const;
65 virtual QVariant data(
int role )
const = 0;
68 virtual bool setData(
const QVariant& value,
int role );
73 virtual QString
userLabel()
const {
return mUserLabel; }
74 virtual void setUserLabel(
const QString& userLabel ) { mUserLabel = userLabel; }
76 virtual bool isScaleOK(
double scale )
const { Q_UNUSED( scale );
return true; }
151 virtual Qt::ItemFlags
flags()
const override;
152 virtual QVariant
data(
int role )
const override;
153 virtual bool setData(
const QVariant& value,
int role )
override;
161 virtual bool isScaleOK(
double scale )
const override {
return mItem.isScaleOK( scale ); }
170 mutable QPixmap mPixmap;
172 bool mSymbolUsesMapUnits;
186 virtual QVariant
data(
int role )
const override;
205 virtual QVariant
data(
int role )
const override;
223 virtual QVariant
data(
int role )
const override;
246 virtual QVariant
data(
int role )
const override;
254 void getLegendGraphicFinished(
const QImage& );
255 void getLegendGraphicErrored(
const QString& );
256 void getLegendGraphicProgress( qint64, qint64 );
261 const QImage& getLegendGraphic()
const;
263 QImage renderMessage(
const QString& msg )
const;
269 mutable QScopedPointer<QgsImageFetcher> mFetcher;
272 #endif // QGSLAYERTREEMODELLEGENDNODE_H