diff options
Diffstat (limited to 'qtsharp/src/examples/tutorials')
-rw-r--r-- | qtsharp/src/examples/tutorials/t2.cs | 4 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t3.cs | 4 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t4.cs | 2 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t5.cs | 4 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t6.cs | 4 | ||||
-rw-r--r-- | qtsharp/src/examples/tutorials/t7.cs | 10 |
6 files changed, 14 insertions, 14 deletions
diff --git a/qtsharp/src/examples/tutorials/t2.cs b/qtsharp/src/examples/tutorials/t2.cs index 5dbe07d1..3692e8f4 100644 --- a/qtsharp/src/examples/tutorials/t2.cs +++ b/qtsharp/src/examples/tutorials/t2.cs @@ -18,8 +18,8 @@ public class Example { quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold)); // In C++, TQFont::Bold is sufficient - TQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") ); - // TQT_SIGNAL and TQT_SLOT are static functions of QtSupport + TQObject.Connect ( quit, QtSupport.TQ_SIGNAL ("clicked()"), a, QtSupport.TQ_SLOT ("Quit()") ); + // TQ_SIGNAL and TQ_SLOT are static functions of QtSupport a.SetMainWidget (quit); quit.Show (); diff --git a/qtsharp/src/examples/tutorials/t3.cs b/qtsharp/src/examples/tutorials/t3.cs index 26fece72..90e9b803 100644 --- a/qtsharp/src/examples/tutorials/t3.cs +++ b/qtsharp/src/examples/tutorials/t3.cs @@ -19,8 +19,8 @@ public class Example { quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold)); // In C++, TQFont::Bold is sufficient - TQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") ); - // TQT_SIGNAL and TQT_SLOT are static functions of QtSupport + TQObject.Connect ( quit, QtSupport.TQ_SIGNAL ("clicked()"), a, QtSupport.TQ_SLOT ("Quit()") ); + // TQ_SIGNAL and TQ_SLOT are static functions of QtSupport a.SetMainWidget (box); box.Show (); diff --git a/qtsharp/src/examples/tutorials/t4.cs b/qtsharp/src/examples/tutorials/t4.cs index b3e66a07..1e182bb2 100644 --- a/qtsharp/src/examples/tutorials/t4.cs +++ b/qtsharp/src/examples/tutorials/t4.cs @@ -17,7 +17,7 @@ public class MyWidget : TQWidget { quit.SetGeometry (62, 40, 75, 30); quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold) ); - Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") ); + Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") ); // In C++, tqApp is a global variable. Here it's a property of the TQObject // class, which we inherit, giving the same effect. We also inherit the // static method connect(). diff --git a/qtsharp/src/examples/tutorials/t5.cs b/qtsharp/src/examples/tutorials/t5.cs index 05ff5e96..4500af56 100644 --- a/qtsharp/src/examples/tutorials/t5.cs +++ b/qtsharp/src/examples/tutorials/t5.cs @@ -13,7 +13,7 @@ public class MyWidget : TQVBox { TQPushButton quit = new TQPushButton ("Quit", this, "quit"); quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) ); - TQObject.Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") ); + TQObject.Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") ); TQLCDNumber lcd = new TQLCDNumber (2, this, "lcd" ); @@ -22,7 +22,7 @@ public class MyWidget : TQVBox { slider.SetRange (0, 99); slider.SetValue (0); - Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") ); + Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), lcd, TQ_SLOT ("Display(int)") ); } public MyWidget (TQWidget parent) : this (parent, "") {} diff --git a/qtsharp/src/examples/tutorials/t6.cs b/qtsharp/src/examples/tutorials/t6.cs index 910d13d1..90d94b5b 100644 --- a/qtsharp/src/examples/tutorials/t6.cs +++ b/qtsharp/src/examples/tutorials/t6.cs @@ -15,7 +15,7 @@ public class LCDRange : TQVBox { slider.SetRange (0, 99); slider.SetValue (0); - Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") ); + Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), lcd, TQ_SLOT ("Display(int)") ); } public LCDRange (TQWidget parent) : this (parent, "") {} @@ -31,7 +31,7 @@ public class MyWidget : TQVBox { TQPushButton quit = new TQPushButton ("Quit", this, "quit"); quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) ); - Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") ); + Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") ); TQGrid grid = new TQGrid (4, this); diff --git a/qtsharp/src/examples/tutorials/t7.cs b/qtsharp/src/examples/tutorials/t7.cs index 1372bf15..ecc9b244 100644 --- a/qtsharp/src/examples/tutorials/t7.cs +++ b/qtsharp/src/examples/tutorials/t7.cs @@ -21,8 +21,8 @@ public class LCDRange : TQVBox { slider.SetRange (0, 99); slider.SetValue (0); - Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") ); - Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), TQT_SIGNAL ("valueChanged(int)")); + Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), lcd, TQ_SLOT ("Display(int)") ); + Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), TQ_SIGNAL ("valueChanged(int)")); } public LCDRange (TQWidget parent) : this (parent, "") {} @@ -43,7 +43,7 @@ public class MyWidget : TQVBox { TQPushButton quit = new TQPushButton ("Quit", this, "quit"); quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) ); - Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") ); + Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") ); TQGrid grid = new TQGrid (4, this); @@ -53,8 +53,8 @@ public class MyWidget : TQVBox { for ( int r = 0; r < 4; r++ ) { LCDRange lr = new LCDRange (grid); if (previous != null) - Connect (lr, TQT_SIGNAL ("valueChanged(int)"), - previous, TQT_SLOT ("SetValue(int)") ); + Connect (lr, TQ_SIGNAL ("valueChanged(int)"), + previous, TQ_SLOT ("SetValue(int)") ); previous = lr; } } |