diff options
Diffstat (limited to 'qtsharp/src/generator/Converter.cs')
-rw-r--r-- | qtsharp/src/generator/Converter.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qtsharp/src/generator/Converter.cs b/qtsharp/src/generator/Converter.cs index f6bbf06e..74cd3213 100644 --- a/qtsharp/src/generator/Converter.cs +++ b/qtsharp/src/generator/Converter.cs @@ -100,7 +100,7 @@ namespace QtCSharp { { sig.Append (qctor.Name); foreach (TQParam qparam in qctor.CSharpParams) { - //if (qparam.Type == "TTQWidget" && qparam.Name == "parent") + //if (qparam.Type == "TQWidget" && qparam.Name == "parent") if (qparam.Name == "parent") qctor.Parent = true; sig.Append (qparam.Type); @@ -137,7 +137,7 @@ namespace QtCSharp { if (IsITQObject (qparam.Type)) qparam.Name = qparam.Name + "." + StripInterface (qparam.Type) + " ()"; /* if (IsTQString (qparam.Type)) - qparam.Name = "new TTQString ("+StripPtr(qparam.Name)+").RawObject";*/ + qparam.Name = "new TQString ("+StripPtr(qparam.Name)+").RawObject";*/ qparam.Type = ""; } } @@ -189,8 +189,8 @@ namespace QtCSharp { public void OverloadedTQString (TQParam qparam) { if (IsTQString (qparam.Type)){ - qparam.Type = "TTQString"; - if (qparam.Default == "TTQString::null") + qparam.Type = "TQString"; + if (qparam.Default == "TQString::null") qparam.Default = "null"; else if (qparam.Default == "quotquot") qparam.Default = "null"; @@ -286,7 +286,7 @@ namespace QtCSharp { } else { qmethod.PinvokeReturn = qmethod.Return; } - if (qmethod.Return == "TTQString") { + if (qmethod.Return == "TQString") { qmethod.TQStringReturn = true; } } @@ -312,7 +312,7 @@ namespace QtCSharp { public string ConvertTQString (string str) { if (IsTQString (str)) - return "TTQString"; + return "TQString"; else return str; } @@ -417,9 +417,9 @@ namespace QtCSharp { public bool IsTQString (string str) { - if (qtype.Name == "TTQString") + if (qtype.Name == "TQString") return true; - else if (IsTQObject (str) && str == "TTQString") + else if (IsTQObject (str) && str == "TQString") return true; else return false; |