1 #ifndef QGSATTRIBUTEEDITORMODEL_H
2 #define QGSATTRIBUTEEDITORMODEL_H
6 #include <QAbstractProxyModel>
8 #include <QItemSelectionModel>
36 FeatureInfoRole = Qt::UserRole,
46 virtual QVariant data(
const QModelIndex&
index,
int role )
const;
47 virtual Qt::ItemFlags flags(
const QModelIndex&
index )
const;
57 bool setDisplayExpression(
const QString expression );
63 QString parserErrorString();
65 QString displayExpression()
const;
70 virtual QModelIndex mapToSource(
const QModelIndex& proxyIndex )
const;
71 virtual QModelIndex mapFromSource(
const QModelIndex& sourceIndex )
const;
73 virtual QModelIndex mapToMaster(
const QModelIndex& proxyIndex )
const;
74 virtual QModelIndex mapFromMaster(
const QModelIndex& sourceIndex )
const;
76 virtual QItemSelection mapSelectionFromMaster(
const QItemSelection& selection )
const;
77 virtual QItemSelection mapSelectionToMaster(
const QItemSelection& selection )
const;
79 virtual QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex() )
const;
80 virtual QModelIndex parent(
const QModelIndex& child )
const;
81 virtual int columnCount(
const QModelIndex&parent = QModelIndex() )
const;
82 virtual int rowCount(
const QModelIndex& parent = QModelIndex() )
const;
88 void onBeginRemoveRows(
const QModelIndex& parent,
int first,
int last );
89 void onEndRemoveRows(
const QModelIndex& parent,
int first,
int last );
90 void onBeginInsertRows(
const QModelIndex& parent,
int first,
int last );
91 void onEndInsertRows(
const QModelIndex& parent,
int first,
int last );
96 QString mParserErrorString;
101 #endif // QGSATTRIBUTEEDITORMODEL_H