54 bool isEdited =
false;
59 FeatureInfoRole = 0x1000,
69#pragma clang diagnostic push
70#pragma clang diagnostic ignored "-Woverloaded-virtual"
74#pragma clang diagnostic pop
82 QVariant data(
const QModelIndex &index,
int role )
const override;
83 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
90 void setInjectNull(
bool injectNull );
106 bool setDisplayExpression(
const QString &expression );
112 QString parserErrorString();
114 QString displayExpression()
const;
115 bool featureByIndex(
const QModelIndex &index,
QgsFeature &feat );
121 QgsFeatureId idxToFid(
const QModelIndex &index )
const;
129 QModelIndex mapToSource(
const QModelIndex &proxyIndex )
const override;
130 QModelIndex mapFromSource(
const QModelIndex &sourceIndex )
const override;
132 virtual QModelIndex mapToMaster(
const QModelIndex &proxyIndex )
const;
133 virtual QModelIndex mapFromMaster(
const QModelIndex &sourceIndex )
const;
135 virtual QItemSelection mapSelectionFromMaster(
const QItemSelection &selection )
const;
136 virtual QItemSelection mapSelectionToMaster(
const QItemSelection &selection )
const;
138 QModelIndex parent(
const QModelIndex &child )
const override;
139 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
140 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
150 bool sortByDisplayExpression()
const;
160 void setSortByDisplayExpression(
bool sortByDisplayExpression, Qt::SortOrder order = Qt::AscendingOrder );
169 Q_DECL_DEPRECATED
void onBeginRemoveRows(
const QModelIndex &parent,
int first,
int last );
176 Q_DECL_DEPRECATED
void onEndRemoveRows(
const QModelIndex &parent,
int first,
int last );
183 Q_DECL_DEPRECATED
void onBeginInsertRows(
const QModelIndex &parent,
int first,
int last );
190 Q_DECL_DEPRECATED
void onEndInsertRows(
const QModelIndex &parent,
int first,
int last );
194 void conditionalStylesChanged();
199 QString mParserErrorString;
200 bool mInjectNull =
false;
202 mutable QMap< QgsFeatureId, QList<QgsConditionalStyle> > mRowStylesMap;
203 bool mSortByDisplayExpression =
false;
204 QPointer< QgsVectorLayer > mSourceLayer;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...