summaryrefslogtreecommitdiffstats
path: root/korganizer/komonthview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-03 04:24:29 +0200
commite3649f744289c180537d2d8474dc0e39050e654f (patch)
tree5d3d773985c0bfdfed5e0aed35fe8b2441d60787 /korganizer/komonthview.cpp
parent4b4a3f32d8e71d79626206211ee6e23ee1e968b8 (diff)
downloadtdepim-e3649f744289c180537d2d8474dc0e39050e654f.tar.gz
tdepim-e3649f744289c180537d2d8474dc0e39050e654f.zip
Rename old tq methods that no longer need a unique name
(cherry picked from commit 0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78)
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;
}