summaryrefslogtreecommitdiffstats
path: root/korganizer/datenavigator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/datenavigator.cpp')
-rw-r--r--korganizer/datenavigator.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/korganizer/datenavigator.cpp b/korganizer/datenavigator.cpp
index 56360ca2e..6f5570a10 100644
--- a/korganizer/datenavigator.cpp
+++ b/korganizer/datenavigator.cpp
@@ -34,10 +34,10 @@
using namespace KCal;
-DateNavigator::DateNavigator( QObject *parent, const char *name )
- : QObject( parent, name )
+DateNavigator::DateNavigator( TQObject *parent, const char *name )
+ : TQObject( parent, name )
{
- mSelectedDates.append( QDate::currentDate() );
+ mSelectedDates.append( TQDate::currentDate() );
}
DateNavigator::~DateNavigator()
@@ -63,13 +63,13 @@ void DateNavigator::selectDates( const DateList& dateList )
}
}
-void DateNavigator::selectDate( const QDate &date )
+void DateNavigator::selectDate( const TQDate &date )
{
- QDate d = date;
+ TQDate d = date;
if ( !d.isValid() ) {
- kdDebug(5850) << "DateNavigator::selectDates(QDate): an invalid date was passed as a parameter!" << endl;
- d = QDate::currentDate();
+ kdDebug(5850) << "DateNavigator::selectDates(TQDate): an invalid date was passed as a parameter!" << endl;
+ d = TQDate::currentDate();
}
mSelectedDates.clear();
@@ -83,7 +83,7 @@ void DateNavigator::selectDates( int count )
selectDates( mSelectedDates.first(), count );
}
-void DateNavigator::selectDates( const QDate &d, int count )
+void DateNavigator::selectDates( const TQDate &d, int count )
{
DateList dates;
@@ -97,7 +97,7 @@ void DateNavigator::selectDates( const QDate &d, int count )
emitSelected();
}
-void DateNavigator::selectWeekByDay( int weekDay, const QDate &d )
+void DateNavigator::selectWeekByDay( int weekDay, const TQDate &d )
{
int dateCount = mSelectedDates.count();
bool weekStart = ( weekDay == KGlobal::locale()->weekStartDay() );
@@ -110,13 +110,13 @@ void DateNavigator::selectWeek()
selectWeek( mSelectedDates.first() );
}
-void DateNavigator::selectWeek( const QDate &d )
+void DateNavigator::selectWeek( const TQDate &d )
{
int dayOfWeek = KOGlobals::self()->calendarSystem()->dayOfWeek( d );
int weekStart = KGlobal::locale()->weekStartDay();
- QDate firstDate = d.addDays( weekStart - dayOfWeek );
+ TQDate firstDate = d.addDays( weekStart - dayOfWeek );
if ( weekStart != 1 && dayOfWeek < weekStart ) {
firstDate = firstDate.addDays( -7 );
@@ -130,13 +130,13 @@ void DateNavigator::selectWorkWeek()
selectWorkWeek( mSelectedDates.first() );
}
-void DateNavigator::selectWorkWeek( const QDate &d )
+void DateNavigator::selectWorkWeek( const TQDate &d )
{
int weekStart = KGlobal::locale()->weekStartDay();
int dayOfWeek = KOGlobals::self()->calendarSystem()->dayOfWeek( d );
- QDate currentDate = d.addDays( weekStart - dayOfWeek );
+ TQDate currentDate = d.addDays( weekStart - dayOfWeek );
if ( weekStart != 1 && dayOfWeek < weekStart ) {
currentDate = currentDate.addDays( -7 );
@@ -156,7 +156,7 @@ void DateNavigator::selectWorkWeek( const QDate &d )
void DateNavigator::selectToday()
{
- QDate d = QDate::currentDate();
+ TQDate d = TQDate::currentDate();
int dateCount = mSelectedDates.count();
@@ -166,7 +166,7 @@ void DateNavigator::selectToday()
void DateNavigator::selectPreviousYear()
{
- QDate firstSelected = mSelectedDates.first();
+ TQDate firstSelected = mSelectedDates.first();
int weekDay = firstSelected.dayOfWeek();
firstSelected = KOGlobals::self()->calendarSystem()->addYears( firstSelected, -1 );
@@ -175,7 +175,7 @@ void DateNavigator::selectPreviousYear()
void DateNavigator::selectPreviousMonth()
{
- QDate firstSelected = mSelectedDates.first();
+ TQDate firstSelected = mSelectedDates.first();
int weekDay = firstSelected.dayOfWeek();
firstSelected = KOGlobals::self()->calendarSystem()->addMonths( firstSelected, -1 );
@@ -184,7 +184,7 @@ void DateNavigator::selectPreviousMonth()
void DateNavigator::selectPreviousWeek()
{
- QDate firstSelected = mSelectedDates.first();
+ TQDate firstSelected = mSelectedDates.first();
int weekDay = firstSelected.dayOfWeek();
firstSelected = KOGlobals::self()->calendarSystem()->addDays( firstSelected, -7 );
@@ -193,7 +193,7 @@ void DateNavigator::selectPreviousWeek()
void DateNavigator::selectNextWeek()
{
- QDate firstSelected = mSelectedDates.first();
+ TQDate firstSelected = mSelectedDates.first();
int weekDay = firstSelected.dayOfWeek();
firstSelected = KOGlobals::self()->calendarSystem()->addDays( firstSelected, 7 );
@@ -203,7 +203,7 @@ void DateNavigator::selectNextWeek()
void DateNavigator::selectNextMonth()
{
- QDate firstSelected = mSelectedDates.first();
+ TQDate firstSelected = mSelectedDates.first();
int weekDay = firstSelected.dayOfWeek();
firstSelected = KOGlobals::self()->calendarSystem()->addMonths( firstSelected, 1 );
@@ -213,7 +213,7 @@ void DateNavigator::selectNextMonth()
void DateNavigator::selectNextYear()
{
- QDate firstSelected = mSelectedDates.first();
+ TQDate firstSelected = mSelectedDates.first();
int weekDay = firstSelected.dayOfWeek();
firstSelected = KOGlobals::self()->calendarSystem()->addYears( firstSelected, 1 );
@@ -242,7 +242,7 @@ void DateNavigator::selectNext()
void DateNavigator::selectMonth(int month)
{
- QDate firstSelected = mSelectedDates.first();
+ TQDate firstSelected = mSelectedDates.first();
int weekDay = firstSelected.dayOfWeek();
const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();