summaryrefslogtreecommitdiffstats
path: root/korganizer/kodaymatrix.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korganizer/kodaymatrix.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-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/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;