summaryrefslogtreecommitdiffstats
path: root/examples/life
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-31 22:16:03 +0900
commitecca365daf06c711cf30f93f4c773dabf5642790 (patch)
tree0b2f6780f60fd7eb35c84cc899e7d51db189d67d /examples/life
parent1c30858477bcf3a4c74866d9a3d26f57753dd36a (diff)
downloadtqt-ecca365d.tar.gz
tqt-ecca365d.zip
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit fb401a891f1b426e9419c0cb16403df407138611)
Diffstat (limited to 'examples/life')
-rw-r--r--examples/life/lifedlg.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/life/lifedlg.cpp b/examples/life/lifedlg.cpp
index c1be353b7..c24f7d508 100644
--- a/examples/life/lifedlg.cpp
+++ b/examples/life/lifedlg.cpp
@@ -55,14 +55,14 @@ LifeDialog::LifeDialog( int scale, TQWidget * parent, const char * name )
life->move( SIDEBORDER, TOPBORDER );
- connect( qb, SIGNAL(clicked()), tqApp, SLOT(quit()) );
+ connect( qb, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
qb->setGeometry( SIDEBORDER, SIDEBORDER, qb->sizeHint().width(), 25 );
timer = new LifeTimer( this );
- connect( timer, SIGNAL(timeout()), life, SLOT(nextGeneration()) );
+ connect( timer, TQ_SIGNAL(timeout()), life, TQ_SLOT(nextGeneration()) );
pb = new TQPushButton( "Pause", this );
pb->setToggleButton( TRUE );
- connect( pb, SIGNAL(toggled(bool)), timer, SLOT(pause(bool)) );
+ connect( pb, TQ_SIGNAL(toggled(bool)), timer, TQ_SLOT(pause(bool)) );
pb->resize( pb->sizeHint().width(), 25 );
pb->move( width() - SIDEBORDER - pb->width(), SIDEBORDER );
@@ -72,8 +72,8 @@ LifeDialog::LifeDialog( int scale, TQWidget * parent, const char * name )
scroll = new TQSlider( 0, LifeTimer::MAXSPEED, 50,
LifeTimer::MAXSPEED / 2,
TQSlider::Horizontal, this );
- connect( scroll, SIGNAL(valueChanged(int)),
- timer, SLOT(setSpeed(int)) );
+ connect( scroll, TQ_SIGNAL(valueChanged(int)),
+ timer, TQ_SLOT(setSpeed(int)) );
scroll->move( sp->width() + 2 * SIDEBORDER, 45 );
scroll->resize( 200, 15 );
@@ -118,7 +118,7 @@ LifeDialog::LifeDialog( int scale, TQWidget * parent, const char * name )
cb->setAutoResize( FALSE );
cb->setCurrentItem( sel );
cb->show();
- connect( cb, SIGNAL(activated(int)), SLOT(getPattern(int)) );
+ connect( cb, TQ_SIGNAL(activated(int)), TQ_SLOT(getPattern(int)) );
TQSize s;
s = life->minimumSize();