Mercurial > projects > qtd
comparison generator/generator.cpp @ 33:cf8a415f3f32
gui package is fully wrapped now. lots of fixes in the generator
author | eldar |
---|---|
date | Sat, 16 May 2009 17:12:06 +0000 |
parents | e78566595089 |
children | ae34188ddd84 |
comparison
equal
deleted
inserted
replaced
32:a293cd68d56c | 33:cf8a415f3f32 |
---|---|
159 if (d_type->isContainer()) { | 159 if (d_type->isContainer()) { |
160 const ContainerTypeEntry* c_entry = static_cast<const ContainerTypeEntry*>(d_type->typeEntry()); | 160 const ContainerTypeEntry* c_entry = static_cast<const ContainerTypeEntry*>(d_type->typeEntry()); |
161 if (c_entry->type() == ContainerTypeEntry::MapContainer || | 161 if (c_entry->type() == ContainerTypeEntry::MapContainer || |
162 c_entry->type() == ContainerTypeEntry::MultiMapContainer || | 162 c_entry->type() == ContainerTypeEntry::MultiMapContainer || |
163 c_entry->type() == ContainerTypeEntry::MapContainer || | 163 c_entry->type() == ContainerTypeEntry::MapContainer || |
164 c_entry->type() == ContainerTypeEntry::MultiHashContainer) | 164 c_entry->type() == ContainerTypeEntry::MultiHashContainer || |
165 c_entry->type() == ContainerTypeEntry::SetContainer) | |
165 return true; | 166 return true; |
166 | 167 |
167 QList<AbstractMetaType *> args = d_type->instantiations(); | 168 QList<AbstractMetaType *> args = d_type->instantiations(); |
168 | 169 |
169 if (args.size() != 1 || args.at(0)->isContainer()) // not QVector or QList | 170 if (args.size() != 1 || args.at(0)->isContainer()) // not QVector or QList |