summaryrefslogtreecommitdiffstats
path: root/kplato/kptdatetable.cc
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/kptdatetable.cc
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/kptdatetable.cc')
-rw-r--r--kplato/kptdatetable.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/kplato/kptdatetable.cc b/kplato/kptdatetable.cc
index 5b25c3a4..f552de26 100644
--- a/kplato/kptdatetable.cc
+++ b/kplato/kptdatetable.cc
@@ -142,7 +142,7 @@ void DateTable::paintWeekday(TQPainter *painter, int col) {
painter->drawRect(0, 0, w, h);
painter->setPen(colorTextHoliday);
}
- if (m_selectedWeekdays.tqcontains(day)) {
+ if (m_selectedWeekdays.contains(day)) {
painter->setPen(backgroundSelectColor);
painter->setBrush(backgroundSelectColor);
painter->drawRect(2, 2, w-4, h-4);
@@ -214,7 +214,7 @@ void DateTable::paintDay(TQPainter *painter, int row, int col) {
painter->setBrush(colorBackgroundWorkday);
painter->drawRect(0, 0, w, h);
}
- if(m_selectedDates.tqcontains(d)) {
+ if(m_selectedDates.contains(d)) {
//kdDebug()<<k_funcinfo<<"Selected: "<<d<<" row,col=("<<row<<","<<col<<")"<<endl;
painter->setPen(backgroundSelectColor);
painter->setBrush(backgroundSelectColor);
@@ -401,7 +401,7 @@ void DateTable::contentsMousePressEvent(TQMouseEvent *e) {
bool select = false;
for(int i=m_dateStartCol; i < col; ++i) {
//kdDebug()<<"Down["<<i<<"]: col="<<col<<" day="<<day<<" column(i)="<<column(i)<<endl;
- if (m_selectedWeekdays.tqcontains(weekday(i))) {
+ if (m_selectedWeekdays.contains(weekday(i))) {
select = true; // we have hit a selected day; select the rest
} else if (select) {
m_selectedWeekdays.toggle(weekday(i)); // select
@@ -411,14 +411,14 @@ void DateTable::contentsMousePressEvent(TQMouseEvent *e) {
select = false;
for(int i=7; i > col; --i) {
//kdDebug()<<"Up["<<i<<"]: col="<<col<<" day="<<day<<" column(i)="<<column(i)<<endl;
- if (m_selectedWeekdays.tqcontains(weekday(i))) {
+ if (m_selectedWeekdays.contains(weekday(i))) {
if (selected) m_selectedWeekdays.toggle(weekday(i)); // deselect
else select = true;
} else if (select) {
m_selectedWeekdays.toggle(weekday(i)); // select
}
}
- if (!m_selectedWeekdays.tqcontains(day)) {
+ if (!m_selectedWeekdays.contains(day)) {
m_selectedWeekdays.toggle(day); // always select
}
} else if (e->state() & ControlButton) {
@@ -556,7 +556,7 @@ bool DateTable::setDate(const TQDate& date_, bool tqrepaint) {
setWeekNumbers(d.addDays(d.daysInMonth()-1));
}
/* if (m_selectedWeekdays.isEmpty() &&
- !m_selectedDates.isEmpty() && !m_selectedDates.tqcontains(date))
+ !m_selectedDates.isEmpty() && !m_selectedDates.contains(date))
{
//kdDebug()<<k_funcinfo<<"date inserted"<<endl;
m_selectedDates.insert(date);
@@ -618,8 +618,8 @@ void DateTable::updateSelectedCells() {
TQDate dt(date.year(), date.month(), 1);
dt = dt.addDays(-firstday);
for (int pos=0; pos < 42; ++pos) {
- if (m_selectedDates.tqcontains(dt.addDays(pos)) ||
- m_selectedWeekdays.tqcontains(pos%7+1))
+ if (m_selectedDates.contains(dt.addDays(pos)) ||
+ m_selectedWeekdays.contains(pos%7+1))
{
updateCell(pos/7+1, pos%7+1);
//kdDebug()<<k_funcinfo<<" update cell ("<<pos/7+1<<","<<pos%7+1<<") date="<<dt.addDays(pos).toString()<<endl;
@@ -631,8 +631,8 @@ void DateTable::updateMarkedCells() {
TQDate dt(date.year(), date.month(), 1);
dt = dt.addDays(-firstday);
for (int pos=0; pos < 42; ++pos) {
- if (m_markedDates.tqcontains(dt.addDays(pos)) ||
- m_markedWeekdays.tqcontains(pos%7+1))
+ if (m_markedDates.contains(dt.addDays(pos)) ||
+ m_markedWeekdays.contains(pos%7+1))
{
updateCell(pos/7+1, pos%7+1);
//kdDebug()<<k_funcinfo<<" update cell ("<<pos/7+1<<","<<pos%7+1<<") date="<<dt.addDays(pos).toString()<<endl;
@@ -649,7 +649,7 @@ void DateTable::setMarkedWeekdays(const IntMap days) {
}
bool DateTable::weekdayMarked(int day) {
- return m_markedWeekdays.tqcontains(day);
+ return m_markedWeekdays.contains(day);
}
bool DateTable::dateMarked(TQDate date) {