diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
commit | 359640943bcf155faa9a067dde9e00a123276290 (patch) | |
tree | fb3d55ea5e18949042fb0064123fb73d2b1eb932 /tutorial/t14 | |
parent | a829bcdc533e154000803d517200d32fe762e85c (diff) | |
download | tqt3-359640943bcf155faa9a067dde9e00a123276290.tar.gz tqt3-359640943bcf155faa9a067dde9e00a123276290.zip |
Automated update from Qt3
Diffstat (limited to 'tutorial/t14')
-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 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tutorial/t14/cannon.cpp b/tutorial/t14/cannon.cpp index d181f5b30..37bc274e6 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 f153cadc1..79d2cb571 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 f9e03789d..c264b4b61 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 80738533b..19bd019c4 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 ); |