diff options
Diffstat (limited to 'qtsharp/src/tests')
-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 (); |