aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2020-06-30 12:05:03 +0200
committerMitch Curtis <mitch.curtis@qt.io>2020-06-30 17:56:17 +0200
commit0000e502a401fb6d44fbf6f52435ba4b6343dd83 (patch)
treed602c1d0a7e74ac9143e84b3227f9a3aabe37c68 /tests
parent11355ac0afafcb2b9f6a4242f5a4803745220dda (diff)
tst_designer: fix QByteArray::append() compile error
The overload taking a QString was removed, but is equivalent to passing the result of toUtf8(). Change-Id: I6edbbc78ce20eb1ed23dc77583342fc31ec86408 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/designer/tst_designer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/designer/tst_designer.cpp b/tests/auto/designer/tst_designer.cpp
index 2c67c2c6..0d8bc73b 100644
--- a/tests/auto/designer/tst_designer.cpp
+++ b/tests/auto/designer/tst_designer.cpp
@@ -101,7 +101,7 @@ void tst_Designer::test_controls()
"Item {\n");
QByteArray source = before;
- source.append(type);
+ source.append(type.toUtf8());
const QByteArray after(" {"
"}\n"