From e63beeb5bdb82987b1e00bc35178667786fbad48 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 16:20:48 -0600 Subject: Fix incorrect conversion --- qtsharp/src/tests/lookuptest.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'qtsharp/src/tests/lookuptest.cs') diff --git a/qtsharp/src/tests/lookuptest.cs b/qtsharp/src/tests/lookuptest.cs index 1b55d2bf..bfcae6c3 100644 --- a/qtsharp/src/tests/lookuptest.cs +++ b/qtsharp/src/tests/lookuptest.cs @@ -12,28 +12,28 @@ namespace Qt { using Qt; using System; - public class LookupTest : TTQVBox, IDisposable { + public class LookupTest : TQVBox, IDisposable { public LookupTest() : base (null) { - TTQPushButton button = new TTQPushButton ("Quit", this); - TTQPushButton button2 = (TTQPushButton)QtSupport.LookupObject (button.Ptr); // Lookup a child object that exists in C# + TQPushButton button = new TQPushButton ("Quit", this); + TQPushButton button2 = (TQPushButton)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!"); - TTQSize size = button2.SizeHint (); // Wrap a non-C# object. Lookup is called from the C# sizeHint method. - TTQSize size2 = (TTQSize)QtSupport.LookupObject (size.Ptr); + TQSize size = button2.SizeHint (); // Wrap a non-C# object. Lookup is called from the C# sizeHint method. + TQSize size2 = (TQSize)QtSupport.LookupObject (size.Ptr); if (size.GetHashCode () != size2.GetHashCode ()) Console.WriteLine ("ERROR: Hash codes differ for size and size2!"); - Connect (button, TQT_SIGNAL ("clicked()"), TTQObject.qApp, TQT_SLOT ("Quit()")); + Connect (button, TQT_SIGNAL ("clicked()"), TQObject.qApp, TQT_SLOT ("Quit()")); } public static void Main (string[] args) { - TTQApplication a = new TTQApplication (args); + TQApplication a = new TQApplication (args); LookupTest lt = new LookupTest (); a.SetMainWidget (lt); lt.Show (); -- cgit v1.2.1