18 #ifndef QGSCOMPOSERATTRIBUTETABLEMODELV2_H
19 #define QGSCOMPOSERATTRIBUTETABLEMODELV2_H
21 #include <QAbstractTableModel>
22 #include <QSortFilterProxyModel>
51 virtual int rowCount(
const QModelIndex &parent = QModelIndex() )
const;
52 int columnCount(
const QModelIndex &parent = QModelIndex() )
const;
53 virtual QVariant data(
const QModelIndex &
index,
int role )
const;
54 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
55 virtual bool setData(
const QModelIndex &
index,
const QVariant &value,
int role = Qt::EditRole );
56 Qt::ItemFlags flags(
const QModelIndex &
index )
const;
57 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() );
58 bool insertRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() );
59 QModelIndex
index(
int row,
int column,
const QModelIndex &parent )
const;
60 QModelIndex parent(
const QModelIndex &child )
const;
69 bool moveRow(
int row, ShiftDirection direction );
151 bool lessThan(
const QModelIndex &left,
const QModelIndex &right )
const;
152 int columnCount(
const QModelIndex &parent = QModelIndex() )
const;
153 virtual QVariant data(
const QModelIndex &
index,
int role )
const;
154 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
155 Qt::ItemFlags flags(
const QModelIndex &
index )
const;
156 virtual bool setData(
const QModelIndex &
index,
const QVariant &value,
int role = Qt::EditRole );
191 bool filterAcceptsRow(
int source_row,
const QModelIndex & source_parent )
const;
195 ColumnFilterType mFilterType;
201 QList<QgsComposerTableColumn*> columnsWithoutSortRank()
const;
204 #endif // QGSCOMPOSERATTRIBUTETABLEMODELV2_H