summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/generator/Printer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'qtsharp/src/generator/Printer.cs')
-rw-r--r--qtsharp/src/generator/Printer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/qtsharp/src/generator/Printer.cs b/qtsharp/src/generator/Printer.cs
index c4f6df87..cdf705fe 100644
--- a/qtsharp/src/generator/Printer.cs
+++ b/qtsharp/src/generator/Printer.cs
@@ -390,7 +390,7 @@ namespace QtCSharp {
string newid = id == "0" ? "" : id;
if (boxer && qstring) {
- ret = "\t\t\treturn new QString (qt_"+type+"_"+name+newid+" ("+instPtr+comma+Params (qparams)+"));\n";
+ ret = "\t\t\treturn new TQString (qt_"+type+"_"+name+newid+" ("+instPtr+comma+Params (qparams)+"));\n";
}
else if (boxer) {
ret = "\t\t\treturn LookupObject (qt_"+type+"_"+name+newid+" ("+instPtr+comma+Params (qparams)+"), typeof ("+ReturnType+")) as "+ReturnType+";";
@@ -416,7 +416,7 @@ namespace QtCSharp {
string newid = id == "0" ? "" : id;
if (boxer && qstring) {
- ret = "\t\t\treturn new QString (qt_"+type+"_"+name+newid+" ("+Params (qparams)+"));\n";
+ ret = "\t\t\treturn new TQString (qt_"+type+"_"+name+newid+" ("+Params (qparams)+"));\n";
}
else if (boxer) {
ret = "\t\t\treturn LookupObject (qt_"+type+"_"+name+newid+" ("+Params (qparams)+"), typeof ("+ReturnType+")) as "+ReturnType+";\n";
@@ -518,7 +518,7 @@ namespace QtCSharp {
public string DefaultConnections ()
{
if (qtype.IsQObject)
- return "\n\t\t\tConnect (this, SIGNAL (\"destroyed ()\"), SLOT (\"NativeDestroyed ()\"));";
+ return "\n\t\t\tConnect (this, TQT_SIGNAL (\"destroyed ()\"), TQT_SLOT (\"NativeDestroyed ()\"));";
else
return "";
}