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