diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/timelineitem.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/timelineitem.cpp')
-rw-r--r-- | korganizer/timelineitem.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/korganizer/timelineitem.cpp b/korganizer/timelineitem.cpp index ed057de9d..7240e06d0 100644 --- a/korganizer/timelineitem.cpp +++ b/korganizer/timelineitem.cpp @@ -31,7 +31,7 @@ using namespace KOrg; using namespace KCal; -TimelineItem::TimelineItem( const QString &label, KDGanttView * parent) : +TimelineItem::TimelineItem( const TQString &label, KDGanttView * parent) : KDGanttViewTaskItem( parent ) { setListViewText( 0, label ); @@ -40,9 +40,9 @@ TimelineItem::TimelineItem( const QString &label, KDGanttView * parent) : listView()->setRootIsDecorated( false ); } -void TimelineItem::insertIncidence(KCal::Incidence * incidence, const QDateTime & _start, const QDateTime & _end) +void TimelineItem::insertIncidence(KCal::Incidence * incidence, const TQDateTime & _start, const TQDateTime & _end) { - QDateTime start = incidence->dtStart(), end = incidence->dtEnd(); + TQDateTime start = incidence->dtStart(), end = incidence->dtEnd(); if ( _start.isValid() ) start = _start; if ( _end.isValid() ) @@ -50,14 +50,14 @@ void TimelineItem::insertIncidence(KCal::Incidence * incidence, const QDateTime if ( incidence->doesFloat() ) end = end.addDays( 1 ); - typedef QValueList<TimelineSubItem*> ItemList; + typedef TQValueList<TimelineSubItem*> ItemList; ItemList list = mItemMap[incidence]; for ( ItemList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it ) if ( (*it)->startTime() == start && (*it)->endTime() == end ) return; TimelineSubItem * item = new TimelineSubItem( incidence, this ); - QColor c1, c2, c3; + TQColor c1, c2, c3; colors( c1, c2, c3 ); item->setColors( c1, c2, c3 ); @@ -70,7 +70,7 @@ void TimelineItem::insertIncidence(KCal::Incidence * incidence, const QDateTime void TimelineItem::removeIncidence(KCal::Incidence * incidence) { - typedef QValueList<TimelineSubItem*> ItemList; + typedef TQValueList<TimelineSubItem*> ItemList; ItemList list = mItemMap[incidence]; for ( ItemList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it ) delete *it; @@ -79,10 +79,10 @@ void TimelineItem::removeIncidence(KCal::Incidence * incidence) void TimelineItem::moveItems(KCal::Incidence * incidence, int delta, int duration) { - typedef QValueList<TimelineSubItem*> ItemList; + typedef TQValueList<TimelineSubItem*> ItemList; ItemList list = mItemMap[incidence]; for ( ItemList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it ) { - QDateTime start = (*it)->originalStart(); + TQDateTime start = (*it)->originalStart(); start = start.addSecs( delta ); (*it)->setStartTime( start ); (*it)->setOriginalStart( start ); @@ -128,7 +128,7 @@ void TimelineSubItem::showItem(bool show, int coordY) mLeft = new KDCanvasPolygon( myGanttView->timeTableWidget(), this, Type_is_KDGanttViewItem ); mLeft->setBrush( Qt::black ); } - QPointArray a = QPointArray( 4 ); + TQPointArray a = TQPointArray( 4 ); a.setPoint( 0, 0, -mw -myItemSize/2 - 2 ); a.setPoint( 1, mw, -myItemSize/2 - 2 ); a.setPoint( 2, mw, myItemSize/2 + 2 ); @@ -140,7 +140,7 @@ void TimelineSubItem::showItem(bool show, int coordY) mRight = new KDCanvasPolygon( myGanttView->timeTableWidget(), this, Type_is_KDGanttViewItem ); mRight->setBrush( Qt::black ); } - QPointArray a = QPointArray( 4 ); + TQPointArray a = TQPointArray( 4 ); a.setPoint( 0, -mw, -myItemSize/2 - 2 ); a.setPoint( 1, 0, -myItemSize/2 - mw - 2 ); a.setPoint( 2, 0, myItemSize/2 + mw + 2 ); |