diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-09-12 16:28:34 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-09-12 16:28:34 -0300 |
commit | d2e99cfb78dfcdad000faf9c1c7d4e5a40d53f95 (patch) | |
tree | e177d5cffa1cd97a82c294449f9eb676577b0dbf /tests | |
parent | 48e027ef11b7b09c20a6362e1768f909ea250815 (diff) | |
download | qmenumodel-d2e99cfb78dfcdad000faf9c1c7d4e5a40d53f95.tar.gz qmenumodel-d2e99cfb78dfcdad000faf9c1c7d4e5a40d53f95.tar.bz2 qmenumodel-d2e99cfb78dfcdad000faf9c1c7d4e5a40d53f95.zip |
Parse extra properties name to remove 'x-' and replace '-' to '_'.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client/modeltest.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/client/modeltest.cpp b/tests/client/modeltest.cpp index 9c092f1..4cf7f54 100644 --- a/tests/client/modeltest.cpp +++ b/tests/client/modeltest.cpp @@ -147,52 +147,52 @@ private Q_SLOTS: QObject *extra = e.value<QObject*>(); // Boolean - QVariant v = extra->property("x-boolean"); + QVariant v = extra->property("boolean"); QCOMPARE(v.type(), QVariant::Bool); QCOMPARE(v.toBool(), true); // Byte - v = extra->property("x-byte"); + v = extra->property("byte"); QCOMPARE(v.typeName(), "uchar"); QCOMPARE(v.value<uchar>(), (uchar)42); // Int16 - v = extra->property("x-int16"); + v = extra->property("int16"); QCOMPARE(v.typeName(), "short"); QCOMPARE(v.value<short>(), (short)-42); // UInt16 - v = extra->property("x-uint16"); + v = extra->property("uint16"); QCOMPARE(v.typeName(), "ushort"); QCOMPARE(v.value<ushort>(), (ushort)42); // Int32 - v = extra->property("x-int32"); + v = extra->property("int32"); QCOMPARE(v.type(), QVariant::Int); QCOMPARE(v.toInt(), -42); // UInt32 - v = extra->property("x-uint32"); + v = extra->property("uint32"); QCOMPARE(v.type(), QVariant::UInt); QCOMPARE(v.toUInt(), (uint) 42); // Int64 - v = extra->property("x-int64"); + v = extra->property("int64"); QCOMPARE(v.typeName(), "long"); QCOMPARE(v.value<long>(), (long) -42); // UInt64 - v = extra->property("x-uint64"); + v = extra->property("uint64"); QCOMPARE(v.typeName(), "ulong"); QCOMPARE(v.value<ulong>(), (ulong) 42); // Double - v = extra->property("x-double"); + v = extra->property("double"); QCOMPARE(v.type(), QVariant::Double); QCOMPARE(v.toDouble(), 42.42); // String - v = extra->property("x-string"); + v = extra->property("string"); QCOMPARE(v.type(), QVariant::String); QCOMPARE(v.toString(), QString("42")); } |