summaryrefslogtreecommitdiffstats
path: root/kplato/kptcalendar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kptcalendar.cpp')
-rw-r--r--kplato/kptcalendar.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kplato/kptcalendar.cpp b/kplato/kptcalendar.cpp
index 46195041..b60b3392 100644
--- a/kplato/kptcalendar.cpp
+++ b/kplato/kptcalendar.cpp
@@ -92,7 +92,7 @@ bool CalendarDay::load(TQDomElement &element) {
//kdDebug()<<k_funcinfo<<" state="<<m_state<<endl;
TQString s = element.attribute("date");
if (s != "") {
- m_date = TQDate::fromString(s, Qt::ISODate);
+ m_date = TQDate::fromString(s, TQt::ISODate);
if (!m_date.isValid())
m_date = TQDate::fromString(s);
}
@@ -121,7 +121,7 @@ void CalendarDay::save(TQDomElement &element) const {
if (m_state == Map::None)
return;
if (m_date.isValid()) {
- element.setAttribute("date", m_date.toString(Qt::ISODate));
+ element.setAttribute("date", m_date.toString(TQt::ISODate));
}
element.setAttribute("state", m_state);
if (m_workingIntervals.count() == 0)
@@ -237,7 +237,7 @@ Duration CalendarDay::effort(const TQTime &start, const TQTime &end) {
//kdDebug()<<k_funcinfo<<dtStart.time().toString()<<" - "<<dtEnd.time().toString()<<"="<<eff.toString(Duration::Format_Day)<<endl;
}
}
- //kdDebug()<<k_funcinfo<<(m_date.isValid()?m_date.toString(Qt::ISODate):"Weekday")<<": "<<start.toString()<<" - "<<end.toString()<<": total="<<eff.toString(Duration::Format_Day)<<endl;
+ //kdDebug()<<k_funcinfo<<(m_date.isValid()?m_date.toString(TQt::ISODate):"Weekday")<<": "<<start.toString()<<" - "<<end.toString()<<": total="<<eff.toString(Duration::Format_Day)<<endl;
return eff;
}
@@ -264,14 +264,14 @@ bool CalendarDay::hasInterval() const {
}
bool CalendarDay::hasInterval(const TQTime &start, const TQTime &end) const {
- //kdDebug()<<k_funcinfo<<(m_date.isValid()?m_date.toString(Qt::ISODate):"Weekday")<<" "<<start.toString()<<" - "<<end.toString()<<endl;
+ //kdDebug()<<k_funcinfo<<(m_date.isValid()?m_date.toString(TQt::ISODate):"Weekday")<<" "<<start.toString()<<" - "<<end.toString()<<endl;
if (m_state != Map::Working) {
return false;
}
TQPtrListIterator<TQPair<TQTime, TQTime> > it = m_workingIntervals;
for (; it.current(); ++it) {
if (start < it.current()->second && end > it.current()->first) {
- //kdDebug()<<k_funcinfo<<"true:"<<(m_date.isValid()?m_date.toString(Qt::ISODate):"Weekday")<<" "<<it.current()->first.toString()<<" - "<<it.current()->second.toString()<<endl;
+ //kdDebug()<<k_funcinfo<<"true:"<<(m_date.isValid()?m_date.toString(TQt::ISODate):"Weekday")<<" "<<it.current()->first.toString()<<" - "<<it.current()->second.toString()<<endl;
return true;
}
}
@@ -689,7 +689,7 @@ bool Calendar::hasParent(Calendar *cal) {
}
Duration Calendar::effort(const TQDate &date, const TQTime &start, const TQTime &end) const {
- //kdDebug()<<k_funcinfo<<m_name<<": "<<date.toString(Qt::ISODate)<<" "<<start.toString()<<" - "<<end.toString()<<endl;
+ //kdDebug()<<k_funcinfo<<m_name<<": "<<date.toString(TQt::ISODate)<<" "<<start.toString()<<" - "<<end.toString()<<endl;
if (start == end) {
return Duration::zeroDuration;
}