|
|
| DADataTableModel (QUndoStack *stack, QObject *parent=nullptr) |
| |
|
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| virtual QVariant | actualHeaderData (int actualSection, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
| virtual int | actualRowCount () const override |
| |
| virtual QVariant | actualData (int actualRow, int actualColumn, int role=Qt::DisplayRole) const override |
| |
| virtual bool | setActualData (int actualRow, int actualColumn, const QVariant &value, int role=Qt::EditRole) override |
| |
|
void | setData (const DAData &data) |
| |
|
DAData | getData () const |
| |
|
void | setUseCacheMode (bool on=true) |
| |
| virtual void | setCacheWindowStartRow (int startRow) override |
| |
|
void | refreshData () |
| |
|
void | setExtraRowCount (int v) |
| |
| int | getExtraRowCount () const |
| | 超出模型实际数据行数的额外空行数量
|
| |
| void | setExtraColumnCount (int v) |
| | 设置超出模型实际数据列数的额外空列数量。
|
| |
| int | getExtraColumnCount () const |
| | 超出模型实际数据列数的额外空列数量
|
| |
|
void | setMinShowRowCount (int v) |
| |
|
int | getMinShowRowCount () const |
| |
|
void | setMinShowColumnCount (int v) |
| |
|
int | getMinShowColumnCount () const |
| |
|
| DAAbstractCacheWindowTableModel (QObject *parent=nullptr) |
| |
|
int | getCacheWindowStartRow () const |
| |
|
void | setCacheWindowSize (int s) |
| |
|
int | getCacheWindowSize () const |
| |
|
virtual Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
|
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
|
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
|
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
|
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| |
|
virtual Qt::ItemFlags | actualFlags (int actualRow, int actualColumn) const |
| |
|
void | notifyRowChanged (int row) |
| |
|
void | notifyColumnChanged (int col) |
| |
|
void | notifyDataChanged (int row, int col) |
| |
|
void | notifyDataChanged (int rowStart, int colStart, int rowEnd, int colEnd) |
| |
|
void | notifyRowsRemoved (const QList< int > &r) |
| |
|
void | notifyRowsInserted (const QList< int > &r) |
| |
|
void | notifyColumnsRemoved (const QList< int > &c) |
| |
|
void | notifyColumnsInserted (const QList< int > &c) |
| |
针对DAData的model
DAData会共享数据,在外部修改任意一个DAData都会改变所有共享对象的内容
如果不希望共享,可以使用DAPyDataFrameTableModel