21 #ifndef QFIXEDROWSTABLEVIEW_H
22 #define QFIXEDROWSTABLEVIEW_H
24 #include <QHeaderView>
25 #include <QIdentityProxyModel>
27 #include <QSortFilterProxyModel>
30 #include <qaivlib_global.h>
34 class QFixedRowsDecorationProxyModelPrivate;
35 class QFixedRowsFilterProxyModelPrivate;
36 class QFixedRowsTableViewPrivate;
51 Q_PROPERTY(
bool fixedRowsMode READ fixedRowsMode WRITE setFixedRowsMode)
69 bool fixedRowsMode()
const;
77 void setModel(QAbstractItemModel* model);
82 void setFixedRowsMode(
bool on);
92 void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint);
96 void focusInEvent(QFocusEvent* event);
100 void verticalHeaderSectionClicked(
int section);
102 QFixedRowsTableViewPrivate* d;
128 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent)
const;
132 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
136 bool isEnabled()
const;
140 bool isRowPinned(
int row)
const;
145 void setEnabled(
bool on);
149 void sourceModelReset();
153 void toggleRow(
const QModelIndex & index);
157 void setRowFixed(
const QModelIndex & index,
bool fixed);
159 QFixedRowsFilterProxyModelPrivate* d;
178 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
180 QSize iconSize()
const;
184 bool isEnabled()
const;
190 void modelToggled(
bool on);
195 void setEnabled(
bool on);
196 void toggleRow(
const QModelIndex & index);
198 QFixedRowsDecorationProxyModelPrivate* d;
201 #endif // QFIXEDROWSTABLEVIEW_H
The class QFixedRowsTableView implements a table view with fixed (pinned) rows.
Definition: qfixedrowstableview.h:42
The QFixedRowsDecorationProxyModel class implements a decoration proxy model.
Definition: qfixedrowstableview.h:163
The QFixedRowsFilterProxyModel class implements a proxy model supporting fixed (pinned) rows...
Definition: qfixedrowstableview.h:109