QAccessibleTableModelChangeEvent 类

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

成员类型文档编制

enum QAccessibleTableModelChangeEvent:: ModelChangeType

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

构造新的 QAccessibleTableModelChangeEvent for object of with changeType .

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

构造新的 QAccessibleTableModelChangeEvent for interface iface with a model change type changeType .

int QAccessibleTableModelChangeEvent:: firstColumn () const

Returns the first changed column.

另请参阅 setFirstColumn ().

int QAccessibleTableModelChangeEvent:: firstRow () const

返回第一改变行。

另请参阅 setFirstRow ().

int QAccessibleTableModelChangeEvent:: lastColumn () const

Returns the last changed column.

另请参阅 setLastColumn ().

int QAccessibleTableModelChangeEvent:: lastRow () const

Returns the last changed row.

另请参阅 setLastRow ().

QAccessibleTableModelChangeEvent::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 ( QAccessibleTableModelChangeEvent::ModelChangeType changeType )

Sets the type of change to changeType .

另请参阅 modelChangeType ().