summaryrefslogtreecommitdiffstats
path: root/kweather/sun_test.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
commitcfc42a28c327b96c6a2afee92af3bac1a479eb8a (patch)
treee3219edf5f827eaa4db3feb509a17846a1a5a752 /kweather/sun_test.cpp
parenta73fc4d7e66fe0824313aa4e9a650c4cddef6e9f (diff)
downloadtdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.tar.gz
tdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kweather/sun_test.cpp')
-rw-r--r--kweather/sun_test.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kweather/sun_test.cpp b/kweather/sun_test.cpp
index d5dcccd..c9ce46c 100644
--- a/kweather/sun_test.cpp
+++ b/kweather/sun_test.cpp
@@ -18,8 +18,8 @@
#include <iostream>
using namespace std;
-#include <qstring.h>
-#include <qdatetime.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
#include <krfcdate.h>
#include "sun.h"
@@ -29,16 +29,16 @@ int main()
{
bool anyFailed = false;
- QString KUGN_Latitude("42-25N");
- QString KUGN_Longitude("087-52W");
- QDate Date(2004, 6, 1); // June 1st.
+ TQString KUGN_Latitude("42-25N");
+ TQString KUGN_Longitude("087-52W");
+ TQDate Date(2004, 6, 1); // June 1st.
int localUTCOffset = -300;
// Construct a sun object for our tests.
Sun theSun( KUGN_Latitude, KUGN_Longitude, Date, localUTCOffset );
- QTime civilStart = theSun.computeCivilTwilightStart();
- QTime civilEnd = theSun.computeCivilTwilightEnd();
+ TQTime civilStart = theSun.computeCivilTwilightStart();
+ TQTime civilEnd = theSun.computeCivilTwilightEnd();
cout << "Testing Civil Twilight Calculations...";
// Start should be 04:42:39 End should be 20:56:06
@@ -55,8 +55,8 @@ int main()
cout << "Testing Rise and Set Time Calculations...";
- QTime rise = theSun.computeRiseTime();
- QTime set = theSun.computeSetTime();
+ TQTime rise = theSun.computeRiseTime();
+ TQTime set = theSun.computeSetTime();
// Rise should be 05:16:35 Set should be 20:22:10
if (rise.hour() == 5 && rise.minute() == 16 && rise.second() == 35 &&