summaryrefslogtreecommitdiff
path: root/tests/auto/testplugin
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-06-27 15:03:21 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-27 15:37:36 +0200
commit299dc3b6ef851ede8d0da28257520009ca0d0bba (patch)
tree0b216cdc0a4e407e3db668bab092335a8c2125b4 /tests/auto/testplugin
parent814f5a9ebb8c6287b53438e83f5d4fec6b68089d (diff)
downloadqtquickcontrols-299dc3b6ef851ede8d0da28257520009ca0d0bba.tar.gz
Make ComboBox work with variant list
Task-number: QTBUG-31992 Change-Id: If63c762cf3789ca1353dd40e7059f2d334e2dbe3 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'tests/auto/testplugin')
-rw-r--r--tests/auto/testplugin/testplugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/testplugin/testplugin.cpp b/tests/auto/testplugin/testplugin.cpp
index df8e6e1c..2e4b651d 100644
--- a/tests/auto/testplugin/testplugin.cpp
+++ b/tests/auto/testplugin/testplugin.cpp
@@ -68,4 +68,9 @@ void TestPlugin::initializeEngine(QQmlEngine *engine, const char * /*uri*/)
model_qstringlist << QStringLiteral("C");
engine->rootContext()->setContextProperty("model_qstringlist", model_qstringlist);
+ QList<QVariant> model_qvarlist;
+ model_qvarlist << 3;
+ model_qvarlist << 2;
+ model_qvarlist << 1;
+ engine->rootContext()->setContextProperty("model_qvarlist", model_qvarlist);
}