![]() |
CopperSpice API
2.0.0
|
Indicates a change in a table, list, or tree when cells are added or removed. More...
Public Types | |
| enum | ModelChangeType |
Public Methods | |
| QAccessibleTableModelChangeEvent (QAccessibleInterface *interfaceId, ModelChangeType changeType) | |
| QAccessibleTableModelChangeEvent (QObject *object, ModelChangeType changeType) | |
| int | firstColumn () const |
| int | firstRow () const |
| int | lastColumn () const |
| int | lastRow () const |
| ModelChangeType | modelChangeType () const |
| void | setFirstColumn (int column) |
| void | setFirstRow (int row) |
| void | setLastColumn (int column) |
| void | setLastRow (int row) |
| void | setModelChangeType (ModelChangeType changeType) |
Public Methods inherited from QAccessibleEvent | |
| QAccessibleEvent (QAccessibleInterface *interfaceId, QAccessible::Event eventType) | |
| QAccessibleEvent (QObject *object, QAccessible::Event eventType) | |
| virtual | ~QAccessibleEvent () |
| virtual QAccessibleInterface * | accessibleInterface () const |
| int | child () const |
| QObject * | object () const |
| void | setChild (int child) |
| QAccessible::Event | type () const |
The QAccessibleTableModelChangeEvent indicates a change in a table, list, or tree when cells are added or removed. If the change affected a number of rows, then firstColumn and lastColumn will return -1. If the change affected a number of columns, then firstRow and lastRow will 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. |
|
inline |
Constructs a new QAccessibleTableModelChangeEvent using object and changeType.
|
inline |
Constructs a new QAccessibleTableModelChangeEvent using interfaceId and changeType.
|
inline |
Returns the first changed column.
|
inline |
Returns the first changed row.
|
inline |
Returns the last changed column.
|
inline |
Returns the last changed row.
|
inline |
Returns the type of change.
|
inline |
Sets the value for the first column which was changed to the given column.
|
inline |
Sets the value for the first row which was changed to the given row.
|
inline |
Sets the value for the last column which was changed to the given column.
|
inline |
Sets the value for the last row which was changed to the given row.
|
inline |
Sets the type of change to changeType.