From cf86ece73e6bc7fed2b251791f5e7e6103ee25cf Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Wed, 3 Apr 2019 20:25:35 +0200 Subject: use qDeleteAll() Signed-off-by: Rolf Eike Beer --- profile-widget/tankitem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'profile-widget') 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; -- cgit v1.2.3-70-g09d2