diff options
author | Timothy Pearson <[email protected]> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtsharp/src/tests/lookuptest.cs | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'qtsharp/src/tests/lookuptest.cs')
-rw-r--r-- | qtsharp/src/tests/lookuptest.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qtsharp/src/tests/lookuptest.cs b/qtsharp/src/tests/lookuptest.cs index 6cfcad3d..1b55d2bf 100644 --- a/qtsharp/src/tests/lookuptest.cs +++ b/qtsharp/src/tests/lookuptest.cs @@ -1,5 +1,5 @@ // Demonstrates that auto-boxing of foreign C++ objects works. -// Set QTCSHARP_DEBUG to true in your environment to see this work. +// Set TQTCSHARP_DEBUG to true in your environment to see this work. // // TODO // o Turn this into an nunit test. @@ -12,28 +12,28 @@ namespace Qt { using Qt; using System; - public class LookupTest : TQVBox, IDisposable { + public class LookupTest : TTQVBox, IDisposable { public LookupTest() : base (null) { - TQPushButton button = new TQPushButton ("Quit", this); - TQPushButton button2 = (TQPushButton)QtSupport.LookupObject (button.Ptr); // Lookup a child object that exists in C# + TTQPushButton button = new TTQPushButton ("Quit", this); + TTQPushButton button2 = (TTQPushButton)QtSupport.LookupObject (button.Ptr); // Lookup a child object that exists in C# if (button.GetHashCode () != button2.GetHashCode ()) Console.WriteLine ("ERROR: Hash codes differ for button and button2!"); - TQSize size = button2.SizeHint (); // Wrap a non-C# object. Lookup is called from the C# sizeHint method. - TQSize size2 = (TQSize)QtSupport.LookupObject (size.Ptr); + TTQSize size = button2.SizeHint (); // Wrap a non-C# object. Lookup is called from the C# sizeHint method. + TTQSize size2 = (TTQSize)QtSupport.LookupObject (size.Ptr); if (size.GetHashCode () != size2.GetHashCode ()) Console.WriteLine ("ERROR: Hash codes differ for size and size2!"); - Connect (button, TQT_SIGNAL ("clicked()"), TQObject.qApp, TQT_SLOT ("Quit()")); + Connect (button, TQT_SIGNAL ("clicked()"), TTQObject.qApp, TQT_SLOT ("Quit()")); } public static void Main (string[] args) { - TQApplication a = new TQApplication (args); + TTQApplication a = new TTQApplication (args); LookupTest lt = new LookupTest (); a.SetMainWidget (lt); lt.Show (); |