aboutsummaryrefslogtreecommitdiff
path: root/tests/client/modeltest.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-22 17:39:25 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-22 17:39:25 -0300
commitc37748989142ae4f9ee1e1cab4cbcff605302970 (patch)
treec5dc194b48352dd1902083fccf6c5e4be3189bb8 /tests/client/modeltest.cpp
parent04391e9723278f8bb0a0985abd50aa9c3455980d (diff)
downloadqmenumodel-c37748989142ae4f9ee1e1cab4cbcff605302970.tar.gz
qmenumodel-c37748989142ae4f9ee1e1cab4cbcff605302970.tar.bz2
qmenumodel-c37748989142ae4f9ee1e1cab4cbcff605302970.zip
Implemented support to tuple conversions.
Diffstat (limited to 'tests/client/modeltest.cpp')
-rw-r--r--tests/client/modeltest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/client/modeltest.cpp b/tests/client/modeltest.cpp
index c6b2f0e..1b0ea95 100644
--- a/tests/client/modeltest.cpp
+++ b/tests/client/modeltest.cpp
@@ -218,6 +218,12 @@ private Q_SLOTS:
QCOMPARE(v.type(), QVariant::String);
QCOMPARE(v.toString(), QString("dança"));
+ // Tuple
+ v = extra["tuple"];
+ QVariantList lst;
+ lst << "1" << 2 << 3.3;
+ QCOMPARE(v.type(), QVariant::List);
+ QCOMPARE(v.toList(), lst);
}
/*