summaryrefslogtreecommitdiffstats
path: root/kdecore/ktimezones.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/ktimezones.cpp')
-rw-r--r--kdecore/ktimezones.cpp48
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_;