diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korganizer/datenavigatorcontainer.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/datenavigatorcontainer.cpp')
-rw-r--r-- | korganizer/datenavigatorcontainer.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/korganizer/datenavigatorcontainer.cpp b/korganizer/datenavigatorcontainer.cpp index e1e3223ab..462920c5f 100644 --- a/korganizer/datenavigatorcontainer.cpp +++ b/korganizer/datenavigatorcontainer.cpp @@ -19,8 +19,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include <kdebug.h> @@ -39,9 +39,9 @@ #include <tqwhatsthis.h> #include <tqtimer.h> -DateNavigatorContainer::DateNavigatorContainer( TQWidget *parent, +DateNavigatorContainer::DateNavigatorContainer( TQWidget *tqparent, const char *name ) - : TQFrame( parent, name ), mCalendar( 0 ), + : TQFrame( tqparent, name ), mCalendar( 0 ), mHorizontalCount( 1 ), mVerticalCount( 1 ) { mExtraViews.setAutoDelete( true ); @@ -300,7 +300,7 @@ TQSize DateNavigatorContainer::tqsizeHint() const void DateNavigatorContainer::goNextMonth() { - const QPair<TQDate,TQDate> p = dateLimits( 1 ); + const TQPair<TQDate,TQDate> p = dateLimits( 1 ); emit nextMonthClicked( mNavigatorView->month(), p.first, @@ -309,14 +309,14 @@ void DateNavigatorContainer::goNextMonth() void DateNavigatorContainer::goPrevMonth() { - const QPair<TQDate,TQDate> p = dateLimits( -1 ); + const TQPair<TQDate,TQDate> p = dateLimits( -1 ); emit prevMonthClicked( mNavigatorView->month(), p.first, p.second ); } -QPair<TQDate,TQDate> DateNavigatorContainer::dateLimits( int offset ) +TQPair<TQDate,TQDate> DateNavigatorContainer::dateLimits( int offset ) { const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem(); TQDate firstMonth, lastMonth; @@ -329,8 +329,8 @@ QPair<TQDate,TQDate> DateNavigatorContainer::dateLimits( int offset ) firstMonth = calSys->addMonths( mNavigatorView->month(), offset ); lastMonth = calSys->addMonths( lastMonth, offset ); - QPair<TQDate,TQDate> firstMonthBoundary = KODayMatrix::matrixLimits( firstMonth ); - QPair<TQDate,TQDate> lastMonthBoundary = KODayMatrix::matrixLimits( lastMonth ); + TQPair<TQDate,TQDate> firstMonthBoundary = KODayMatrix::matrixLimits( firstMonth ); + TQPair<TQDate,TQDate> lastMonthBoundary = KODayMatrix::matrixLimits( lastMonth ); return qMakePair( firstMonthBoundary.first, lastMonthBoundary.second ); } |