summaryrefslogtreecommitdiffstats
path: root/korganizer/koagendaitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koagendaitem.cpp')
-rw-r--r--korganizer/koagendaitem.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp
index 21eea0e1..a7ba07d0 100644
--- a/korganizer/koagendaitem.cpp
+++ b/korganizer/koagendaitem.cpp
@@ -19,8 +19,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 <tqtooltip.h>
@@ -64,10 +64,10 @@ TQPixmap *KOAgendaItem::organizerPxmp = 0;
//--------------------------------------------------------------------------
KOAgendaItem::KOAgendaItem( Calendar *calendar, Incidence *incidence,
- const TQDate &qd, TQWidget *parent,
+ const TQDate &qd, TQWidget *tqparent,
int itemPos, int itemCount,
const char *name, WFlags f ) :
- TQWidget( parent, name, f ), mCalendar( calendar ), mIncidence( incidence ), mDate( qd ),
+ TQWidget( tqparent, name, f ), mCalendar( calendar ), mIncidence( incidence ), mDate( qd ),
mLabelText( mIncidence->summary() ), mIconAlarm( false ),
mIconRecur( false ), mIconReadonly( false ), mIconReply( false ),
mIconGroup( false ), mIconGroupTentative( false ), mIconOrganizer( false ),
@@ -75,7 +75,7 @@ KOAgendaItem::KOAgendaItem( Calendar *calendar, Incidence *incidence,
mItemPos( itemPos ), mItemCount( itemCount ),
mMultiItemInfo( 0 ), mStartMoveInfo( 0 )
{
- setBackgroundMode( Qt::NoBackground );
+ setBackgroundMode( TQt::NoBackground );
setCellXY( 0, 0, 1 );
setCellXRight( 0 );
@@ -624,7 +624,7 @@ void KOAgendaItem::setConflictItems( TQPtrList<KOAgendaItem> ci )
void KOAgendaItem::addConflictItem( KOAgendaItem *ci )
{
- if ( mConflictItems.find( ci ) < 0 ) mConflictItems.append( ci );
+ if ( mConflictItems.tqfind( ci ) < 0 ) mConflictItems.append( ci );
}
TQString KOAgendaItem::label() const
@@ -857,10 +857,10 @@ void KOAgendaItem::paintEvent( TQPaintEvent *ev )
int th = ww->boundingRect().height();
delete ww;
- int hlHeight = QMAX(fm.boundingRect(longH).height(),
- QMAX(alarmPxmp->height(), QMAX(recurPxmp->height(),
- QMAX(readonlyPxmp->height(), QMAX(replyPxmp->height(),
- QMAX(groupPxmp->height(), organizerPxmp->height()))))));
+ int hlHeight = TQMAX(fm.boundingRect(longH).height(),
+ TQMAX(alarmPxmp->height(), TQMAX(recurPxmp->height(),
+ TQMAX(readonlyPxmp->height(), TQMAX(replyPxmp->height(),
+ TQMAX(groupPxmp->height(), organizerPxmp->height()))))));
bool completelyRenderable = th < (height() - 2 * ft - 2 - hlHeight);
@@ -917,7 +917,7 @@ void KOAgendaItem::paintEvent( TQPaintEvent *ev )
mLabelText );
//kdDebug() << "SIZES for " << mLabelText << ": " << width() << " :: " << txtWidth << endl;
- ww->drawText( &p, x, margin, Qt::AlignHCenter | KWordWrap::FadeOut );
+ ww->drawText( &p, x, margin, TQt::AlignHCenter | KWordWrap::FadeOut );
delete ww;
return;
}
@@ -986,12 +986,12 @@ void KOAgendaItem::paintEvent( TQPaintEvent *ev )
p.setBackgroundColor( bgColor );
p.setPen( textColor );
TQString ws = ww->wrappedString();
- if ( ws.left( ws.length()-1 ).find( '\n' ) >= 0 )
+ if ( ws.left( ws.length()-1 ).tqfind( '\n' ) >= 0 )
ww->drawText( &p, eventX, y,
- Qt::AlignAuto | KWordWrap::FadeOut );
+ TQt::AlignAuto | KWordWrap::FadeOut );
else
ww->drawText( &p, eventX + (txtWidth-ww->boundingRect().width()-2*margin)/2,
- y, Qt::AlignHCenter | KWordWrap::FadeOut );
+ y, TQt::AlignHCenter | KWordWrap::FadeOut );
delete ww;
}