1 #ifndef QGSATTRIBUTEEDITORMODEL_H
2 #define QGSATTRIBUTEEDITORMODEL_H
6 #include <QAbstractProxyModel>
8 #include <QItemSelectionModel>
40 virtual QVariant data(
const QModelIndex& index,
int role )
const;
41 virtual Qt::ItemFlags flags(
const QModelIndex& index )
const;
51 bool setDisplayExpression(
const QString expression );
57 QString parserErrorString();
59 const QString& displayExpression()
const;
60 bool featureByIndex(
const QModelIndex& index,
QgsFeature& feat );
64 virtual QModelIndex mapToSource(
const QModelIndex& proxyIndex )
const;
65 virtual QModelIndex mapFromSource(
const QModelIndex& sourceIndex )
const;
67 virtual QModelIndex mapToMaster(
const QModelIndex& proxyIndex )
const;
68 virtual QModelIndex mapFromMaster(
const QModelIndex& sourceIndex )
const;
70 virtual QItemSelection mapSelectionFromMaster(
const QItemSelection& selection )
const;
71 virtual QItemSelection mapSelectionToMaster(
const QItemSelection& selection )
const;
73 virtual QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex() )
const;
74 virtual QModelIndex parent(
const QModelIndex& child )
const;
75 virtual int columnCount(
const QModelIndex&parent = QModelIndex() )
const;
76 virtual int rowCount(
const QModelIndex& parent = QModelIndex() )
const;
82 void onBeginRemoveRows(
const QModelIndex& parent,
int first,
int last );
83 void onEndRemoveRows(
const QModelIndex& parent,
int first,
int last );
84 void onBeginInsertRows(
const QModelIndex& parent,
int first,
int last );
85 void onEndInsertRows(
const QModelIndex& parent,
int first,
int last );
96 #endif // QGSATTRIBUTEEDITORMODEL_H