summaryrefslogtreecommitdiffstats
path: root/korganizer/datenavigator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/datenavigator.cpp')
-rw-r--r--korganizer/datenavigator.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/korganizer/datenavigator.cpp b/korganizer/datenavigator.cpp
index bb4206b0c..a792b8416 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::currentDate() );
+ mSelectedDates.append( TQDate::tqcurrentDate() );
}
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::currentDate();
+ d = TQDate::tqcurrentDate();
}
mSelectedDates.clear();
@@ -143,10 +143,10 @@ void DateNavigator::selectWorkWeek( const TQDate &d )
int dayOfWeek = KOGlobals::self()->calendarSystem()->dayOfWeek( d );
- TQDate currentDate = d.addDays( weekStart - dayOfWeek );
+ TQDate tqcurrentDate = d.addDays( weekStart - dayOfWeek );
if ( weekStart != 1 && dayOfWeek < weekStart ) {
- currentDate = currentDate.addDays( -7 );
+ tqcurrentDate = tqcurrentDate.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( currentDate.addDays(i) );
+ mSelectedDates.append( tqcurrentDate.addDays(i) );
}
}
@@ -163,7 +163,7 @@ void DateNavigator::selectWorkWeek( const TQDate &d )
void DateNavigator::selectToday()
{
- TQDate d = TQDate::currentDate();
+ TQDate d = TQDate::tqcurrentDate();
int dateCount = mSelectedDates.count();