summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/text/qtextformat
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-23 10:04:16 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-25 10:13:12 +0200
commitd1612610e650ffd7f2fbdef535c431647f57f0ac (patch)
tree6545a46b6aa7e5f89d7b2abcb959a78fa4c114ed /tests/auto/gui/text/qtextformat
parent8cd3ec4ee43365425be584a48ff2871bd0090ef8 (diff)
Use QList instead of QVector in gui tests
Task-number: QTBUG-84469 Change-Id: Ia86f39597de418dde6cd9ae3170ef919bd27416a Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/gui/text/qtextformat')
-rw-r--r--tests/auto/gui/text/qtextformat/tst_qtextformat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/gui/text/qtextformat/tst_qtextformat.cpp b/tests/auto/gui/text/qtextformat/tst_qtextformat.cpp
index 4e5ef7c555..7548dbb8e4 100644
--- a/tests/auto/gui/text/qtextformat/tst_qtextformat.cpp
+++ b/tests/auto/gui/text/qtextformat/tst_qtextformat.cpp
@@ -155,7 +155,7 @@ void tst_QTextFormat::testUnderlinePropertyPrecedence()
QCOMPARE(format.fontUnderline(), false);
QCOMPARE(format.font().underline(), false);
- // do it again, but reverse the ordering (we use a QVector internally, so test a LOT ;)
+ // do it again, but reverse the ordering (we use a QList internally, so test a LOT ;)
// create conflict. Should use the new property
format.setProperty(QTextCharFormat::FontUnderline, false);
format.setProperty(QTextCharFormat::TextUnderlineStyle, QTextCharFormat::SingleUnderline);
@@ -210,7 +210,7 @@ void tst_QTextFormat::resolveFont()
fmt.setProperty(QTextFormat::FontItalic, true);
QTextCursor(&doc).insertText("Test", fmt);
- QVector<QTextFormat> formats = doc.allFormats();
+ QList<QTextFormat> formats = doc.allFormats();
QCOMPARE(formats.count(), 3);
QCOMPARE(formats.at(2).type(), int(QTextFormat::CharFormat));