From 8d99d38785c0e4b9fd45be415a287a01bf016ef4 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 28 Mar 2025 09:45:33 +0100 Subject: [PATCH] tst_QGraphicsWidget: remove unused object from qgraphicswidget() The QGraphicsScene object wasn't used, so can be removed. Make it so. Seems to amend the start of the public history (and if there was a user that has since been removed, we'll get a compile error, so no need to data-mine the git history further). Pick-to: 6.8 6.5 5.15 Change-Id: I9eeacde057ee5681ea86c185b66dff618a6f364e Reviewed-by: Axel Spoerl (cherry picked from commit 235fe36de7d8789cf6f5a393df01337a59874901) Reviewed-by: Qt Cherry-pick Bot --- .../widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp b/tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp index a5841c1882c..e6d6ed9f82d 100644 --- a/tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp +++ b/tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp @@ -289,7 +289,6 @@ void tst_QGraphicsWidget::qgraphicswidget() QCOMPARE(widget.call_propertyChange(QString(), QVariant()), QVariant()); widget.call_sizeHint(Qt::PreferredSize, QSizeF()); - QGraphicsScene scene; QGraphicsWidget *parent = new QGraphicsWidget; SizeHinter *child = new SizeHinter(parent);