@@ -56,10 +56,14 void ShellHeaderGenerator::writeFieldAccessors(QTextStream &s, const AbstractMet | |||
|
56 | 56 | { |
|
57 | 57 | const AbstractMetaFunction *setter = field->setter(); |
|
58 | 58 | const AbstractMetaFunction *getter = field->getter(); |
|
59 | ||
|
60 | // Uuid data4 did not work | |
|
59 | ||
|
60 | // static fields are not supported (yet?) | |
|
61 | if (setter->isStatic()) return; | |
|
62 | ||
|
63 | // Uuid data4 did not work (TODO: move to typesystem...( | |
|
61 | 64 | if (field->enclosingClass()->name()=="QUuid" && setter->name()=="data4") return; |
|
62 | ||
|
65 | if (field->enclosingClass()->name()=="QIPv6Address") return; | |
|
66 | ||
|
63 | 67 | if (!field->type()->isConstant()) { |
|
64 | 68 | writeFunctionSignature(s, setter, 0, QString(), |
|
65 | 69 | Option(ConvertReferenceToPtr | FirstArgIsWrappedObject| IncludeDefaultExpression | ShowStatic | UnderscoreSpaces)); |
@@ -174,10 +174,13 void ShellImplGenerator::write(QTextStream &s, const AbstractMetaClass *meta_cla | |||
|
174 | 174 | if (fun->isAbstract()) { |
|
175 | 175 | if (fun->type()) { |
|
176 | 176 | // return empty default object |
|
177 | writeTypeInfo(s, fun->type(), typeOptions); | |
|
178 | s << " result;" << endl; | |
|
179 |
s << " |
|
|
180 |
|
|
|
177 | s << "return "; | |
|
178 | if (fun->type()->indirections()>0) { | |
|
179 | s << "0;"; | |
|
180 | } else { | |
|
181 | writeTypeInfo(s, fun->type(), typeOptions); | |
|
182 | s << "();"; | |
|
183 | } | |
|
181 | 184 | } |
|
182 | 185 | } else { |
|
183 | 186 | if (fun->type()) { |
General Comments 0
You need to be logged in to leave comments.
Login now