diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /kdecore/ktimezones.cpp | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
Revert automated changes
Sorry guys, they are just not ready for prime time
Work will continue as always
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/ktimezones.cpp')
-rw-r--r-- | kdecore/ktimezones.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kdecore/ktimezones.cpp b/kdecore/ktimezones.cpp index 2ec4c7e64..5ebf9bd4a 100644 --- a/kdecore/ktimezones.cpp +++ b/kdecore/ktimezones.cpp @@ -285,12 +285,12 @@ int KTimezone::offset(Qt::TimeSpec basisSpec) const char *originalZone = ::getenv("TZ"); // Get the time in the current timezone. - TQDateTime basisTime = TQDateTime::tqcurrentDateTime(basisSpec); + TQDateTime basisTime = TQDateTime::currentDateTime(basisSpec); - // Set the timezone and tqfind out what time it is there compared to the basis. + // Set the timezone and find out what time it is there compared to the basis. ::setenv("TZ", m_name.utf8(), 1); tzset(); - TQDateTime remoteTime = TQDateTime::tqcurrentDateTime(Qt::LocalTime); + TQDateTime remoteTime = TQDateTime::currentDateTime(Qt::LocalTime); int offset = remoteTime.secsTo(basisTime); // Now restore things @@ -308,11 +308,11 @@ int KTimezone::offset(Qt::TimeSpec basisSpec) const int KTimezone::offset(const TQDateTime &dateTime) const { - OffsetFind tqfinder(dateTime.toTime_t()); + OffsetFind finder(dateTime.toTime_t()); int result = 0; - if (parse(tqfinder)) + if (parse(finder)) { - result = tqfinder.offset(); + result = finder.offset(); } return result; } @@ -595,7 +595,7 @@ const KTimezone *KTimezones::local() return local; // None of the deterministic stuff above has worked: try a heuristic. We - // try to tqfind a pair of matching timezone abbreviations...that way, we'll + // try to find a pair of matching timezone abbreviations...that way, we'll // likely return a value in the user's own country. if (!m_zoneinfoDir.isEmpty()) { @@ -623,7 +623,7 @@ const KTimezone *KTimezones::zone(const TQString &name) { if (name.isEmpty()) return m_UTC; - ZoneMap::ConstIterator it = m_zones->tqfind(name); + ZoneMap::ConstIterator it = m_zones->find(name); if (it != m_zones->end()) return it.data(); @@ -695,28 +695,28 @@ bool KTimezoneSource::parse(const TQString &zone, KTimezoneDetails &dataReceiver } // Structures that represent the zoneinfo file. - TQ_UINT8 T, z, i_, f_; + Q_UINT8 T, z, i_, f_; struct { - TQ_UINT32 ttisgmtcnt; - TQ_UINT32 ttisstdcnt; - TQ_UINT32 leapcnt; - TQ_UINT32 timecnt; - TQ_UINT32 typecnt; - TQ_UINT32 charcnt; + Q_UINT32 ttisgmtcnt; + Q_UINT32 ttisstdcnt; + Q_UINT32 leapcnt; + Q_UINT32 timecnt; + Q_UINT32 typecnt; + Q_UINT32 charcnt; } tzh; - TQ_UINT32 transitionTime; - TQ_UINT8 localTimeIndex; + Q_UINT32 transitionTime; + Q_UINT8 localTimeIndex; struct { - TQ_INT32 gmtoff; - TQ_INT8 isdst; - TQ_UINT8 abbrind; + Q_INT32 gmtoff; + Q_INT8 isdst; + Q_UINT8 abbrind; } tt; - TQ_UINT32 leapTime; - TQ_UINT32 leapSeconds; - TQ_UINT8 isStandard; - TQ_UINT8 isUTC; + Q_UINT32 leapTime; + Q_UINT32 leapSeconds; + Q_UINT8 isStandard; + Q_UINT8 isUTC; TQDataStream str(&f); str >> T >> z >> i_ >> f_; |