From cfc42a28c327b96c6a2afee92af3bac1a479eb8a Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:49:52 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kweather/sun_test.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kweather/sun_test.cpp') 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 using namespace std; -#include -#include +#include +#include #include #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 && -- cgit v1.2.1