16 #ifndef QGSLAYERTREEMODELLEGENDNODE_H
17 #define QGSLAYERTREEMODELLEGENDNODE_H
44 RuleKeyRole = Qt::UserRole,
45 SymbolV2LegacyRuleKeyRole
55 virtual Qt::ItemFlags flags()
const;
58 virtual QVariant data(
int role )
const = 0;
61 virtual bool setData(
const QVariant& value,
int role );
66 virtual QString
userLabel()
const {
return mUserLabel; }
67 virtual void setUserLabel(
const QString& userLabel ) { mUserLabel = userLabel; }
69 virtual bool isScaleOK(
double scale )
const { Q_UNUSED( scale );
return true; }
144 virtual Qt::ItemFlags
flags()
const;
145 virtual QVariant
data(
int role )
const;
146 virtual bool setData(
const QVariant& value,
int role );
154 virtual bool isScaleOK(
double scale )
const {
return mItem.isScaleOK( scale ); }
163 mutable QPixmap mPixmap;
165 bool mSymbolUsesMapUnits;
179 virtual QVariant
data(
int role )
const;
198 virtual QVariant
data(
int role )
const;
216 virtual QVariant
data(
int role )
const;
225 #endif // QGSLAYERTREEMODELLEGENDNODE_H