summaryrefslogtreecommitdiffstats
path: root/kplato/kptmap.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-05 11:54:26 +0900
committerMichele Calgaro <[email protected]>2023-11-16 23:37:57 +0900
commitef06f14f2475bd08d3ea2ceec54a7b2238f3554e (patch)
tree03df826633e4ba084d133ca977c4fc37c74f21ac /kplato/kptmap.h
parent895081803a715ee89f4a90cfbf63d558ef2b2ebc (diff)
downloadkoffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.tar.gz
koffice-ef06f14f2475bd08d3ea2ceec54a7b2238f3554e.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
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;