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/examples/samples/eventhandling.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'qtsharp/src/examples/samples/eventhandling.cs') diff --git a/qtsharp/src/examples/samples/eventhandling.cs b/qtsharp/src/examples/samples/eventhandling.cs index ee410dd3..2372d766 100644 --- a/qtsharp/src/examples/samples/eventhandling.cs +++ b/qtsharp/src/examples/samples/eventhandling.cs @@ -11,11 +11,11 @@ namespace QtSamples { using Qt; using System; - public class EventHandling : QVBox { + public class EventHandling : TQVBox { public static void Main (String[] args) { - QApplication app = new QApplication (args); + TQApplication app = new TQApplication (args); EventHandling evh = new EventHandling (); app.SetMainWidget (evh); evh.Show (); @@ -30,20 +30,20 @@ namespace QtSamples { MyButton pb = new MyButton (this); } - public void mouseEvents (QObject sender, QEventArgs e) + public void mouseEvents (TQObject sender, QEventArgs e) { Console.WriteLine ("Mouse event: " + e.Name); } - class MyButton : QPushButton { + class MyButton : TQPushButton { - public MyButton (QWidget parent) : base ("Hello Qt-Sharp-0.7!", parent) + public MyButton (TQWidget parent) : base ("Hello Qt-Sharp-0.7!", parent) { // This is the local event handler for mousePressEvents mousePressEvent += new MousePressEvent (pressEvent); } - public void pressEvent (QMouseEvent e) + public void pressEvent (TQMouseEvent e) { Console.WriteLine ("I've been clicked"); } -- cgit v1.2.1