diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korganizer/koagendaitem.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/koagendaitem.cpp')
-rw-r--r-- | korganizer/koagendaitem.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index 21eea0e11..a7ba07d0c 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; } |