summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/generator/ParseAPI.cs
diff options
context:
space:
mode:
Diffstat (limited to 'qtsharp/src/generator/ParseAPI.cs')
-rw-r--r--qtsharp/src/generator/ParseAPI.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/qtsharp/src/generator/ParseAPI.cs b/qtsharp/src/generator/ParseAPI.cs
index a79a8ab9..c6a86182 100644
--- a/qtsharp/src/generator/ParseAPI.cs
+++ b/qtsharp/src/generator/ParseAPI.cs
@@ -35,7 +35,7 @@ namespace QtCSharp {
Parse ();
}
- public ArrayList QTypes
+ public ArrayList TQTypes
{
get {return qtypes;}
}
@@ -47,7 +47,7 @@ namespace QtCSharp {
if (xtr.NodeType != XmlNodeType.EndElement) {
switch(xtr.Name) {
case "qtype":
- QType t = AddQType ();
+ TQType t = AddTQType ();
typehash[t.Name] = t;
continue;
default:
@@ -56,31 +56,31 @@ namespace QtCSharp {
}
}
- foreach (QType t in qtypes) {
- t.IsQObject = IsQObject(t, typehash);
+ foreach (TQType t in qtypes) {
+ t.IsTQObject = IsTQObject(t, typehash);
}
}
- public QType AddQType ()
+ public TQType AddTQType ()
{
Parser parser = new Parser (xtr.ReadOuterXml ());
- QType type = parser.GetQType ();
+ TQType type = parser.GetTQType ();
qtypes.Add (type);
return type;
}
- private static bool IsQObject(QType t, Hashtable typehash)
+ private static bool IsTQObject(TQType t, Hashtable typehash)
{
if (t.IsInterface) return false;
- if (t.Name == "TQObject") return true;
+ if (t.Name == "TTQObject") return true;
- foreach (QAncestor a in t.QAncestors) {
- QType at = (QType)typehash[a.Name];
+ foreach (TQAncestor a in t.TQAncestors) {
+ TQType at = (TQType)typehash[a.Name];
if (at == null)
continue;
- else if (at.Name == "TQObject")
+ else if (at.Name == "TTQObject")
return true;
- else if (IsQObject(at, typehash))
+ else if (IsTQObject(at, typehash))
return true;
}