From a7a02268a0236b83710a3785f15b1bf09cd721d3 Mon Sep 17 00:00:00 2001 From: Gareth Stockwell Date: Fri, 9 Apr 2010 09:14:27 +0100 Subject: Updated qtbench to build against modified QStaticText API 3cebc028 replaced QStaticText::setMaximumSize with QStaticText::setTextWidth. Reviewed-by: Eskil Abrahamsen Blomfeldt --- tests/benchmarks/gui/painting/qtbench/benchmarktests.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/benchmarks/gui/painting/qtbench/benchmarktests.h b/tests/benchmarks/gui/painting/qtbench/benchmarktests.h index 362d121..824825b 100644 --- a/tests/benchmarks/gui/painting/qtbench/benchmarktests.h +++ b/tests/benchmarks/gui/painting/qtbench/benchmarktests.h @@ -540,7 +540,7 @@ public: case StaticTextWithMaximumSizeMode: { QStaticText staticText; m_size = (p->boundingRect(m_bounds, 0, m_text)).size(); - staticText.setMaximumSize(m_size + QSize(10, 10)); + staticText.setTextWidth(m_size.width() + 10); staticText.setText(m_text); staticText.prepare(p->transform(), p->font()); m_staticTexts.append(staticText); @@ -551,7 +551,7 @@ public: for (int i=0; itransform(), p->font()); m_staticTexts.append(staticText); -- cgit v0.12