Remove unused variables.

wilder
Stephen Kelly 11 years ago
parent 90c712e40f
commit eba8d4f5af
  1. 2
      autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp
  2. 6
      autotests/proxymodeltestapp/kreparentingproxymodel.cpp
  3. 2
      autotests/proxymodeltestapp/modelcommanderwidget.cpp

@ -269,7 +269,7 @@ BreadcrumbNavigationWidget::BreadcrumbNavigationWidget(QWidget *parent, Qt::Wind
currentItemSelectionModel->setSourceModel(rootModel);
SON(currentItemSelectionModel);
CurrentItemLabel *label = new CurrentItemLabel(currentItemSelectionModel, vSplitter);
new CurrentItemLabel(currentItemSelectionModel, vSplitter);
QListView *selectionView = new QListView(vSplitter);

@ -495,7 +495,6 @@ QModelIndex KReparentingProxyModel::mapFromSource(const QModelIndex &sourceIndex
QList<QPersistentModelIndex> list = it.value();
if (list.contains(sourceIndexFirstColumn)) {
QModelIndex sourceParent = it.key();
QModelIndex proxyParent = mapFromSource(sourceParent);
int row = list.indexOf(sourceIndexFirstColumn);
// There must have been a mapping made for it.
@ -1320,9 +1319,6 @@ void KReparentingProxyModelPrivate::sourceRowsAboutToBeMoved(const QModelIndex &
Q_Q(KReparentingProxyModel);
QModelIndex proxySourceParent = q->mapFromSource(parent);
QModelIndex proxyDestinationParent = q->mapFromSource(destParent);
// I could look at the indexes between start and end (proxied could be several blocks), and move them to dest.
// Then verify structure.
// This could lead to an illegal move.
@ -1431,8 +1427,6 @@ void KReparentingProxyModelPrivate::emitDataChangedSignals(const QModelIndex &st
QModelIndex proxyParent = startIndex.parent();
const int column = 0;
int numChanged = 1;
QModelIndex lastAffectedSibling = startIndex;

@ -63,7 +63,7 @@ void ModelCommanderWidget::init()
Q_ARG(QString, QString()));
Q_FOREACH (const QString &testRun, testData) {
QTreeWidgetItem *testDataItem = new QTreeWidgetItem(testFunctionItem, QStringList() << testRun);
new QTreeWidgetItem(testFunctionItem, QStringList() << testRun);
}
}
}

Loading…
Cancel
Save