summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/gui
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2012-02-10 20:42:13 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-08 17:22:56 +0200
commit101d04681f4ceb7410681eae684534a206a9d90a (patch)
treebb037f84ac82fc9431a72ed7ec9ecdff18ddef7c /tests/benchmarks/gui
parent0e8a2788d84c814b698848b699af8a2c8ba3179f (diff)
Handle additional format ranges when itemizing.
This is useful when the additional formats are used on a text layout using a raw font. It can also come in handy for input methods operating on a QTextDocument. We now consider all format range edges to generate the associated items. The capitalization can be overridden via the additionnal formats mechanism. Adds an autotest that checks that this works with font capitalization. Change-Id: I782d2c48d05b0dfbad480a9ca77198465292b358 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'tests/benchmarks/gui')
-rw-r--r--tests/benchmarks/gui/text/qtext/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmarks/gui/text/qtext/main.cpp b/tests/benchmarks/gui/text/qtext/main.cpp
index 543b9041da..c9d5d59891 100644
--- a/tests/benchmarks/gui/text/qtext/main.cpp
+++ b/tests/benchmarks/gui/text/qtext/main.cpp
@@ -362,7 +362,7 @@ void tst_QText::formattedLayout_data()
ranges.append(formatRange);
}
- QTest::newRow("long-many") << m_shortLorem << ranges;
+ QTest::newRow("long-many") << text << ranges;
}
}