summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/examples/samples/hello.cs
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/examples/samples/hello.cs
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/examples/samples/hello.cs')
-rw-r--r--qtsharp/src/examples/samples/hello.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/qtsharp/src/examples/samples/hello.cs b/qtsharp/src/examples/samples/hello.cs
index db6890e5..1039aa34 100644
--- a/qtsharp/src/examples/samples/hello.cs
+++ b/qtsharp/src/examples/samples/hello.cs
@@ -11,11 +11,11 @@ namespace QtSamples {
using Qt;
using System;
- public class HelloWorld : QVBox {
+ public class HelloWorld : TQVBox {
public static void Main (String[] args)
{
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
HelloWorld hello = new HelloWorld ();
app.SetMainWidget (hello);
hello.Show ();
@@ -24,13 +24,13 @@ namespace QtSamples {
public HelloWorld () : base (null)
{
- QPushButton pb = new QPushButton ("Hello Qt-Sharp-0.7!", this);
- QObject.Connect (pb, SIGNAL ("clicked()"), this, SLOT("SlotClicked()"));
+ TQPushButton pb = new TQPushButton ("Hello Qt-Sharp-0.7!", this);
+ TQObject.Connect (pb, TQT_SIGNAL ("clicked()"), this, TQT_SLOT("SlotClicked()"));
}
public void SlotClicked ()
{
- Console.WriteLine ("QPushButton Clicked!");
+ Console.WriteLine ("TQPushButton Clicked!");
}
}
}