summaryrefslogtreecommitdiffstats
path: root/tdeui
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui')
-rw-r--r--tdeui/kdatepicker.cpp4
-rw-r--r--tdeui/kdatetbl.cpp22
-rw-r--r--tdeui/kdatetimewidget.cpp4
3 files changed, 15 insertions, 15 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);
}
diff --git a/tdeui/kdatetbl.cpp b/tdeui/kdatetbl.cpp
index ec5a1a132..4072bafd2 100644
--- a/tdeui/kdatetbl.cpp
+++ b/tdeui/kdatetbl.cpp
@@ -351,22 +351,22 @@ void KDateTable::previousMonth()
void KDateTable::beginningOfMonth()
{
- setDate(TQT_TQDATE_OBJECT(date.addDays(1 - date.day())));
+ setDate(date.addDays(1 - date.day()));
}
void KDateTable::endOfMonth()
{
- setDate(TQT_TQDATE_OBJECT(date.addDays(date.daysInMonth() - date.day())));
+ setDate(date.addDays(date.daysInMonth() - date.day()));
}
void KDateTable::beginningOfWeek()
{
- setDate(TQT_TQDATE_OBJECT(date.addDays(1 - date.dayOfWeek())));
+ setDate(date.addDays(1 - date.dayOfWeek()));
}
void KDateTable::endOfWeek()
{
- setDate(TQT_TQDATE_OBJECT(date.addDays(7 - date.dayOfWeek())));
+ setDate(date.addDays(7 - date.dayOfWeek()));
}
void
@@ -374,22 +374,22 @@ KDateTable::keyPressEvent( TQKeyEvent *e )
{
switch( e->key() ) {
case Key_Up:
- setDate(TQT_TQDATE_OBJECT(date.addDays(-7)));
+ setDate(date.addDays(-7));
break;
case Key_Down:
- setDate(TQT_TQDATE_OBJECT(date.addDays(7)));
+ setDate(date.addDays(7));
break;
case Key_Left:
- setDate(TQT_TQDATE_OBJECT(date.addDays(-1)));
+ setDate(date.addDays(-1));
break;
case Key_Right:
- setDate(TQT_TQDATE_OBJECT(date.addDays(1)));
+ setDate(date.addDays(1));
break;
case Key_Minus:
- setDate(TQT_TQDATE_OBJECT(date.addDays(-1)));
+ setDate(date.addDays(-1));
break;
case Key_Plus:
- setDate(TQT_TQDATE_OBJECT(date.addDays(1)));
+ setDate(date.addDays(1));
break;
case Key_N:
setDate(TQDate::currentDate());
@@ -447,7 +447,7 @@ KDateTable::setFontSize(int size)
void
KDateTable::wheelEvent ( TQWheelEvent * e )
{
- setDate(TQT_TQDATE_OBJECT(date.addMonths( -(int)(e->delta()/120)) ));
+ setDate(date.addMonths( -(int)(e->delta()/120)) );
e->accept();
}
diff --git a/tdeui/kdatetimewidget.cpp b/tdeui/kdatetimewidget.cpp
index d7b677af9..76d92edd2 100644
--- a/tdeui/kdatetimewidget.cpp
+++ b/tdeui/kdatetimewidget.cpp
@@ -52,8 +52,8 @@ void KDateTimeWidget::init()
void KDateTimeWidget::setDateTime(const TQDateTime & datetime)
{
- d->dateWidget->setDate(TQT_TQDATE_OBJECT(datetime.date()));
- d->timeWidget->setTime(TQT_TQTIME_OBJECT(datetime.time()));
+ d->dateWidget->setDate(datetime.date());
+ d->timeWidget->setTime(datetime.time());
}
TQDateTime KDateTimeWidget::dateTime() const