diff options
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/t10/cannon.h | 2 | ||||
-rw-r--r-- | tutorial/t10/lcdrange.h | 2 | ||||
-rw-r--r-- | tutorial/t11/cannon.cpp | 2 | ||||
-rw-r--r-- | tutorial/t11/cannon.h | 2 | ||||
-rw-r--r-- | tutorial/t11/lcdrange.h | 2 | ||||
-rw-r--r-- | tutorial/t12/cannon.cpp | 2 | ||||
-rw-r--r-- | tutorial/t12/cannon.h | 2 | ||||
-rw-r--r-- | tutorial/t12/lcdrange.h | 2 | ||||
-rw-r--r-- | tutorial/t13/cannon.cpp | 2 | ||||
-rw-r--r-- | tutorial/t13/cannon.h | 2 | ||||
-rw-r--r-- | tutorial/t13/gamebrd.h | 2 | ||||
-rw-r--r-- | tutorial/t13/lcdrange.h | 2 | ||||
-rw-r--r-- | tutorial/t14/cannon.cpp | 4 | ||||
-rw-r--r-- | tutorial/t14/cannon.h | 2 | ||||
-rw-r--r-- | tutorial/t14/gamebrd.h | 2 | ||||
-rw-r--r-- | tutorial/t14/lcdrange.h | 2 | ||||
-rw-r--r-- | tutorial/t7/lcdrange.h | 2 | ||||
-rw-r--r-- | tutorial/t8/cannon.h | 2 | ||||
-rw-r--r-- | tutorial/t8/lcdrange.h | 2 | ||||
-rw-r--r-- | tutorial/t9/cannon.h | 2 | ||||
-rw-r--r-- | tutorial/t9/lcdrange.h | 2 |
21 files changed, 22 insertions, 22 deletions
diff --git a/tutorial/t10/cannon.h b/tutorial/t10/cannon.h index 25464644..a75678fa 100644 --- a/tutorial/t10/cannon.h +++ b/tutorial/t10/cannon.h @@ -12,7 +12,7 @@ class CannonField : public TQWidget { - Q_OBJECT + TQ_OBJECT public: CannonField( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t10/lcdrange.h b/tutorial/t10/lcdrange.h index 2b689a3b..cbb69b4b 100644 --- a/tutorial/t10/lcdrange.h +++ b/tutorial/t10/lcdrange.h @@ -14,7 +14,7 @@ class TQSlider; class LCDRange : public TQVBox { - Q_OBJECT + TQ_OBJECT public: LCDRange( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t11/cannon.cpp b/tutorial/t11/cannon.cpp index ad23174e..bfbc12a1 100644 --- a/tutorial/t11/cannon.cpp +++ b/tutorial/t11/cannon.cpp @@ -145,7 +145,7 @@ TQRect CannonField::shotRect() const double y = y0 + vely*time - 0.5*gravity*time*time; TQRect r = TQRect( 0, 0, 6, 6 ); - r.moveCenter( TQPoint( qRound(x), height() - 1 - qRound(y) ) ); + r.moveCenter( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) ); return r; } diff --git a/tutorial/t11/cannon.h b/tutorial/t11/cannon.h index 35af0527..b3b79fb9 100644 --- a/tutorial/t11/cannon.h +++ b/tutorial/t11/cannon.h @@ -15,7 +15,7 @@ class TQTimer; class CannonField : public TQWidget { - Q_OBJECT + TQ_OBJECT public: CannonField( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t11/lcdrange.h b/tutorial/t11/lcdrange.h index 2b689a3b..cbb69b4b 100644 --- a/tutorial/t11/lcdrange.h +++ b/tutorial/t11/lcdrange.h @@ -14,7 +14,7 @@ class TQSlider; class LCDRange : public TQVBox { - Q_OBJECT + TQ_OBJECT public: LCDRange( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t12/cannon.cpp b/tutorial/t12/cannon.cpp index e4552394..597c5464 100644 --- a/tutorial/t12/cannon.cpp +++ b/tutorial/t12/cannon.cpp @@ -180,7 +180,7 @@ TQRect CannonField::shotRect() const double y = y0 + vely*time - 0.5*gravity*time*time; TQRect r = TQRect( 0, 0, 6, 6 ); - r.moveCenter( TQPoint( qRound(x), height() - 1 - qRound(y) ) ); + r.moveCenter( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) ); return r; } diff --git a/tutorial/t12/cannon.h b/tutorial/t12/cannon.h index 33d5accc..79e58ea3 100644 --- a/tutorial/t12/cannon.h +++ b/tutorial/t12/cannon.h @@ -15,7 +15,7 @@ class TQTimer; class CannonField : public TQWidget { - Q_OBJECT + TQ_OBJECT public: CannonField( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t12/lcdrange.h b/tutorial/t12/lcdrange.h index 41bf78fb..d71bccb3 100644 --- a/tutorial/t12/lcdrange.h +++ b/tutorial/t12/lcdrange.h @@ -15,7 +15,7 @@ class TQLabel; class LCDRange : public TQVBox { - Q_OBJECT + TQ_OBJECT public: LCDRange( TQWidget *parent=0, const char *name=0 ); LCDRange( const char *s, TQWidget *parent=0, diff --git a/tutorial/t13/cannon.cpp b/tutorial/t13/cannon.cpp index f97ddd2f..85a038f0 100644 --- a/tutorial/t13/cannon.cpp +++ b/tutorial/t13/cannon.cpp @@ -206,7 +206,7 @@ TQRect CannonField::shotRect() const double y = y0 + vely*time - 0.5*gravity*time*time; TQRect r = TQRect( 0, 0, 6, 6 ); - r.moveCenter( TQPoint( qRound(x), height() - 1 - qRound(y) ) ); + r.moveCenter( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) ); return r; } diff --git a/tutorial/t13/cannon.h b/tutorial/t13/cannon.h index adb28acd..f64fd7df 100644 --- a/tutorial/t13/cannon.h +++ b/tutorial/t13/cannon.h @@ -15,7 +15,7 @@ class TQTimer; class CannonField : public TQWidget { - Q_OBJECT + TQ_OBJECT public: CannonField( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t13/gamebrd.h b/tutorial/t13/gamebrd.h index 9ad0cedc..b409ad16 100644 --- a/tutorial/t13/gamebrd.h +++ b/tutorial/t13/gamebrd.h @@ -20,7 +20,7 @@ class CannonField; class GameBoard : public TQWidget { - Q_OBJECT + TQ_OBJECT public: GameBoard( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t13/lcdrange.h b/tutorial/t13/lcdrange.h index 80738533..19bd019c 100644 --- a/tutorial/t13/lcdrange.h +++ b/tutorial/t13/lcdrange.h @@ -15,7 +15,7 @@ class TQLabel; class LCDRange : public TQWidget { - Q_OBJECT + TQ_OBJECT public: LCDRange( TQWidget *parent=0, const char *name=0 ); LCDRange( const char *s, TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t14/cannon.cpp b/tutorial/t14/cannon.cpp index d181f5b3..37bc274e 100644 --- a/tutorial/t14/cannon.cpp +++ b/tutorial/t14/cannon.cpp @@ -146,7 +146,7 @@ void CannonField::mouseMoveEvent( TQMouseEvent *e ) if ( pnt.y() >= height() ) pnt.setY( height() - 1 ); double rad = atan(((double)rect().bottom()-pnt.y())/pnt.x()); - setAngle( qRound ( rad*180/3.14159265 ) ); + setAngle( tqRound ( rad*180/3.14159265 ) ); } @@ -245,7 +245,7 @@ TQRect CannonField::shotRect() const double y = y0 + vely*time - 0.5*gravity*time*time; TQRect r = TQRect( 0, 0, 6, 6 ); - r.moveCenter( TQPoint( qRound(x), height() - 1 - qRound(y) ) ); + r.moveCenter( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) ); return r; } diff --git a/tutorial/t14/cannon.h b/tutorial/t14/cannon.h index f153cadc..79d2cb57 100644 --- a/tutorial/t14/cannon.h +++ b/tutorial/t14/cannon.h @@ -15,7 +15,7 @@ class TQTimer; class CannonField : public TQWidget { - Q_OBJECT + TQ_OBJECT public: CannonField( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t14/gamebrd.h b/tutorial/t14/gamebrd.h index f9e03789..c264b4b6 100644 --- a/tutorial/t14/gamebrd.h +++ b/tutorial/t14/gamebrd.h @@ -20,7 +20,7 @@ class CannonField; class GameBoard : public TQWidget { - Q_OBJECT + TQ_OBJECT public: GameBoard( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t14/lcdrange.h b/tutorial/t14/lcdrange.h index 80738533..19bd019c 100644 --- a/tutorial/t14/lcdrange.h +++ b/tutorial/t14/lcdrange.h @@ -15,7 +15,7 @@ class TQLabel; class LCDRange : public TQWidget { - Q_OBJECT + TQ_OBJECT public: LCDRange( TQWidget *parent=0, const char *name=0 ); LCDRange( const char *s, TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t7/lcdrange.h b/tutorial/t7/lcdrange.h index 7cdc73be..24ff8d4a 100644 --- a/tutorial/t7/lcdrange.h +++ b/tutorial/t7/lcdrange.h @@ -14,7 +14,7 @@ class TQSlider; class LCDRange : public TQVBox { - Q_OBJECT + TQ_OBJECT public: LCDRange( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t8/cannon.h b/tutorial/t8/cannon.h index d7b65975..d3126771 100644 --- a/tutorial/t8/cannon.h +++ b/tutorial/t8/cannon.h @@ -12,7 +12,7 @@ class CannonField : public TQWidget { - Q_OBJECT + TQ_OBJECT public: CannonField( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t8/lcdrange.h b/tutorial/t8/lcdrange.h index 2b689a3b..cbb69b4b 100644 --- a/tutorial/t8/lcdrange.h +++ b/tutorial/t8/lcdrange.h @@ -14,7 +14,7 @@ class TQSlider; class LCDRange : public TQVBox { - Q_OBJECT + TQ_OBJECT public: LCDRange( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t9/cannon.h b/tutorial/t9/cannon.h index d7b65975..d3126771 100644 --- a/tutorial/t9/cannon.h +++ b/tutorial/t9/cannon.h @@ -12,7 +12,7 @@ class CannonField : public TQWidget { - Q_OBJECT + TQ_OBJECT public: CannonField( TQWidget *parent=0, const char *name=0 ); diff --git a/tutorial/t9/lcdrange.h b/tutorial/t9/lcdrange.h index 2b689a3b..cbb69b4b 100644 --- a/tutorial/t9/lcdrange.h +++ b/tutorial/t9/lcdrange.h @@ -14,7 +14,7 @@ class TQSlider; class LCDRange : public TQVBox { - Q_OBJECT + TQ_OBJECT public: LCDRange( TQWidget *parent=0, const char *name=0 ); |