summaryrefslogtreecommitdiffstats
path: root/korganizer/komonthview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
commit0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78 (patch)
tree4138783f7dad757fc5fbfaa8d66a355288d3125e /korganizer/komonthview.cpp
parent9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (diff)
downloadtdepim-0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78.tar.gz
tdepim-0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'korganizer/komonthview.cpp')
-rw-r--r--korganizer/komonthview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index eead72522..669049d74 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->tqitemRect( it );
+ r=eventlist->itemRect( it );
/* Show the tip */
TQString tipText( IncidenceFormatter::toolTipStr( mCalendar, i->incidence(), mDate ) );
if ( !tipText.isEmpty() ) {
@@ -245,7 +245,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::tqcurrentDate() ) {
+ } else if ( static_cast<Todo*>( mIncidence )->dtDue().date() == TQDate::currentDate() ) {
bgColor = KOPrefs::instance()->todoDueTodayColor();
}
}
@@ -388,7 +388,7 @@ MonthViewCell::MonthViewCell( KOMonthView *parent)
mLabel = new TQLabel( this );
mLabel->setFrameStyle( TQFrame::Panel | TQFrame::Plain );
mLabel->setLineWidth( 1 );
- mLabel->tqsetAlignment( AlignCenter );
+ mLabel->setAlignment( AlignCenter );
mItemList = new KNoScrollListBox( this );
mItemList->setMinimumSize( 10, 10 );
@@ -451,7 +451,7 @@ TQDate MonthViewCell::date() const
void MonthViewCell::setFrameWidth()
{
// show current day with a thicker frame
- if ( mDate == TQDate::tqcurrentDate() ) {
+ if ( mDate == TQDate::currentDate() ) {
mItemList->setLineWidth( 3 );
} else if ( !isSelected ) {
mItemList->setLineWidth( 1 );
@@ -496,7 +496,7 @@ void MonthViewCell::updateCell()
{
setFrameWidth();
- if ( mDate == TQDate::tqcurrentDate() ) {
+ if ( mDate == TQDate::currentDate() ) {
setPalette( mTodayPalette );
TQPalette pal = mItemList->palette();
@@ -759,7 +759,7 @@ void MonthViewCell::select()
enableScrollBars( true );
// don't mess up the cell when it represents today
- if( mDate != TQDate::tqcurrentDate() ) {
+ if( mDate != TQDate::currentDate() ) {
mItemList->setFrameStyle( TQFrame::Sunken | TQFrame::Panel );
mItemList->setLineWidth( 3 );
}
@@ -828,7 +828,7 @@ KOMonthView::KOMonthView( Calendar *calendar, TQWidget *parent, const char *name
// month name on top
mLabel = new TQLabel( this );
mLabel->setFont( mfont );
- mLabel->tqsetAlignment( AlignCenter );
+ mLabel->setAlignment( AlignCenter );
mLabel->setLineWidth( 0 );
mLabel->setFrameStyle( TQFrame::Plain );
@@ -843,7 +843,7 @@ KOMonthView::KOMonthView( Calendar *calendar, TQWidget *parent, const char *name
label->setFont( bfont );
label->setFrameStyle( TQFrame::Panel | TQFrame::Raised );
label->setLineWidth( 1 );
- label->tqsetAlignment( AlignCenter );
+ label->setAlignment( AlignCenter );
mDayLabels.insert( i, label );
@@ -886,7 +886,7 @@ int KOMonthView::maxDatesHint()
return mNumCells;
}
-int KOMonthView::tqcurrentDateCount()
+int KOMonthView::currentDateCount()
{
return mNumCells;
}