summaryrefslogtreecommitdiffstats
path: root/korganizer/kodaymatrix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/kodaymatrix.cpp')
-rw-r--r--korganizer/kodaymatrix.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp
index 93fb8740f..cb172e9ce 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 <tqevent.h>
@@ -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<KODayMatrix *>( parent );
+ mMatrix = static_cast<KODayMatrix *>( 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<TQDate,TQDate> KODayMatrix::matrixLimits( const TQDate &month )
+TQPair<TQDate,TQDate> KODayMatrix::matrixLimits( const TQDate &month )
{
const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
TQDate d = month;