diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /qtsharp/src/tests | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-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.cs | 14 |
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 (); |