summaryrefslogtreecommitdiffstats
path: root/kplato/kptmap.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /kplato/kptmap.h
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz
koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kplato/kptmap.h')
-rw-r--r--kplato/kptmap.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/kplato/kptmap.h b/kplato/kptmap.h
index f21612c3..134eeac7 100644
--- a/kplato/kptmap.h
+++ b/kplato/kptmap.h
@@ -43,7 +43,7 @@ public:
DateMap() {}
virtual ~DateMap() {}
- virtual bool tqcontains(TQDate date) const { return DateMapType::tqcontains(date.toString(Qt::ISODate)); }
+ virtual bool contains(TQDate date) const { return DateMapType::contains(date.toString(Qt::ISODate)); }
void insert(TQString date, int state=Map::NonWorking) {
//kdDebug()<<k_funcinfo<<date<<"="<<state<<endl;
@@ -60,7 +60,7 @@ public:
}
int state(TQString date) {
- DateMapType::iterator it = tqfind(date);
+ DateMapType::iterator it = find(date);
if (it == end()) return 0;
else return it.data();
}
@@ -76,7 +76,7 @@ public:
// boolean use
void toggle(TQString date, int state=Map::NonWorking) {
//kdDebug()<<k_funcinfo<<date<<"="<<state<<endl;
- if (DateMapType::tqcontains(date))
+ if (DateMapType::contains(date))
DateMapType::remove(date);
else
DateMapType::insert(date, state);
@@ -84,7 +84,7 @@ public:
void toggle(TQDate date, int state=Map::NonWorking) { return toggle(date.toString(Qt::ISODate)); }
void toggleClear(TQString date, int state=Map::NonWorking) {
//kdDebug()<<k_funcinfo<<date<<"="<<state<<endl;
- bool s = DateMapType::tqcontains(date);
+ bool s = DateMapType::contains(date);
clear();
if (!s) insert(date, state);
}
@@ -105,7 +105,7 @@ public:
IntMapType::insert(key, state); }
virtual int state(int key) {
- IntMapType::iterator it = IntMapType::tqfind(key);
+ IntMapType::iterator it = IntMapType::find(key);
if (it == IntMapType::end()) return 0;
else return it.data();
}
@@ -118,9 +118,9 @@ public:
}
// boolean use
- void toggle(int key, int state=Map::NonWorking) { IntMapType::tqcontains(key) ? remove(key) : insert(key, state); }
+ void toggle(int key, int state=Map::NonWorking) { IntMapType::contains(key) ? remove(key) : insert(key, state); }
void toggleClear(int key, int state=Map::NonWorking) {
- bool s =tqcontains(key);
+ bool s =contains(key);
clear();
if (!s) insert(key, state);
}
@@ -129,8 +129,8 @@ public:
class WeekMap : public IntMap
{
public:
- bool tqcontains(int week, int year) { return IntMap::tqcontains(week*10000 + year); }
- bool tqcontains(TQPair<int,int> week) { return tqcontains(week.first, week.second); }
+ bool contains(int week, int year) { return IntMap::contains(week*10000 + year); }
+ bool contains(TQPair<int,int> week) { return contains(week.first, week.second); }
void insert(int week, int year, int state=Map::NonWorking) {
if (week < 1 || week > 53) { kdError()<<k_funcinfo<<"Illegal week number: "<<week<<endl; return; }