The QAccessibleTableModelChangeEvent signifies a change in a table, list, or tree where cells are added or removed. If the change affected a number of rows, firstColumn and lastColumn will return -1. Likewise for columns, the row functions may return -1. More...
Header: | #include <QAccessibleTableModelChangeEvent> |
qmake: | QT += gui |
Inherits: | QAccessibleEvent |
enum | ModelChangeType { ModelReset, DataChanged, RowsInserted, ColumnsInserted, RowsRemoved, ColumnsRemoved } |
QAccessibleTableModelChangeEvent(QObject *object, QAccessibleTableModelChangeEvent::ModelChangeType changeType) | |
QAccessibleTableModelChangeEvent(QAccessibleInterface *iface, QAccessibleTableModelChangeEvent::ModelChangeType changeType) | |
int | firstColumn() const |
int | firstRow() const |
int | lastColumn() const |
int | lastRow() const |
QAccessibleTableModelChangeEvent::ModelChangeType | modelChangeType() const |
void | setFirstColumn(int column) |
void | setFirstRow(int row) |
void | setLastColumn(int column) |
void | setLastRow(int row) |
void | setModelChangeType(QAccessibleTableModelChangeEvent::ModelChangeType changeType) |
The QAccessibleTableModelChangeEvent signifies a change in a table, list, or tree where cells are added or removed. If the change affected a number of rows, firstColumn and lastColumn will return -1. Likewise for columns, the row functions may return -1.
This class is used with QAccessible::updateAccessibility().
This enum describes the different types of changes in the table model.
Constant | Value | Description |
---|---|---|
QAccessibleTableModelChangeEvent::ModelReset |
0 |
The model has been reset, all previous knowledge about the model is now invalid. |
QAccessibleTableModelChangeEvent::DataChanged |
1 |
No cells have been added or removed, but the data of the specified cell range is invalid. |
QAccessibleTableModelChangeEvent::RowsInserted |
2 |
New rows have been inserted. |
QAccessibleTableModelChangeEvent::ColumnsInserted |
3 |
New columns have been inserted. |
QAccessibleTableModelChangeEvent::RowsRemoved |
4 |
Rows have been removed. |
QAccessibleTableModelChangeEvent::ColumnsRemoved |
5 |
Columns have been removed. |
Constructs a new QAccessibleTableModelChangeEvent for object of with changeType.
Constructs a new QAccessibleTableModelChangeEvent for interface iface with a model change type changeType.
Returns the first changed column.
See also setFirstColumn().
Returns the first changed row.
See also setFirstRow().
Returns the last changed column.
See also setLastColumn().
Returns the last changed row.
See also setLastRow().
Returns the type of change.
See also setModelChangeType().
Sets the first changed column.
See also firstColumn().
Sets the first changed row.
See also firstRow().
Sets the last changed column.
See also lastColumn().
Sets the last changed row.
See also lastRow().
Sets the type of change to changeType.
See also modelChangeType().