From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: 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 --- korganizer/kodaymatrix.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'korganizer/kodaymatrix.cpp') diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp index 93fb8740..cb172e9c 100644 --- a/korganizer/kodaymatrix.cpp +++ b/korganizer/kodaymatrix.cpp @@ -22,8 +22,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 @@ -57,17 +57,17 @@ #undef FocusIn #undef KeyPress #undef None -#undef Status +#undef tqStatus #endif // ============================================================================ // D Y N A M I C T I P // ============================================================================ -DynamicTip::DynamicTip( TQWidget * parent ) - : TQToolTip( parent ) +DynamicTip::DynamicTip( TQWidget * tqparent ) + : TQToolTip( tqparent ) { - mMatrix = static_cast( parent ); + mMatrix = static_cast( tqparent ); } @@ -99,12 +99,12 @@ void DynamicTip::maybeTip( const TQPoint &pos ) const int KODayMatrix::NOSELECTION = -1000; const int KODayMatrix::NUMDAYS = 42; -KODayMatrix::KODayMatrix( TQWidget *parent, const char *name ) - : TQFrame( parent, name ), mCalendar( 0 ), mStartDate(), mPendingChanges( false ) +KODayMatrix::KODayMatrix( TQWidget *tqparent, const char *name ) + : TQFrame( tqparent, name ), mCalendar( 0 ), mStartDate(), mPendingChanges( false ) { // initialize dynamic arrays - mDays = new QDate[ NUMDAYS ]; - mDayLabels = new QString[ NUMDAYS ]; + mDays = new TQDate[ NUMDAYS ]; + mDayLabels = new TQString[ NUMDAYS ]; mEvents = new int[ NUMDAYS ]; mToolTip = new DynamicTip( this ); @@ -279,7 +279,7 @@ void KODayMatrix::updateView( const TQDate &actdate ) for( int i = 0; i < NUMDAYS; i++ ) { //if it is a holy day then draw it red. Sundays are consider holidays, too TQStringList holidays = KOGlobals::self()->holiday( mDays[ i ] ); - TQString holiStr = TQString::null; + TQString holiStr = TQString(); if ( ( KOGlobals::self()->calendarSystem()->dayOfWeek( mDays[ i ] ) == KOGlobals::self()->calendarSystem()->weekDayOfPray() ) || @@ -681,7 +681,7 @@ void KODayMatrix::paintEvent( TQPaintEvent * ) } p.drawText(col*dwidth, row*dheight, dwidth, dheight, - Qt::AlignHCenter | Qt::AlignVCenter, mDayLabels[i]); + TQt::AlignHCenter | TQt::AlignVCenter, mDayLabels[i]); // reset color to actual color if ( holiday ) { @@ -710,7 +710,7 @@ void KODayMatrix::resizeEvent( TQResizeEvent * ) } /* static */ -QPair KODayMatrix::matrixLimits( const TQDate &month ) +TQPair KODayMatrix::matrixLimits( const TQDate &month ) { const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem(); TQDate d = month; -- cgit v1.2.3