diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
commit | bf7f88413be3831a9372d323d02fc0335b9f9188 (patch) | |
tree | 516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/timeutils.cpp | |
parent | e238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff) | |
download | gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip |
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/timeutils.cpp')
-rw-r--r-- | src/gvcore/timeutils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gvcore/timeutils.cpp b/src/gvcore/timeutils.cpp index 3893aa5..bed1157 100644 --- a/src/gvcore/timeutils.cpp +++ b/src/gvcore/timeutils.cpp @@ -33,8 +33,8 @@ namespace TimeUtils { time_t getTime(const KFileItem* item) { const KFileMetaInfo& info = item->metaInfo(); if (info.isValid()) { - QVariant value = info.value("Date/time"); - QDateTime dt = value.toDateTime(); + TQVariant value = info.value("Date/time"); + TQDateTime dt = value.toDateTime(); if (dt.isValid()) { return dt.toTime_t(); } @@ -42,8 +42,8 @@ time_t getTime(const KFileItem* item) { return item->time(KIO::UDS_MODIFICATION_TIME); } -QString formatTime(time_t time) { - QDateTime dt; +TQString formatTime(time_t time) { + TQDateTime dt; dt.setTime_t(time); return KGlobal::locale()->formatDateTime(dt); } |