Reworked signal connection system, added support for Callable and Signal objects and made them default.
This commit is contained in:
committed by
Juan Linietsky
parent
1a4be2cd8f
commit
69c95f4b4c
@@ -533,7 +533,7 @@ void DocData::generate(bool p_basic_types) {
|
||||
ClassDoc &c = class_list[cname];
|
||||
c.name = cname;
|
||||
|
||||
Variant::CallError cerror;
|
||||
Callable::CallError cerror;
|
||||
Variant v = Variant::construct(Variant::Type(i), NULL, 0, cerror);
|
||||
|
||||
List<MethodInfo> method_list;
|
||||
@@ -562,11 +562,12 @@ void DocData::generate(bool p_basic_types) {
|
||||
method.arguments.push_back(ad);
|
||||
}
|
||||
|
||||
if (mi.return_val.type == Variant::NIL) {
|
||||
if (mi.return_val.name != "")
|
||||
method.return_type = "Variant";
|
||||
} else {
|
||||
method.return_type = Variant::get_type_name(mi.return_val.type);
|
||||
return_doc_from_retinfo(method, mi.return_val);
|
||||
|
||||
if (mi.flags & METHOD_FLAG_VARARG) {
|
||||
if (method.qualifiers != "")
|
||||
method.qualifiers += " ";
|
||||
method.qualifiers += "vararg";
|
||||
}
|
||||
|
||||
c.methods.push_back(method);
|
||||
|
||||
Reference in New Issue
Block a user