From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: 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 --- korganizer/timelineitem.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'korganizer/timelineitem.cpp') diff --git a/korganizer/timelineitem.cpp b/korganizer/timelineitem.cpp index 6ebff843f..649bcfa86 100644 --- a/korganizer/timelineitem.cpp +++ b/korganizer/timelineitem.cpp @@ -31,8 +31,8 @@ using namespace KOrg; using namespace KCal; -TimelineItem::TimelineItem( const TQString &label, KCal::Calendar *calendar, KDGanttView * parent) : - KDGanttViewTaskItem( parent ), mCalendar( calendar ) +TimelineItem::TimelineItem( const TQString &label, KCal::Calendar *calendar, KDGanttView * tqparent) : + KDGanttViewTaskItem( tqparent ), mCalendar( calendar ) { setListViewText( 0, label ); setDisplaySubitemsAsGroup( true ); @@ -92,8 +92,8 @@ void TimelineItem::moveItems(KCal::Incidence * incidence, int delta, int duratio TimelineSubItem::TimelineSubItem( KCal::Calendar *calendar, - KCal::Incidence *incidence, TimelineItem *parent) : - KDGanttViewTaskItem( parent ), + KCal::Incidence *incidence, TimelineItem *tqparent) : + KDGanttViewTaskItem( tqparent ), mIncidence( incidence ), mLeft( 0 ), mRight( 0 ), @@ -124,11 +124,11 @@ void TimelineSubItem::showItem(bool show, int coordY) int startX = myGanttView->timeHeaderWidget()->getCoordX(myStartTime); int endX = myGanttView->timeHeaderWidget()->getCoordX(myEndTime); - const int mw = QMAX( 1, QMIN( 4, endX - startX ) ); + const int mw = TQMAX( 1, TQMIN( 4, endX - startX ) ); if ( !mLeft || mw != mMarkerWidth ) { if ( !mLeft ) { mLeft = new KDCanvasPolygon( myGanttView->timeTableWidget(), this, Type_is_KDGanttViewItem ); - mLeft->setBrush( Qt::black ); + mLeft->setBrush( TQt::black ); } TQPointArray a = TQPointArray( 4 ); a.setPoint( 0, 0, -mw -myItemSize/2 - 2 ); @@ -140,7 +140,7 @@ void TimelineSubItem::showItem(bool show, int coordY) if ( !mRight || mw != mMarkerWidth ) { if ( !mRight ) { mRight = new KDCanvasPolygon( myGanttView->timeTableWidget(), this, Type_is_KDGanttViewItem ); - mRight->setBrush( Qt::black ); + mRight->setBrush( TQt::black ); } TQPointArray a = TQPointArray( 4 ); a.setPoint( 0, -mw, -myItemSize/2 - 2 ); -- cgit v1.2.1