Remove unused method arguments.

wilder
Stephen Kelly 11 years ago
parent 32f6a09917
commit 90c712e40f
  1. 10
      autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp
  2. 12
      autotests/proxymodeltestapp/kreparentingproxymodel.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);
}

@ -793,7 +793,7 @@ QHash<QModelIndex, QModelIndexList> KReparentingProxyModelPrivate::mergeDescenda
return mappings;
}
QHash<QModelIndex, QModelIndexList> KReparentingProxyModelPrivate::insertTree(QHash<QModelIndex, QModelIndexList> mappings, const QModelIndex &parent)
QHash<QModelIndex, QModelIndexList> KReparentingProxyModelPrivate::insertTree(QHash<QModelIndex, QModelIndexList>, const QModelIndex &)
{
return QHash<QModelIndex, QModelIndexList>();
@ -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)
{
}

Loading…
Cancel
Save