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 将返回 -1。同样,对于列,行函数可能返回 -1。 更多...
头: | #include <QAccessibleTableModelChangeEvent> |
qmake: | QT += gui |
继承: | 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 ) |
int | m_firstColumn |
int | m_firstRow |
int | m_lastColumn |
int | m_lastRow |
QAccessibleTableModelChangeEvent::ModelChangeType | m_modelChangeType |
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 将返回 -1。同样,对于列,行函数可能返回 -1。
此类用于 QAccessible::updateAccessibility ().
This enum describes the different types of changes in the table model.
常量 | 值 | 描述 |
---|---|---|
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. |
构造新的 QAccessibleTableModelChangeEvent for object of with changeType .
构造新的 QAccessibleTableModelChangeEvent for interface iface with a model change type changeType .
Returns the first changed column.
另请参阅 setFirstColumn ().
返回第一改变行。
另请参阅 setFirstRow ().
Returns the last changed column.
另请参阅 setLastColumn ().
Returns the last changed row.
另请参阅 setLastRow ().
Returns the type of change.
另请参阅 setModelChangeType ().
Sets the first changed column .
另请参阅 firstColumn ().
Sets the first changed row .
另请参阅 firstRow ().
Sets the last changed column .
另请参阅 lastColumn ().
Sets the last changed row .
另请参阅 lastRow ().
Sets the type of change to changeType .
另请参阅 modelChangeType ().