summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/gui/painting/qtbench
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-04-09 08:14:27 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-04-09 08:14:27 (GMT)
commita7a02268a0236b83710a3785f15b1bf09cd721d3 (patch)
tree36f79a8e12fb60d78b10e975b091028a69515dff /tests/benchmarks/gui/painting/qtbench
parent9d04b6f458a69108aa46f8c06be6f1ca9a10aaa9 (diff)
downloadQt-a7a02268a0236b83710a3785f15b1bf09cd721d3.zip
Qt-a7a02268a0236b83710a3785f15b1bf09cd721d3.tar.gz
Qt-a7a02268a0236b83710a3785f15b1bf09cd721d3.tar.bz2
Updated qtbench to build against modified QStaticText API
3cebc028 replaced QStaticText::setMaximumSize with QStaticText::setTextWidth. Reviewed-by: Eskil Abrahamsen Blomfeldt
Diffstat (limited to 'tests/benchmarks/gui/painting/qtbench')
-rw-r--r--tests/benchmarks/gui/painting/qtbench/benchmarktests.h4
1 files 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; i<iterations; ++i) {
QStaticText staticText;
staticText.setPerformanceHint(QStaticText::AggressiveCaching);
- 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);