summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoSize.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore/KoSize.h')
-rw-r--r--lib/kofficecore/KoSize.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/kofficecore/KoSize.h b/lib/kofficecore/KoSize.h
index 3cdc30bc3..6f8aa253f 100644
--- a/lib/kofficecore/KoSize.h
+++ b/lib/kofficecore/KoSize.h
@@ -16,19 +16,19 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
- This file borrows from the QSize class;
+ This file borrows from the TQSize class;
Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
*/
#ifndef koSize_h
#define koSize_h
-#include <qsize.h>
-#include <qtl.h>
+#include <tqsize.h>
+#include <tqtl.h>
/**
* A size whose coordinates are floating-point values ( "double"s ).
- * The API isn't documented, it's a perfect mirror of QSize.
+ * The API isn't documented, it's a perfect mirror of TQSize.
*/
class KoSize
{
@@ -69,21 +69,21 @@ public:
friend inline const KoSize operator/( const KoSize &, int );
friend inline const KoSize operator/( const KoSize &, double );
- inline QSize toQSize() const;
- static KoSize fromQSize( const QSize &size )
+ inline TQSize toTQSize() const;
+ static KoSize fromTQSize( const TQSize &size )
{
return KoSize(size.width(), size.height());
}
void transpose()
{
- qSwap(wd, ht);
+ tqSwap(wd, ht);
}
private:
static void warningDivByZero()
{
-#if defined(QT_CHECK_MATH)
+#if defined(TQT_CHECK_MATH)
qWarning( "KoSize: Division by zero error" );
#endif
}
@@ -168,7 +168,7 @@ inline const KoSize operator*( double c, const KoSize &s )
inline KoSize &KoSize::operator/=( int c )
{
-#if defined(QT_CHECK_MATH)
+#if defined(TQT_CHECK_MATH)
if ( c == 0 )
warningDivByZero();
#endif
@@ -178,7 +178,7 @@ inline KoSize &KoSize::operator/=( int c )
inline KoSize &KoSize::operator/=( double c )
{
-#if defined(QT_CHECK_MATH)
+#if defined(TQT_CHECK_MATH)
if ( c == 0.0 )
warningDivByZero();
#endif
@@ -188,7 +188,7 @@ inline KoSize &KoSize::operator/=( double c )
inline const KoSize operator/( const KoSize &s, int c )
{
-#if defined(QT_CHECK_MATH)
+#if defined(TQT_CHECK_MATH)
if ( c == 0 )
KoSize::warningDivByZero();
#endif
@@ -197,7 +197,7 @@ inline const KoSize operator/( const KoSize &s, int c )
inline const KoSize operator/( const KoSize &s, double c )
{
-#if defined(QT_CHECK_MATH)
+#if defined(TQT_CHECK_MATH)
if ( c == 0.0 )
KoSize::warningDivByZero();
#endif
@@ -206,17 +206,17 @@ inline const KoSize operator/( const KoSize &s, double c )
inline KoSize KoSize::expandedTo( const KoSize & otherSize ) const
{
- return KoSize( QMAX(wd,otherSize.wd), QMAX(ht,otherSize.ht) );
+ return KoSize( TQMAX(wd,otherSize.wd), TQMAX(ht,otherSize.ht) );
}
inline KoSize KoSize::boundedTo( const KoSize & otherSize ) const
{
- return KoSize( QMIN(wd,otherSize.wd), QMIN(ht,otherSize.ht) );
+ return KoSize( TQMIN(wd,otherSize.wd), TQMIN(ht,otherSize.ht) );
}
-inline QSize KoSize::toQSize() const
+inline TQSize KoSize::toTQSize() const
{
- return QSize(qRound(wd), qRound(ht));
+ return TQSize(tqRound(wd), tqRound(ht));
}
/******************************