From 6f530fe4d6146f305b18297dc4bbf40933f46338 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sun, 17 Aug 2014 12:54:53 +0200 Subject: QVector: add move(int,int) for QList compat Change-Id: I67948621313f2e7c69abe7ef95ee82ca64c6512a Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/corelib/tools/qvector.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/corelib/tools/qvector.cpp') diff --git a/src/corelib/tools/qvector.cpp b/src/corelib/tools/qvector.cpp index b57954dc03..77afe9d00e 100644 --- a/src/corelib/tools/qvector.cpp +++ b/src/corelib/tools/qvector.cpp @@ -688,6 +688,16 @@ \sa takeFirst(), takeLast(), QList::takeAt() */ +/*! \fn void QVector::move(int from, int to) + \since 5.6 + + Moves the item at index position \a from to index position \a to. + + Provided for compatibility with QList. + + \sa QList::move() +*/ + /*! \fn void QVector::removeFirst() \since 5.1 Removes the first item in the vector. Calling this function is -- cgit v1.2.3