diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /qtsharp/src/examples/samples/eventhandling.cs | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'qtsharp/src/examples/samples/eventhandling.cs')
-rw-r--r-- | qtsharp/src/examples/samples/eventhandling.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qtsharp/src/examples/samples/eventhandling.cs b/qtsharp/src/examples/samples/eventhandling.cs index 30928a63..efa938bb 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 : TTQVBox { + public class EventHandling : TQVBox { public static void Main (String[] args) { - TTQApplication app = new TTQApplication (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 (TTQObject sender, TQEventArgs e) + public void mouseEvents (TQObject sender, TQEventArgs e) { Console.WriteLine ("Mouse event: " + e.Name); } - class MyButton : TTQPushButton { + class MyButton : TQPushButton { - public MyButton (TTQWidget 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 (TTQMouseEvent e) + public void pressEvent (TQMouseEvent e) { Console.WriteLine ("I've been clicked"); } |