diff options
| author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-30 11:56:37 +0000 |
|---|---|---|
| committer | Tarmac <> | 2012-10-30 11:56:37 +0000 |
| commit | 035b6086485dcd3b42abc5d1fab2b155ccd16027 (patch) | |
| tree | 43710ebf85e54277d0d084ac284781b4035a41c8 /tests/client/modeltest.cpp | |
| parent | 4d47b26a31dc1c337b47ded055e5f6613972fc97 (diff) | |
| parent | 307b793ca5deacfde7c787352f54f4f1aebc95e8 (diff) | |
| download | qmenumodel-035b6086485dcd3b42abc5d1fab2b155ccd16027.tar.gz qmenumodel-035b6086485dcd3b42abc5d1fab2b155ccd16027.tar.bz2 qmenumodel-035b6086485dcd3b42abc5d1fab2b155ccd16027.zip | |
Replaced gchar <-> QString convertion function, from Latin1 to Utf8.
Approved by PS Jenkins bot, Olivier Tilloy.
Diffstat (limited to 'tests/client/modeltest.cpp')
| -rw-r--r-- | tests/client/modeltest.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/client/modeltest.cpp b/tests/client/modeltest.cpp index 1c2eeca..93677db 100644 --- a/tests/client/modeltest.cpp +++ b/tests/client/modeltest.cpp @@ -212,7 +212,13 @@ private Q_SLOTS: QCOMPARE(v.type(), QVariant::Map); QCOMPARE(v.toMap(), map); - } + + // Utf8 + v = extra["utf8"]; + QCOMPARE(v.type(), QVariant::String); + QCOMPARE(v.toString(), QString("dança")); + + } /* * Test if model is destroyed without crash |
