summaryrefslogtreecommitdiffstats
path: root/kplato/kptmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kptmap.h')
-rw-r--r--kplato/kptmap.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/kplato/kptmap.h b/kplato/kptmap.h
index 134eeac7..18e83a0c 100644
--- a/kplato/kptmap.h
+++ b/kplato/kptmap.h
@@ -43,7 +43,7 @@ public:
DateMap() {}
virtual ~DateMap() {}
- virtual bool contains(TQDate date) const { return DateMapType::contains(date.toString(Qt::ISODate)); }
+ virtual bool contains(TQDate date) const { return DateMapType::contains(date.toString(TQt::ISODate)); }
void insert(TQString date, int state=Map::NonWorking) {
//kdDebug()<<k_funcinfo<<date<<"="<<state<<endl;
@@ -52,11 +52,11 @@ public:
else
DateMapType::insert(date, state);
}
- void insert(TQDate date, int state=Map::NonWorking) { insert(date.toString(Qt::ISODate), state); }
+ void insert(TQDate date, int state=Map::NonWorking) { insert(date.toString(TQt::ISODate), state); }
void remove(TQDate date) {
- //kdDebug()<<k_funcinfo<<date.toString(Qt::ISODate)<<endl;
- DateMapType::remove(date.toString(Qt::ISODate));
+ //kdDebug()<<k_funcinfo<<date.toString(TQt::ISODate)<<endl;
+ DateMapType::remove(date.toString(TQt::ISODate));
}
int state(TQString date) {
@@ -64,7 +64,7 @@ public:
if (it == end()) return 0;
else return it.data();
}
- int state(TQDate date) { return state(date.toString(Qt::ISODate)); }
+ int state(TQDate date) { return state(date.toString(TQt::ISODate)); }
bool operator==(const DateMap &m) const {
return keys() == m.keys() && values() == m.values();
@@ -81,14 +81,14 @@ public:
else
DateMapType::insert(date, state);
}
- void toggle(TQDate date, int state=Map::NonWorking) { return toggle(date.toString(Qt::ISODate)); }
+ void toggle(TQDate date, int state=Map::NonWorking) { return toggle(date.toString(TQt::ISODate)); }
void toggleClear(TQString date, int state=Map::NonWorking) {
//kdDebug()<<k_funcinfo<<date<<"="<<state<<endl;
bool s = DateMapType::contains(date);
clear();
if (!s) insert(date, state);
}
- void toggleClear(TQDate date, int state=Map::NonWorking) { toggleClear(date.toString(Qt::ISODate)); }
+ void toggleClear(TQDate date, int state=Map::NonWorking) { toggleClear(date.toString(TQt::ISODate)); }
};
typedef TQMap<int, int> IntMapType;