summaryrefslogtreecommitdiffstats
path: root/korganizer/komonthview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/komonthview.cpp')
-rw-r--r--korganizer/komonthview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index 264525418..930e6c8d3 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -78,7 +78,7 @@ void KOMonthCellToolTip::maybeTip( const TQPoint &pos )
if( i && KOPrefs::instance()->mEnableToolTips ) {
/* Calculate the rectangle. */
- r=eventlist->itemRect( it );
+ r=eventlist->tqitemRect( it );
/* Show the tip */
TQString tipText( IncidenceFormatter::toolTipStr( mCalendar, i->incidence(), mDate ) );
if ( !tipText.isEmpty() ) {
@@ -249,7 +249,7 @@ void MonthViewItem::paint( TQPainter *p )
if ( mIncidence && mTodo ) {
if ( static_cast<Todo*>( mIncidence )->isOverdue() ) {
bgColor = KOPrefs::instance()->todoOverdueColor();
- } else if ( static_cast<Todo*>( mIncidence )->dtDue().date() == TQDate::currentDate() ) {
+ } else if ( static_cast<Todo*>( mIncidence )->dtDue().date() == TQDate::tqcurrentDate() ) {
bgColor = KOPrefs::instance()->todoDueTodayColor();
}
}
@@ -392,7 +392,7 @@ MonthViewCell::MonthViewCell( KOMonthView *parent)
mLabel = new TQLabel( this );
mLabel->setFrameStyle( TQFrame::Panel | TQFrame::Plain );
mLabel->setLineWidth( 1 );
- mLabel->setAlignment( AlignCenter );
+ mLabel->tqsetAlignment( AlignCenter );
mItemList = new KNoScrollListBox( this );
mItemList->setMinimumSize( 10, 10 );
@@ -455,7 +455,7 @@ TQDate MonthViewCell::date() const
void MonthViewCell::setFrameWidth()
{
// show current day with a thicker frame
- if ( mDate == TQDate::currentDate() ) {
+ if ( mDate == TQDate::tqcurrentDate() ) {
mItemList->setLineWidth( 3 );
} else if ( !isSelected ) {
mItemList->setLineWidth( 1 );
@@ -500,7 +500,7 @@ void MonthViewCell::updateCell()
{
setFrameWidth();
- if ( mDate == TQDate::currentDate() ) {
+ if ( mDate == TQDate::tqcurrentDate() ) {
setPalette( mTodayPalette );
TQPalette pal = mItemList->palette();
@@ -763,7 +763,7 @@ void MonthViewCell::select()
enableScrollBars( true );
// don't mess up the cell when it represents today
- if( mDate != TQDate::currentDate() ) {
+ if( mDate != TQDate::tqcurrentDate() ) {
mItemList->setFrameStyle( TQFrame::Sunken | TQFrame::Panel );
mItemList->setLineWidth( 3 );
}
@@ -832,14 +832,14 @@ KOMonthView::KOMonthView( Calendar *calendar, TQWidget *parent, const char *name
// month name on top
mLabel = new TQLabel( this );
mLabel->setFont( mfont );
- mLabel->setAlignment( AlignCenter );
+ mLabel->tqsetAlignment( AlignCenter );
mLabel->setLineWidth( 0 );
mLabel->setFrameStyle( TQFrame::Plain );
dayLayout->addMultiCellWidget( mLabel, 0, 0, 0, mDaysPerWeek );
// create the day of the week labels (Sun, Mon, etc) and add them to
- // the layout.
+ // the tqlayout.
mDayLabels.resize( mDaysPerWeek );
int i;
for( i = 0; i < mDaysPerWeek; i++ ) {
@@ -847,7 +847,7 @@ KOMonthView::KOMonthView( Calendar *calendar, TQWidget *parent, const char *name
label->setFont( bfont );
label->setFrameStyle( TQFrame::Panel | TQFrame::Raised );
label->setLineWidth( 1 );
- label->setAlignment( AlignCenter );
+ label->tqsetAlignment( AlignCenter );
mDayLabels.insert( i, label );
@@ -890,7 +890,7 @@ int KOMonthView::maxDatesHint()
return mNumCells;
}
-int KOMonthView::currentDateCount()
+int KOMonthView::tqcurrentDateCount()
{
return mNumCells;
}