diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtsharp/src/examples/samples/eventhandling.cs | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'qtsharp/src/examples/samples/eventhandling.cs')
-rw-r--r-- | qtsharp/src/examples/samples/eventhandling.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qtsharp/src/examples/samples/eventhandling.cs b/qtsharp/src/examples/samples/eventhandling.cs index 2372d766..30928a63 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 : TQVBox { + public class EventHandling : TTQVBox { public static void Main (String[] args) { - TQApplication app = new TQApplication (args); + TTQApplication app = new TTQApplication (args); EventHandling evh = new EventHandling (); app.SetMainWidget (evh); evh.Show (); @@ -24,26 +24,26 @@ namespace QtSamples { public EventHandling () : base (null) { - // This is the global event handler for QMouseEvents - mouseHandler += new QMouseHandler(mouseEvents); + // This is the global event handler for TQMouseEvents + mouseHandler += new TQMouseHandler(mouseEvents); MyButton pb = new MyButton (this); } - public void mouseEvents (TQObject sender, QEventArgs e) + public void mouseEvents (TTQObject sender, TQEventArgs e) { Console.WriteLine ("Mouse event: " + e.Name); } - class MyButton : TQPushButton { + class MyButton : TTQPushButton { - public MyButton (TQWidget parent) : base ("Hello Qt-Sharp-0.7!", parent) + public MyButton (TTQWidget parent) : base ("Hello Qt-Sharp-0.7!", parent) { // This is the local event handler for mousePressEvents mousePressEvent += new MousePressEvent (pressEvent); } - public void pressEvent (TQMouseEvent e) + public void pressEvent (TTQMouseEvent e) { Console.WriteLine ("I've been clicked"); } |