diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
commit | a374efce3a207b39514be3c52264091400ce297e (patch) | |
tree | 77bdf654b55826d4f59b53a5621310206bcaead1 /kalzium/src/tempunit.cpp | |
parent | f81a494f3957d5cf38c787973415597941934727 (diff) | |
download | tdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip |
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalzium/src/tempunit.cpp')
-rw-r--r-- | kalzium/src/tempunit.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kalzium/src/tempunit.cpp b/kalzium/src/tempunit.cpp index a4e18ef7..bab2461c 100644 --- a/kalzium/src/tempunit.cpp +++ b/kalzium/src/tempunit.cpp @@ -94,40 +94,40 @@ TQString TempUnit::unitListSymbol( int i ) return l[i]; } -QPair<double, double> TempUnit::rangeForUnit( TempUnit::Unit u ) +TQPair<double, double> TempUnit::rangeForUnit( TempUnit::Unit u ) { switch( u ) { case Kelvin: { - return QPair<double, double>( 0.0, 5000.0 ); + return TQPair<double, double>( 0.0, 5000.0 ); break; } case Celsius: { - return QPair<double, double>( -273.16, 4726.84 ); + return TQPair<double, double>( -273.16, 4726.84 ); break; } case Fahrenheit: { - return QPair<double, double>( -459.67, 8540.33 ); + return TQPair<double, double>( -459.67, 8540.33 ); break; } case Rankine: { - return QPair<double, double>( 0.0, 9000.0 ); + return TQPair<double, double>( 0.0, 9000.0 ); break; } case Reaumur: { - return QPair<double, double>( -218.52, 3781.48 ); + return TQPair<double, double>( -218.52, 3781.48 ); break; } } - return QPair<double, double>( 0.0, 5000.0 ); + return TQPair<double, double>( 0.0, 5000.0 ); } -QPair<double, double> TempUnit::rangeForUnit( int u ) +TQPair<double, double> TempUnit::rangeForUnit( int u ) { return rangeForUnit( (TempUnit::Unit)u ); } |