diff options
Diffstat (limited to 'src/kernel/tqwmatrix.cpp')
| -rw-r--r-- | src/kernel/tqwmatrix.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kernel/tqwmatrix.cpp b/src/kernel/tqwmatrix.cpp index eb5ce5087..0c5fddc67 100644 --- a/src/kernel/tqwmatrix.cpp +++ b/src/kernel/tqwmatrix.cpp @@ -157,7 +157,7 @@ double qsincos( double, bool calcCos ); // defined in tqpainter_x11.cpp \sa TQPainter::setWorldMatrix(), TQPixmap::xForm() */ -bool qt_old_transformations = TRUE; +bool qt_old_transformations = true; /*! \enum TQWMatrix::TransformationMode @@ -216,9 +216,9 @@ bool qt_old_transformations = TRUE; void TQWMatrix::setTransformationMode( TQWMatrix::TransformationMode m ) { if ( m == TQWMatrix::Points ) - qt_old_transformations = TRUE; + qt_old_transformations = true; else - qt_old_transformations = FALSE; + qt_old_transformations = false; } @@ -772,7 +772,7 @@ void TQWMatrix::reset() } /*! - Returns TRUE if the matrix is the identity matrix; otherwise returns FALSE. + Returns true if the matrix is the identity matrix; otherwise returns false. \sa reset() */ @@ -852,8 +852,8 @@ TQWMatrix &TQWMatrix::rotate( double a ) { double b = deg2rad*a; // convert to radians #if defined(TQ_WS_X11) - double sina = qsincos(b,FALSE); // fast and convenient - double cosa = qsincos(b,TRUE); + double sina = qsincos(b,false); // fast and convenient + double cosa = qsincos(b,true); #else double sina = sin(b); double cosa = cos(b); @@ -870,7 +870,7 @@ TQWMatrix &TQWMatrix::rotate( double a ) /*! \fn bool TQWMatrix::isInvertible() const - Returns TRUE if the matrix is invertible; otherwise returns FALSE. + Returns true if the matrix is invertible; otherwise returns false. \sa invert() */ @@ -889,8 +889,8 @@ TQWMatrix &TQWMatrix::rotate( double a ) returned. If \a invertible is not 0: the value of \a *invertible is set - to TRUE if the matrix is invertible; otherwise \a *invertible is - set to FALSE. + to true if the matrix is invertible; otherwise \a *invertible is + set to false. \sa isInvertible() */ @@ -900,13 +900,13 @@ TQWMatrix TQWMatrix::invert( bool *invertible ) const double determinant = det(); if ( determinant == 0.0 ) { if ( invertible ) - *invertible = FALSE; // singular matrix + *invertible = false; // singular matrix TQWMatrix defaultMatrix; return defaultMatrix; } else { // invertible matrix if ( invertible ) - *invertible = TRUE; + *invertible = true; double dinv = 1.0/determinant; TQWMatrix imatrix( (_m22*dinv), (-_m12*dinv), (-_m21*dinv), ( _m11*dinv), @@ -918,7 +918,7 @@ TQWMatrix TQWMatrix::invert( bool *invertible ) const /*! - Returns TRUE if this matrix is equal to \a m; otherwise returns FALSE. + Returns true if this matrix is equal to \a m; otherwise returns false. */ bool TQWMatrix::operator==( const TQWMatrix &m ) const @@ -932,7 +932,7 @@ bool TQWMatrix::operator==( const TQWMatrix &m ) const } /*! - Returns TRUE if this matrix is not equal to \a m; otherwise returns FALSE. + Returns true if this matrix is not equal to \a m; otherwise returns false. */ bool TQWMatrix::operator!=( const TQWMatrix &m ) const |
