diff options
Diffstat (limited to 'korganizer/datenavigator.cpp')
-rw-r--r-- | korganizer/datenavigator.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/korganizer/datenavigator.cpp b/korganizer/datenavigator.cpp index a792b8416..bb4206b0c 100644 --- a/korganizer/datenavigator.cpp +++ b/korganizer/datenavigator.cpp @@ -37,7 +37,7 @@ using namespace KCal; DateNavigator::DateNavigator( TQObject *parent, const char *name ) : TQObject( parent, name ) { - mSelectedDates.append( TQDate::tqcurrentDate() ); + mSelectedDates.append( TQDate::currentDate() ); } DateNavigator::~DateNavigator() @@ -69,7 +69,7 @@ void DateNavigator::selectDate( const TQDate &date ) if ( !d.isValid() ) { kdDebug(5850) << "DateNavigator::selectDates(TQDate): an invalid date was passed as a parameter!" << endl; - d = TQDate::tqcurrentDate(); + d = TQDate::currentDate(); } mSelectedDates.clear(); @@ -143,10 +143,10 @@ void DateNavigator::selectWorkWeek( const TQDate &d ) int dayOfWeek = KOGlobals::self()->calendarSystem()->dayOfWeek( d ); - TQDate tqcurrentDate = d.addDays( weekStart - dayOfWeek ); + TQDate currentDate = d.addDays( weekStart - dayOfWeek ); if ( weekStart != 1 && dayOfWeek < weekStart ) { - tqcurrentDate = tqcurrentDate.addDays( -7 ); + currentDate = currentDate.addDays( -7 ); } mSelectedDates.clear(); @@ -154,7 +154,7 @@ void DateNavigator::selectWorkWeek( const TQDate &d ) for ( int i = 0; i < 7; ++i ) { if( (1<< ((i + weekStart + 6) % 7)) & (mask) ) { - mSelectedDates.append( tqcurrentDate.addDays(i) ); + mSelectedDates.append( currentDate.addDays(i) ); } } @@ -163,7 +163,7 @@ void DateNavigator::selectWorkWeek( const TQDate &d ) void DateNavigator::selectToday() { - TQDate d = TQDate::tqcurrentDate(); + TQDate d = TQDate::currentDate(); int dateCount = mSelectedDates.count(); |