From b0f9c06a9b199a7474eb94a6292b5824364344b6 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Fri, 26 Jun 2020 08:21:15 +0200 Subject: Use QList instead of QVector in corelib implementation Omitting state machine and docs for now. Task-number: QTBUG-84469 Change-Id: Ibfa5e7035515773461f6cdbff35299315ef65737 Reviewed-by: Sona Kurazyan --- src/corelib/itemmodels/qconcatenatetablesproxymodel.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/corelib/itemmodels/qconcatenatetablesproxymodel.cpp') diff --git a/src/corelib/itemmodels/qconcatenatetablesproxymodel.cpp b/src/corelib/itemmodels/qconcatenatetablesproxymodel.cpp index 0e29714677..05baa7eed2 100644 --- a/src/corelib/itemmodels/qconcatenatetablesproxymodel.cpp +++ b/src/corelib/itemmodels/qconcatenatetablesproxymodel.cpp @@ -69,7 +69,7 @@ public: void _q_slotColumnsInserted(const QModelIndex &parent, int, int); void _q_slotColumnsAboutToBeRemoved(const QModelIndex &parent, int start, int end); void _q_slotColumnsRemoved(const QModelIndex &parent, int, int); - void _q_slotDataChanged(const QModelIndex &from, const QModelIndex &to, const QVector &roles); + void _q_slotDataChanged(const QModelIndex &from, const QModelIndex &to, const QList &roles); void _q_slotSourceLayoutAboutToBeChanged(const QList &sourceParents, QAbstractItemModel::LayoutChangeHint hint); void _q_slotSourceLayoutChanged(const QList &sourceParents, QAbstractItemModel::LayoutChangeHint hint); void _q_slotModelAboutToBeReset(); @@ -80,7 +80,7 @@ public: bool mapDropCoordinatesToSource(int row, int column, const QModelIndex &parent, int *sourceRow, int *sourceColumn, QModelIndex *sourceParent, QAbstractItemModel **sourceModel) const; - QVector m_models; + QList m_models; int m_rowCount; // have to maintain it here since we can't compute during model destruction int m_columnCount; @@ -88,8 +88,8 @@ public: int m_newColumnCount; // for layoutAboutToBeChanged/layoutChanged - QVector layoutChangePersistentIndexes; - QVector layoutChangeProxyIndexes; + QList layoutChangePersistentIndexes; + QList layoutChangeProxyIndexes; }; QConcatenateTablesProxyModelPrivate::QConcatenateTablesProxyModelPrivate() @@ -470,7 +470,7 @@ void QConcatenateTablesProxyModel::addSourceModel(QAbstractItemModel *sourceMode Q_D(QConcatenateTablesProxyModel); Q_ASSERT(sourceModel); Q_ASSERT(!d->m_models.contains(sourceModel)); - connect(sourceModel, SIGNAL(dataChanged(QModelIndex,QModelIndex,QVector)), this, SLOT(_q_slotDataChanged(QModelIndex,QModelIndex,QVector))); + connect(sourceModel, SIGNAL(dataChanged(QModelIndex,QModelIndex,QList)), this, SLOT(_q_slotDataChanged(QModelIndex,QModelIndex,QList))); connect(sourceModel, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(_q_slotRowsInserted(QModelIndex,int,int))); connect(sourceModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(_q_slotRowsRemoved(QModelIndex,int,int))); connect(sourceModel, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), this, SLOT(_q_slotRowsAboutToBeInserted(QModelIndex,int,int))); @@ -617,7 +617,7 @@ void QConcatenateTablesProxyModelPrivate::_q_slotColumnsRemoved(const QModelInde } } -void QConcatenateTablesProxyModelPrivate::_q_slotDataChanged(const QModelIndex &from, const QModelIndex &to, const QVector &roles) +void QConcatenateTablesProxyModelPrivate::_q_slotDataChanged(const QModelIndex &from, const QModelIndex &to, const QList &roles) { Q_Q(QConcatenateTablesProxyModel); Q_ASSERT(from.isValid()); -- cgit v1.2.3