Remove unused variable/code

Pick-to: 6.5
Change-Id: I8d28db64c1ae2c57c95b2f9f22303d74172226e9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Amir Masoud Abdol 2023-04-06 17:46:21 +02:00
parent f00280337b
commit 9db9a836fb
2 changed files with 0 additions and 7 deletions

View File

@ -48,7 +48,6 @@ void MainWindow::populateScene()
// Populate scene
int xx = 0;
int nitems = 0;
for (int i = -11000; i < 11000; i += 110) {
++xx;
int yy = 0;
@ -61,8 +60,6 @@ void MainWindow::populateScene()
QGraphicsItem *item = new Chip(color, xx, yy);
item->setPos(QPointF(i, j));
scene->addItem(item);
++nitems;
}
}
}

View File

@ -311,8 +311,6 @@ void PieView::paintEvent(QPaintEvent *event)
}
painter.restore();
int keyNumber = 0;
for (row = 0; row < model()->rowCount(rootIndex()); ++row) {
QModelIndex index = model()->index(row, 1, rootIndex());
double value = model()->data(index).toDouble();
@ -329,8 +327,6 @@ void PieView::paintEvent(QPaintEvent *event)
if (currentIndex() == labelIndex)
option.state |= QStyle::State_HasFocus;
itemDelegate()->paint(&painter, option, labelIndex);
++keyNumber;
}
}
}