summaryrefslogtreecommitdiffstats
path: root/tdeui/kdatepicker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/kdatepicker.cpp')
-rw-r--r--tdeui/kdatepicker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdeui/kdatepicker.cpp b/tdeui/kdatepicker.cpp
index f29e32762..a99763478 100644
--- a/tdeui/kdatepicker.cpp
+++ b/tdeui/kdatepicker.cpp
@@ -92,7 +92,7 @@ void KDatePicker::fillWeeksCombo(const TQDate &date)
// make sure that the week of the lastDay is always inserted: in Chinese calendar
// system, this is not always the case
if(day < lastDay && day.daysTo(lastDay) < 7 && calendar->weekNumber(day) != calendar->weekNumber(lastDay))
- day = TQT_TQDATE_OBJECT(lastDay.addDays(-7));
+ day = lastDay.addDays(-7);
}
}
@@ -371,7 +371,7 @@ KDatePicker::selectMonthClicked()
int day = calendar->day(date);
// ----- construct a valid date in this month:
calendar->setYMD(date, calendar->year(date), month, 1);
- date = TQT_TQDATE_OBJECT(date.addDays(TQMIN(day, calendar->daysInMonth(date)) - 1));
+ date = date.addDays(TQMIN(day, calendar->daysInMonth(date)) - 1);
// ----- set this month
setDate(date);
}