summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/itemmodels/qitemselectionmodel.cpp6
-rw-r--r--src/corelib/itemmodels/qitemselectionmodel_p.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/itemmodels/qitemselectionmodel.cpp b/src/corelib/itemmodels/qitemselectionmodel.cpp
index 6932df8491..d55cbe9d97 100644
--- a/src/corelib/itemmodels/qitemselectionmodel.cpp
+++ b/src/corelib/itemmodels/qitemselectionmodel.cpp
@@ -459,9 +459,9 @@ QModelIndexList QItemSelection::indexes() const
return result;
}
-static QList<QPersistentModelIndex> qSelectionPersistentindexes(const QItemSelection &sel)
+static QVector<QPersistentModelIndex> qSelectionPersistentindexes(const QItemSelection &sel)
{
- QList<QPersistentModelIndex> result;
+ QVector<QPersistentModelIndex> result;
QList<QItemSelectionRange>::const_iterator it = sel.constBegin();
for (; it != sel.constEnd(); ++it)
indexesFromRange(*it, result);
@@ -846,7 +846,7 @@ void QItemSelectionModelPrivate::_q_layoutAboutToBeChanged()
Merges \a indexes into an item selection made up of ranges.
Assumes that the indexes are sorted.
*/
-static QItemSelection mergeIndexes(const QList<QPersistentModelIndex> &indexes)
+static QItemSelection mergeIndexes(const QVector<QPersistentModelIndex> &indexes)
{
QItemSelection colSpans;
// merge columns
diff --git a/src/corelib/itemmodels/qitemselectionmodel_p.h b/src/corelib/itemmodels/qitemselectionmodel_p.h
index 987ea6d11a..cc278346ff 100644
--- a/src/corelib/itemmodels/qitemselectionmodel_p.h
+++ b/src/corelib/itemmodels/qitemselectionmodel_p.h
@@ -98,8 +98,8 @@ public:
QItemSelection currentSelection;
QPersistentModelIndex currentIndex;
QItemSelectionModel::SelectionFlags currentCommand;
- QList<QPersistentModelIndex> savedPersistentIndexes;
- QList<QPersistentModelIndex> savedPersistentCurrentIndexes;
+ QVector<QPersistentModelIndex> savedPersistentIndexes;
+ QVector<QPersistentModelIndex> savedPersistentCurrentIndexes;
// optimization when all indexes are selected
bool tableSelected;
QPersistentModelIndex tableParent;