summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /qtsharp/src/tests
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz
tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ();