summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'qtsharp/src/tests')
-rw-r--r--qtsharp/src/tests/lookuptest.cs14
1 files changed, 7 insertions, 7 deletions
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 ();