diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/datenavigator.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/datenavigator.cpp')
-rw-r--r-- | korganizer/datenavigator.cpp | 42 |
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(); |