summaryrefslogtreecommitdiffstats
path: root/korganizer/komonthview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
commit9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch)
treeab537a329b9613e11dce8195761f93ffe82aed24 /korganizer/komonthview.cpp
parent3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff)
downloadtdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz
tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'korganizer/komonthview.cpp')
-rw-r--r--korganizer/komonthview.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index 5f6fd8ca7..eead72522 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -34,7 +34,7 @@
#include <tqpainter.h>
#include <tqcursor.h>
#include <tqlistbox.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlabel.h>
#include <kdebug.h>
@@ -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() ) {
@@ -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::currentDate() ) {
+ } else if ( static_cast<Todo*>( mIncidence )->dtDue().date() == TQDate::tqcurrentDate() ) {
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->setAlignment( AlignCenter );
+ mLabel->tqsetAlignment( AlignCenter );
mItemList = new KNoScrollListBox( this );
mItemList->setMinimumSize( 10, 10 );
@@ -425,8 +425,8 @@ void MonthViewCell::setDate( const TQDate &date )
TQString text;
if ( KOGlobals::self()->calendarSystem()->day( date ) == 1 ) {
text = i18n("'Month day' for month view cells", "%1 %2")
- .arg( KOGlobals::self()->calendarSystem()->monthName( date, true ) )
- .arg( KOGlobals::self()->calendarSystem()->day(mDate) );
+ .tqarg( KOGlobals::self()->calendarSystem()->monthName( date, true ) )
+ .tqarg( KOGlobals::self()->calendarSystem()->day(mDate) );
TQFontMetrics fm( mLabel->font() );
mLabel->resize( mLabelSize + TQSize( fm.width( text ), 0 ) );
} else {
@@ -451,7 +451,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 );
@@ -496,7 +496,7 @@ void MonthViewCell::updateCell()
{
setFrameWidth();
- if ( mDate == TQDate::currentDate() ) {
+ if ( mDate == TQDate::tqcurrentDate() ) {
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::currentDate() ) {
+ if( mDate != TQDate::tqcurrentDate() ) {
mItemList->setFrameStyle( TQFrame::Sunken | TQFrame::Panel );
mItemList->setLineWidth( 3 );
}
@@ -828,14 +828,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++ ) {
@@ -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->setAlignment( AlignCenter );
+ label->tqsetAlignment( AlignCenter );
mDayLabels.insert( i, label );
@@ -886,7 +886,7 @@ int KOMonthView::maxDatesHint()
return mNumCells;
}
-int KOMonthView::currentDateCount()
+int KOMonthView::tqcurrentDateCount()
{
return mNumCells;
}
@@ -976,8 +976,8 @@ void KOMonthView::showDates( const TQDate &start, const TQDate & )
mStartDate = mStartDate.addDays( -weekdayCol );
mLabel->setText( i18n( "monthname year", "%1 %2" )
- .arg( calSys->monthName( start ) )
- .arg( calSys->year( start ) ) );
+ .tqarg( calSys->monthName( start ) )
+ .tqarg( calSys->year( start ) ) );
showLabel( !KOPrefs::instance()->fullViewMonth() );