Doc: Fix copy+paste errors for QAbstractItemModel
Change-Id: Ia462544cc86870d9870ae1be3b4f9135c9efe45c Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
730bc064a0
commit
77056f91cd
@ -1303,12 +1303,12 @@ void QAbstractItemModel::resetInternalData()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn bool QAbstractItemModel::moveRow(const QModelIndex &sourceParent, int sourceColumn, const QModelIndex &destinationParent, int destinationChild)
|
\fn bool QAbstractItemModel::moveRow(const QModelIndex &sourceParent, int sourceRow, const QModelIndex &destinationParent, int destinationChild)
|
||||||
|
|
||||||
On models that support this, moves \a sourceColumn from \a sourceParent to \a destinationChild under
|
On models that support this, moves \a sourceRow from \a sourceParent to \a destinationChild under
|
||||||
\a destinationParent.
|
\a destinationParent.
|
||||||
|
|
||||||
Returns true if the columns were successfully moved; otherwise returns
|
Returns true if the rows were successfully moved; otherwise returns
|
||||||
false.
|
false.
|
||||||
|
|
||||||
\sa moveRows(), moveColumn()
|
\sa moveRows(), moveColumn()
|
||||||
|
@ -2033,14 +2033,14 @@
|
|||||||
\li Used to remove rows and the items of data they contain from all types of model.
|
\li Used to remove rows and the items of data they contain from all types of model.
|
||||||
Implementations must call
|
Implementations must call
|
||||||
\l{QAbstractItemModel::beginRemoveRows()}{beginRemoveRows()}
|
\l{QAbstractItemModel::beginRemoveRows()}{beginRemoveRows()}
|
||||||
\e before inserting new columns into any underlying data structures, and call
|
\e before rows are removed from any underlying data structures, and call
|
||||||
\l{QAbstractItemModel::endRemoveRows()}{endRemoveRows()}
|
\l{QAbstractItemModel::endRemoveRows()}{endRemoveRows()}
|
||||||
\e{immediately afterwards}.
|
\e{immediately afterwards}.
|
||||||
\row \li \l{QAbstractItemModel::insertColumns()}{insertColumns()}
|
\row \li \l{QAbstractItemModel::insertColumns()}{insertColumns()}
|
||||||
\li Used to add new columns and items of data to table models and hierarchical models.
|
\li Used to add new columns and items of data to table models and hierarchical models.
|
||||||
Implementations must call
|
Implementations must call
|
||||||
\l{QAbstractItemModel::beginInsertColumns()}{beginInsertColumns()} \e before
|
\l{QAbstractItemModel::beginInsertColumns()}{beginInsertColumns()} \e before
|
||||||
rows are removed from any underlying data structures, and call
|
inserting new columns into any underlying data structures, and call
|
||||||
\l{QAbstractItemModel::endInsertColumns()}{endInsertColumns()}
|
\l{QAbstractItemModel::endInsertColumns()}{endInsertColumns()}
|
||||||
\e{immediately afterwards}.
|
\e{immediately afterwards}.
|
||||||
\row \li \l{QAbstractItemModel::removeColumns()}{removeColumns()}
|
\row \li \l{QAbstractItemModel::removeColumns()}{removeColumns()}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user