diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
commit | a1bd60b34891ccc77056c190d7871bc4b14fe654 (patch) | |
tree | 713f2f72c8f08a18df12f5bbeef7f9b61b19d4f1 /kweather/sun.cpp | |
parent | 8d92c3c2a4131996726cc7b625d3cd3caec296de (diff) | |
download | tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.tar.gz tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.zip |
TQt4 port kdetoys
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kweather/sun.cpp')
-rw-r--r-- | kweather/sun.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kweather/sun.cpp b/kweather/sun.cpp index 8cabdb9..50b89f0 100644 --- a/kweather/sun.cpp +++ b/kweather/sun.cpp @@ -176,7 +176,7 @@ static double latitudeToDouble( const TQString &latitude ) result = dd + (mm / 60); - if (latitude.contains("S")) + if (latitude.tqcontains("S")) result *= -1; return result; @@ -192,7 +192,7 @@ static double longitudeToDouble( const TQString &longitude ) result = ddd + (mm / 60); - if (longitude.contains("W")) + if (longitude.tqcontains("W")) result *= -1; return result; @@ -282,7 +282,7 @@ static int __sunriset__( int year, int month, int day, double lon, double lat, double sr; /* Solar distance, astronomical units */ double sRA; /* Sun's Right Ascension */ double sdec; /* Sun's declination */ - double sradius; /* Sun's apparent radius */ + double sradius; /* Sun's aptqparent radius */ double t; /* Diurnal arc */ double tsouth; /* Time when Sun is at south */ double sidtime; /* Local sidereal time */ @@ -303,7 +303,7 @@ static int __sunriset__( int year, int month, int day, double lon, double lat, /* Compute time when Sun is at south - in hours UT */ tsouth = 12.0 - rev180(sidtime - sRA) / 15.0; - /* Compute the Sun's apparent radius, degrees */ + /* Compute the Sun's aptqparent radius, degrees */ sradius = 0.2666 / sr; /* Do correction to upper limb, if necessary */ |