diff options
Diffstat (limited to 'tests/benchmarks/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp')
-rw-r--r-- | tests/benchmarks/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/benchmarks/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp index b8684610a8..7556864ded 100644 --- a/tests/benchmarks/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/benchmarks/widgets/graphicsview/qgraphicsitem/tst_qgraphicsitem.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <qtest.h> #include <QGraphicsItem> @@ -34,7 +34,6 @@ private slots: void shear(); void translate(); void createTextItem(); - void createTextItemZeroWidth(); void createTextItemNoLayouting(); }; @@ -219,23 +218,6 @@ void tst_QGraphicsItem::createTextItem() } } -void tst_QGraphicsItem::createTextItemZeroWidth() -{ - // Ensure QFontDatabase loaded the font beforehand - QFontInfo(qApp->font()).family(); - const QString text = "This is some text"; - QBENCHMARK { - QGraphicsTextItem item; - item.document()->setTextWidth(0); - // Prepare everything - item.setPlainText(text); - QTextOption option = item.document()->defaultTextOption(); - option.setAlignment(Qt::AlignHCenter); - item.document()->setDefaultTextOption(option); - // And (in a real app) set actual text width here - } -} - void tst_QGraphicsItem::createTextItemNoLayouting() { // Ensure QFontDatabase loaded the font beforehand |