Improve QList::move docs
- State that both arguments must be within bounds. - Add example. Pick-to: 6.5 6.8 6.9 Change-Id: Ieba9c3469a2c8cf8c20d867abff5865d96c3ee6e Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
c0f9e99611
commit
6b361119ef
@ -908,6 +908,15 @@
|
|||||||
\since 5.6
|
\since 5.6
|
||||||
|
|
||||||
Moves the item at index position \a from to index position \a to.
|
Moves the item at index position \a from to index position \a to.
|
||||||
|
|
||||||
|
\c from and \c to must be within bounds.
|
||||||
|
|
||||||
|
For example, to move the first item to the end of the list:
|
||||||
|
\code
|
||||||
|
QList<int> list = {1, 2, 3};
|
||||||
|
list.move(0, list.size() - 1);
|
||||||
|
qDebug() << list; // Prints "QList(2, 3, 1)"
|
||||||
|
\endcode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn template <typename T> void QList<T>::removeFirst()
|
/*! \fn template <typename T> void QList<T>::removeFirst()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user