57 bool isEdited =
false;
62 FeatureInfoRole = 0x1000,
72#pragma clang diagnostic push
73#pragma clang diagnostic ignored "-Woverloaded-virtual"
77#pragma clang diagnostic pop
85 QVariant data(
const QModelIndex &index,
int role )
const override;
86 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
93 void setInjectNull(
bool injectNull );
109 bool setDisplayExpression(
const QString &expression );
115 QString parserErrorString();
117 QString displayExpression()
const;
118 bool featureByIndex(
const QModelIndex &index,
QgsFeature &feat );
124 QgsFeatureId idxToFid(
const QModelIndex &index )
const;
132 QModelIndex mapToSource(
const QModelIndex &proxyIndex )
const override;
133 QModelIndex mapFromSource(
const QModelIndex &sourceIndex )
const override;
135 virtual QModelIndex mapToMaster(
const QModelIndex &proxyIndex )
const;
136 virtual QModelIndex mapFromMaster(
const QModelIndex &sourceIndex )
const;
138 virtual QItemSelection mapSelectionFromMaster(
const QItemSelection &selection )
const;
139 virtual QItemSelection mapSelectionToMaster(
const QItemSelection &selection )
const;
141 QModelIndex parent(
const QModelIndex &child )
const override;
142 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
143 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
153 bool sortByDisplayExpression()
const;
163 void setSortByDisplayExpression(
bool sortByDisplayExpression, Qt::SortOrder order = Qt::AscendingOrder );
172 Q_DECL_DEPRECATED
void onBeginRemoveRows(
const QModelIndex &parent,
int first,
int last );
179 Q_DECL_DEPRECATED
void onEndRemoveRows(
const QModelIndex &parent,
int first,
int last );
186 Q_DECL_DEPRECATED
void onBeginInsertRows(
const QModelIndex &parent,
int first,
int last );
193 Q_DECL_DEPRECATED
void onEndInsertRows(
const QModelIndex &parent,
int first,
int last );
197 void conditionalStylesChanged();
202 QString mParserErrorString;
203 bool mInjectNull =
false;
205 mutable QMap< QgsFeatureId, QList<QgsConditionalStyle> > mRowStylesMap;
206 bool mSortByDisplayExpression =
false;
207 QPointer< QgsVectorLayer > mSourceLayer;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...