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/timelineitem.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/timelineitem.cpp')
-rw-r--r-- | korganizer/timelineitem.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 ); |