File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ private void DocumentQtProperty(Declaration property)
337
337
}
338
338
339
339
var node = this . propertyNodes [ property . Name ] . Find (
340
- c => c . Attribute ( "fullname" ) . Value == property . QualifiedName ) ;
340
+ c => c . Attribute ( "fullname" ) . Value == property . QualifiedOriginalName ) ;
341
341
if ( node != null && node . Attribute ( "href" ) != null )
342
342
{
343
343
var link = node . Attribute ( "href" ) . Value . Split ( '#' ) ;
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ public override void CSharpMarshalToNative(MarshalContext ctx)
41
41
{
42
42
Type . TryGetClass ( out @class ) ;
43
43
}
44
- var qualifiedIdentifier = CSharpMarshalNativeToManagedPrinter . QualifiedIdentifier ( @class . OriginalClass ?? @class ) ;
44
+ typePrinter = typePrinter ?? ( typePrinter = new CSharpTypePrinter ( ctx . Driver ) ) ;
45
+ var qualifiedIdentifier = ( @class . OriginalClass ?? @class ) . Visit ( typePrinter ) ;
45
46
ctx . Return . Write ( "ReferenceEquals(__qstring{0}, null) ? new {1}.Internal() : *({1}.Internal*) (__qstring{0}.{2})" ,
46
47
ctx . ParameterIndex , qualifiedIdentifier , Helpers . InstanceIdentifier ) ;
47
48
}
@@ -51,5 +52,7 @@ public override void CSharpMarshalToManaged(MarshalContext ctx)
51
52
ctx . Return . Write ( "Marshal.PtrToStringUni(new IntPtr(QtCore.QString.{0}({1}).Utf16))" ,
52
53
Helpers . CreateInstanceIdentifier , ctx . ReturnVarName ) ;
53
54
}
55
+
56
+ CSharpTypePrinter typePrinter ;
54
57
}
55
58
}
You can’t perform that action at this time.
0 commit comments