summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Rolf Eike Beer <eike@sf-mail.de>2019-04-03 20:25:35 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 12:59:17 +0300
commitcf86ece73e6bc7fed2b251791f5e7e6103ee25cf (patch)
tree4cd460772f6319ab3cf39b58b8d869fdb1cc35d7 /profile-widget
parente3d43b5696d9aede430594fd4304d54d80bd7fac (diff)
downloadsubsurface-cf86ece73e6bc7fed2b251791f5e7e6103ee25cf.tar.gz
use qDeleteAll()
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'profile-widget')
-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;