summaryrefslogtreecommitdiffstats
path: root/korganizer/timelineitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/timelineitem.cpp')
-rw-r--r--korganizer/timelineitem.cpp20
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 );