From 479f5f799523bffbcc83dff581a2299c047c6fff Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:44:01 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtsharp/src/tests/lookuptest.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'qtsharp/src/tests') diff --git a/qtsharp/src/tests/lookuptest.cs b/qtsharp/src/tests/lookuptest.cs index 9882678f..6cfcad3d 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 : QVBox, IDisposable { + public class LookupTest : TQVBox, IDisposable { public LookupTest() : base (null) { - QPushButton button = new QPushButton ("Quit", this); - QPushButton button2 = (QPushButton)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!"); - QSize size = button2.SizeHint (); // Wrap a non-C# object. Lookup is called from the C# sizeHint method. - QSize size2 = (QSize)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, SIGNAL ("clicked()"), QObject.qApp, SLOT ("Quit()")); + Connect (button, TQT_SIGNAL ("clicked()"), TQObject.qApp, TQT_SLOT ("Quit()")); } public static void Main (string[] args) { - QApplication a = new QApplication (args); + TQApplication a = new TQApplication (args); LookupTest lt = new LookupTest (); a.SetMainWidget (lt); lt.Show (); -- cgit v1.2.1