| 150 | } |
| 151 | |
| 152 | void testSequentialContainer() |
| 153 | { |
| 154 | auto v = QList<int>() << 2 << 3 << 5 << 12; |
| 155 | auto adaptor = PropertyAdaptorFactory::create(ObjectInstance(QVariant::fromValue(v)), this); |
| 156 | |
| 157 | QVERIFY(adaptor); |
| 158 | QCOMPARE(adaptor->count(), 4); |
| 159 | verifyPropertyData(adaptor); |
| 160 | testProperty(adaptor, "0", "int", "QList<int>", PropertyData::Readable); |
| 161 | testProperty(adaptor, "3", "int", "QList<int>", PropertyData::Readable); |
| 162 | QVERIFY(!adaptor->canAddProperty()); |
| 163 | } |
| 164 | |
| 165 | void testAssociativeContainer() |
| 166 | { |
nothing calls this directly
no test coverage detected