| 163 | } |
| 164 | |
| 165 | void testAssociativeContainer() |
| 166 | { |
| 167 | QHash<QString, int> h; |
| 168 | h["A"] = 2; |
| 169 | h["B"] = 3; |
| 170 | h["C"] = 5; |
| 171 | |
| 172 | auto adaptor = PropertyAdaptorFactory::create(ObjectInstance(QVariant::fromValue(h)), this); |
| 173 | |
| 174 | QVERIFY(adaptor); |
| 175 | QCOMPARE(adaptor->count(), 3); |
| 176 | verifyPropertyData(adaptor); |
| 177 | testProperty(adaptor, "A", "int", "QHash<QString,int>", PropertyData::Readable); |
| 178 | testProperty(adaptor, "C", "int", "QHash<QString,int>", PropertyData::Readable); |
| 179 | QVERIFY(!adaptor->canAddProperty()); |
| 180 | } |
| 181 | |
| 182 | void testQtObject() |
| 183 | { |
nothing calls this directly
no test coverage detected