summaryrefslogtreecommitdiffstats
path: root/profile-widget/tankitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget/tankitem.cpp')
-rw-r--r--profile-widget/tankitem.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp
index ff05ec1d0..2e2de6139 100644
--- a/profile-widget/tankitem.cpp
+++ b/profile-widget/tankitem.cpp
@@ -89,9 +89,7 @@ void TankItem::modelDataChanged(const QModelIndex&, const QModelIndex&)
return;
// remove the old rectangles
- foreach (QGraphicsRectItem *r, rects) {
- delete(r);
- }
+ qDeleteAll(rects);
rects.clear();
qreal width, left;