Mercurial > projects > qtd
comparison generator/abstractmetalang.cpp @ 293:8627891e4556 signals
QList updates
author | eldar |
---|---|
date | Fri, 13 Nov 2009 19:09:28 +0000 |
parents | f9559a957be9 |
children | 91ed8edd442e |
comparison
equal
deleted
inserted
replaced
292:19498f420252 | 293:8627891e4556 |
---|---|
1192 return m_property_specs.at(i); | 1192 return m_property_specs.at(i); |
1193 } | 1193 } |
1194 return 0; | 1194 return 0; |
1195 } | 1195 } |
1196 | 1196 |
1197 | 1197 AbstractMetaFunction* AbstractMetaClass::copyConstructor() const |
1198 { | |
1199 AbstractMetaFunctionList ctors = queryFunctions(Constructors); | |
1200 for(int i = 0; i < ctors.size(); i++) | |
1201 { | |
1202 AbstractMetaFunction *ctor = ctors.at(i); | |
1203 if (ctor->arguments().size() > 0) | |
1204 if(ctor->arguments().at(0)->type()->typeEntry() == typeEntry()) | |
1205 return ctor; | |
1206 } | |
1207 | |
1208 return NULL; | |
1209 } | |
1198 | 1210 |
1199 static bool functions_contains(const AbstractMetaFunctionList &l, const AbstractMetaFunction *func) | 1211 static bool functions_contains(const AbstractMetaFunctionList &l, const AbstractMetaFunction *func) |
1200 { | 1212 { |
1201 foreach (const AbstractMetaFunction *f, l) { | 1213 foreach (const AbstractMetaFunction *f, l) { |
1202 if ((f->compareTo(func) & AbstractMetaFunction::PrettySimilar) == AbstractMetaFunction::PrettySimilar) | 1214 if ((f->compareTo(func) & AbstractMetaFunction::PrettySimilar) == AbstractMetaFunction::PrettySimilar) |