summaryrefslogtreecommitdiffstats
path: root/tdecore/tests/ktimezonestest.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-13 20:33:00 +0900
committerMichele Calgaro <[email protected]>2023-11-15 23:47:11 +0900
commit303b6445011a6ed10c48ac6e1eda415e5c371264 (patch)
treeaded2a8ee5046176d3295bbf1f90f5dd73746677 /tdecore/tests/ktimezonestest.cpp
parent141ced0c41af8726eedac425ea24cd162bcff862 (diff)
downloadtdelibs-303b6445011a6ed10c48ac6e1eda415e5c371264.tar.gz
tdelibs-303b6445011a6ed10c48ac6e1eda415e5c371264.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit c8ece3630d4d21acaf1749fc2cf660a0463070c3)
Diffstat (limited to 'tdecore/tests/ktimezonestest.cpp')
-rw-r--r--tdecore/tests/ktimezonestest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tdecore/tests/ktimezonestest.cpp b/tdecore/tests/ktimezonestest.cpp
index d00626cdf..a42c5a395 100644
--- a/tdecore/tests/ktimezonestest.cpp
+++ b/tdecore/tests/ktimezonestest.cpp
@@ -22,8 +22,8 @@ int main(int argc, char *argv[])
// Find some offsets for Europe/London.
const char *london = "Europe/London";
timezone = timezones.zone(london);
- TQDateTime winter(TQDateTime::fromString("2005-01-01T00:00:00", Qt::ISODate));
- TQDateTime summer(TQDateTime::fromString("2005-06-01T00:00:00", Qt::ISODate));
+ TQDateTime winter(TQDateTime::fromString("2005-01-01T00:00:00", TQt::ISODate));
+ TQDateTime summer(TQDateTime::fromString("2005-06-01T00:00:00", TQt::ISODate));
printf( "%s winter timezone offset should be 0: %d\n", london, timezone->offset(winter) );
printf( "%s summer timezone offset should be 3600: %d\n", london, timezone->offset(summer) );
@@ -34,13 +34,13 @@ int main(int argc, char *argv[])
const char *gmtBeforePst = "2005-10-30T01:00:00";
const char *gmtAfterPst = "2005-12-01T00:00:00";
TQString result;
- result = timezone->convert(losAngeles, TQDateTime::fromString(bstBeforePdt, Qt::ISODate)).toString(Qt::ISODate);
+ result = timezone->convert(losAngeles, TQDateTime::fromString(bstBeforePdt, TQt::ISODate)).toString(TQt::ISODate);
printf( "BST before PDT, %s should be 2005-03-27T15:00:00: %s\n", bstBeforePdt, result.latin1() );
- result = timezone->convert(losAngeles, TQDateTime::fromString(bstAfterPdt, Qt::ISODate)).toString(Qt::ISODate);
+ result = timezone->convert(losAngeles, TQDateTime::fromString(bstAfterPdt, TQt::ISODate)).toString(TQt::ISODate);
printf( "BST and PDT, %s should be 2005-04-30T16:00:00: %s\n", bstAfterPdt, result.latin1() );
- result = timezone->convert(losAngeles, TQDateTime::fromString(gmtBeforePst, Qt::ISODate)).toString(Qt::ISODate);
+ result = timezone->convert(losAngeles, TQDateTime::fromString(gmtBeforePst, TQt::ISODate)).toString(TQt::ISODate);
printf( "GMT before PST, %s should be 2005-10-29T17:00:00: %s\n", gmtBeforePst, result.latin1() );
- result = timezone->convert(losAngeles, TQDateTime::fromString(gmtAfterPst, Qt::ISODate)).toString(Qt::ISODate);
+ result = timezone->convert(losAngeles, TQDateTime::fromString(gmtAfterPst, TQt::ISODate)).toString(TQt::ISODate);
printf( "GMT and PST, %s should be 2005-11-30T16:00:00: %s\n", gmtAfterPst, result.latin1() );
printf( "Latitude 89 should be valid: %svalid\n", KTimezone::isValidLatitude(89.0) ? "" : "in");
printf( "Latitude 91 should be invalid: %svalid\n", KTimezone::isValidLatitude(91.0) ? "" : "in");