summaryrefslogtreecommitdiffstats
path: root/src/svnqt/datetime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/svnqt/datetime.cpp')
-rw-r--r--src/svnqt/datetime.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/svnqt/datetime.cpp b/src/svnqt/datetime.cpp
index 496a04b..6c27a2f 100644
--- a/src/svnqt/datetime.cpp
+++ b/src/svnqt/datetime.cpp
@@ -48,7 +48,7 @@ namespace svn
setAprTime(time);
}
- DateTime::DateTime(const QDateTime&dt)
+ DateTime::DateTime(const TQDateTime&dt)
: m_time(dt)
{
}
@@ -128,29 +128,23 @@ namespace svn
return IsValid();
}
- DateTime::operator const QDateTime&()const
+ DateTime::operator const TQDateTime&()const
{
return m_time;
}
- const QDateTime&DateTime::toQDateTime()const
+ const TQDateTime&DateTime::toTQDateTime()const
{
return *this;
}
void DateTime::setAprTime(apr_time_t aTime)
{
-#if QT_VERSION < 0x040000
if (aTime<0)m_time.setTime_t(0,Qt::LocalTime);
else m_time.setTime_t(aTime/(1000*1000),Qt::LocalTime);
-#else
- m_time.setTimeSpec(Qt::LocalTime);
- if (aTime<0)m_time.setTime_t(0);
- else m_time.setTime_t(aTime/(1000*1000));
-#endif
}
- QString DateTime::toString(const QString&format)const
+ TQString DateTime::toString(const TQString&format)const
{
return m_time.toString(format);
}