QAccessibleTableModelChangeEvent Class

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. 更多...

头文件: #include <QAccessibleTableModelChangeEvent>
qmake: QT += gui
基类: QAccessibleEvent

公有类型

enum ModelChangeType { ModelReset, DataChanged, RowsInserted, ColumnsInserted, RowsRemoved, ColumnsRemoved }

公有函数

QAccessibleTableModelChangeEvent(QObject *object, ModelChangeType changeType)
QAccessibleTableModelChangeEvent(QAccessibleInterface *iface, 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)

详细描述

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().

成员类型

enum QAccessibleTableModelChangeEvent::ModelChangeType

This enum describes the different types of changes in the table model.

ConstantValueDescription
QAccessibleTableModelChangeEvent::ModelReset0The model has been reset, all previous knowledge about the model is now invalid.
QAccessibleTableModelChangeEvent::DataChanged1No cells have been added or removed, but the data of the specified cell range is invalid.
QAccessibleTableModelChangeEvent::RowsInserted2New rows have been inserted.
QAccessibleTableModelChangeEvent::ColumnsInserted3New columns have been inserted.
QAccessibleTableModelChangeEvent::RowsRemoved4Rows have been removed.
QAccessibleTableModelChangeEvent::ColumnsRemoved5Columns have been removed.

成员函数

QAccessibleTableModelChangeEvent::QAccessibleTableModelChangeEvent(QObject *object, ModelChangeType changeType)

Constructs a new QAccessibleTableModelChangeEvent for object of with changeType.

QAccessibleTableModelChangeEvent::QAccessibleTableModelChangeEvent(QAccessibleInterface *iface, ModelChangeType changeType)

Constructs a new QAccessibleTableModelChangeEvent for interface iface with a model change type changeType.

int QAccessibleTableModelChangeEvent::firstColumn() const

Returns the first changed column.

参见 setFirstColumn().

int QAccessibleTableModelChangeEvent::firstRow() const

Returns the first changed row.

参见 setFirstRow().

int QAccessibleTableModelChangeEvent::lastColumn() const

Returns the last changed column.

参见 setLastColumn().

int QAccessibleTableModelChangeEvent::lastRow() const

Returns the last changed row.

参见 setLastRow().

ModelChangeType QAccessibleTableModelChangeEvent::modelChangeType() const

Returns the type of change.

参见 setModelChangeType().

void QAccessibleTableModelChangeEvent::setFirstColumn(int column)

Sets the first changed column.

参见 firstColumn().

void QAccessibleTableModelChangeEvent::setFirstRow(int row)

Sets the first changed row.

参见 firstRow().

void QAccessibleTableModelChangeEvent::setLastColumn(int column)

Sets the last changed column.

参见 lastColumn().

void QAccessibleTableModelChangeEvent::setLastRow(int row)

Sets the last changed row.

参见 lastRow().

void QAccessibleTableModelChangeEvent::setModelChangeType(ModelChangeType changeType)

Sets the type of change to changeType.

参见 modelChangeType().