summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/examples/tutorials/t7.cs
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 11:29:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 20:32:49 +0900
commit1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch)
tree8d37ac85ad8a529697fc81479852a039de534b8e /qtsharp/src/examples/tutorials/t7.cs
parent673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff)
downloadtdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.tar.gz
tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b)
Diffstat (limited to 'qtsharp/src/examples/tutorials/t7.cs')
-rw-r--r--qtsharp/src/examples/tutorials/t7.cs10
1 files changed, 5 insertions, 5 deletions
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;
}
}