diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /qtsharp/src/generator/Converter.cs | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 143aa9da..8f6ce3b0 100644 --- a/qtsharp/src/generator/Converter.cs +++ b/qtsharp/src/generator/Converter.cs @@ -100,7 +100,7 @@ namespace QtCSharp { { sig.Append (qctor.Name); foreach (QParam qparam in qctor.CSharpParams) { - //if (qparam.Type == "QWidget" && 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 (IsIQObject (qparam.Type)) qparam.Name = qparam.Name + "." + StripInterface (qparam.Type) + " ()"; /* if (IsQString (qparam.Type)) - qparam.Name = "new QString ("+StripPtr(qparam.Name)+").RawObject";*/ + qparam.Name = "new TQString ("+StripPtr(qparam.Name)+").RawObject";*/ qparam.Type = ""; } } @@ -189,8 +189,8 @@ namespace QtCSharp { public void OverloadedQString (QParam qparam) { if (IsQString (qparam.Type)){ - qparam.Type = "QString"; - if (qparam.Default == "QString::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 == "QString") { + if (qmethod.Return == "TQString") { qmethod.QStringReturn = true; } } @@ -312,7 +312,7 @@ namespace QtCSharp { public string ConvertQString (string str) { if (IsQString (str)) - return "QString"; + return "TQString"; else return str; } @@ -417,9 +417,9 @@ namespace QtCSharp { public bool IsQString (string str) { - if (qtype.Name == "QString") + if (qtype.Name == "TQString") return true; - else if (IsQObject (str) && str == "QString") + else if (IsQObject (str) && str == "TQString") return true; else return false; |