diff --git a/autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp b/autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp index 1a5fbc2..84f1f9c 100644 --- a/autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp +++ b/autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp @@ -47,17 +47,17 @@ CurrentItemLabel::CurrentItemLabel(QAbstractItemModel *model, QWidget *parent, Q } } -void CurrentItemLabel::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) +void CurrentItemLabel::dataChanged(const QModelIndex &, const QModelIndex &) { setText(m_model->index(0, 0).data().toString()); } -void CurrentItemLabel::rowsInserted(const QModelIndex &parent, int start, int end) +void CurrentItemLabel::rowsInserted(const QModelIndex &, int, int) { setText(m_model->index(0, 0).data().toString()); } -void CurrentItemLabel::rowsRemoved(const QModelIndex &parent, int start, int end) +void CurrentItemLabel::rowsRemoved(const QModelIndex &, int, int) { if (!m_model->hasChildren()) { setText("No selection"); @@ -119,7 +119,7 @@ void KNavigatingProxyModel::setSourceModel(QAbstractItemModel *sourceModel) updateNavigation(); } -void KNavigatingProxyModel::navigationSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected) +void KNavigatingProxyModel::navigationSelectionChanged(const QItemSelection &, const QItemSelection &) { updateNavigation(); } @@ -193,7 +193,7 @@ void KForwardingItemSelectionModel::select(const QItemSelection &selection, QIte } } -void KForwardingItemSelectionModel::navigationSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected) +void KForwardingItemSelectionModel::navigationSelectionChanged(const QItemSelection &selected, const QItemSelection &) { select(selected, ClearAndSelect); } diff --git a/autotests/proxymodeltestapp/kreparentingproxymodel.cpp b/autotests/proxymodeltestapp/kreparentingproxymodel.cpp index ff0e86c..177341f 100644 --- a/autotests/proxymodeltestapp/kreparentingproxymodel.cpp +++ b/autotests/proxymodeltestapp/kreparentingproxymodel.cpp @@ -793,7 +793,7 @@ QHash KReparentingProxyModelPrivate::mergeDescenda return mappings; } -QHash KReparentingProxyModelPrivate::insertTree(QHash mappings, const QModelIndex &parent) +QHash KReparentingProxyModelPrivate::insertTree(QHash, const QModelIndex &) { return QHash(); @@ -881,7 +881,7 @@ void KReparentingProxyModelPrivate::handleInsertion(const PendingInsertion &pend return; } -void KReparentingProxyModelPrivate::sourceRowsInserted(const QModelIndex &parent, int start, int end) +void KReparentingProxyModelPrivate::sourceRowsInserted(const QModelIndex &parent, int, int end) { Q_Q(KReparentingProxyModel); return endResetProxy(); @@ -1275,6 +1275,7 @@ QModelIndex KReparentingProxyModelPrivate::findLastInParent(QModelIndex parent, void KReparentingProxyModelPrivate::handleRemoval(const PendingRemoval &pendingRemoval) { + Q_UNUSED(pendingRemoval) // Q_Q(KReparentingProxyModel); // q->beginRemoveRows(pendingRemoval.index, pendingRemoval.start, pendingRemoval.end); // m_childIndexes.remove(pendingRemoval.index); @@ -1282,10 +1283,9 @@ void KReparentingProxyModelPrivate::handleRemoval(const PendingRemoval &pendingR // q->endRemoveRows(); } -void KReparentingProxyModelPrivate::sourceRowsRemoved(const QModelIndex &parent, int start, int end) +void KReparentingProxyModelPrivate::sourceRowsRemoved(const QModelIndex &parent, int, int) { return endResetProxy(); -// qDebug() << parent << start << end; Q_Q(KReparentingProxyModel); @@ -1312,7 +1312,7 @@ void KReparentingProxyModelPrivate::sourceRowsRemoved(const QModelIndex &parent, verifyStructure(lastAffectedIndex, lastAffectedRow - 1); } -void KReparentingProxyModelPrivate::sourceRowsAboutToBeMoved(const QModelIndex &parent, int start, int end, const QModelIndex &destParent, int destRow) +void KReparentingProxyModelPrivate::sourceRowsAboutToBeMoved(const QModelIndex &parent, int start, int end, const QModelIndex &, int) { // This could be several individual moves in the proxy model, or it could be no moves at all. // We can get the top indexes of the moved list and move those. @@ -1358,7 +1358,7 @@ void KReparentingProxyModelPrivate::sourceRowsAboutToBeMoved(const QModelIndex & } -void KReparentingProxyModelPrivate::sourceRowsMoved(const QModelIndex &parent, int start, int end, const QModelIndex &destParent, int destRow) +void KReparentingProxyModelPrivate::sourceRowsMoved(const QModelIndex &, int, int, const QModelIndex &, int) { }