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 /kdgantt/KDGanttViewTaskItem.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 'kdgantt/KDGanttViewTaskItem.cpp')
-rw-r--r-- | kdgantt/KDGanttViewTaskItem.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kdgantt/KDGanttViewTaskItem.cpp b/kdgantt/KDGanttViewTaskItem.cpp index a9f1bec96..1bcb96a65 100644 --- a/kdgantt/KDGanttViewTaskItem.cpp +++ b/kdgantt/KDGanttViewTaskItem.cpp @@ -67,8 +67,8 @@ is specified, a unique name will be generated */ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, - const QString& lvtext, - const QString& name ) : + const TQString& lvtext, + const TQString& name ) : KDGanttViewItem( Task, view, lvtext, name ) { @@ -85,8 +85,8 @@ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, is specified, a unique name will be generated */ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* parent, - const QString& lvtext, - const QString& name ) : + const TQString& lvtext, + const TQString& name ) : KDGanttViewItem( Task, parent, lvtext, name ) { initItem(); @@ -104,8 +104,8 @@ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* parent, */ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, KDGanttViewItem* after, - const QString& lvtext, - const QString& name ) : + const TQString& lvtext, + const TQString& name ) : KDGanttViewItem( Task, view, after, lvtext, name ) { initItem(); @@ -123,8 +123,8 @@ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, */ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* parent, KDGanttViewItem* after, - const QString& lvtext, - const QString& name ) : + const TQString& lvtext, + const TQString& name ) : KDGanttViewItem( Task, parent, after, lvtext, name ) { initItem(); @@ -149,7 +149,7 @@ KDGanttViewTaskItem::~KDGanttViewTaskItem() \param end the end time \sa setStartTime(), startTime(), endTime() */ -void KDGanttViewTaskItem::setEndTime( const QDateTime& end ) +void KDGanttViewTaskItem::setEndTime( const TQDateTime& end ) { myEndTime = end; if ( myEndTime < startTime() ) @@ -168,7 +168,7 @@ void KDGanttViewTaskItem::setEndTime( const QDateTime& end ) \param start the start time \sa startTime(), setEndTime(), endTime() */ -void KDGanttViewTaskItem::setStartTime( const QDateTime& start ) +void KDGanttViewTaskItem::setStartTime( const TQDateTime& start ) { if (! start.isValid() ) { qDebug("KDGanttViewTaskItem::setStartTime():Invalid parameter-no time set"); @@ -248,8 +248,8 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) if ( par ) hei = par->height(); } - if (myGanttView->myListView->itemAt( QPoint(2, allY))) - hei = myGanttView->myListView->itemAt( QPoint(2, allY))->height(); + if (myGanttView->myListView->itemAt( TQPoint(2, allY))) + hei = myGanttView->myListView->itemAt( TQPoint(2, allY))->height(); if ( takedefaultHeight ) hei = 16; if ( myStartTime == myEndTime ) { @@ -281,12 +281,12 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) temp->show(); if (progX > 0) { // FIXME: For now, just use inverted color for progress - QColor c = temp->brush().color(); + TQColor c = temp->brush().color(); int h, s, v; c.getHsv(&h, &s, &v); h > 359/2 ? h -= 359/2 : h += 359/2; c.setHsv(h, s, v); - progtemp->setBrush(QBrush(c)); + progtemp->setBrush(TQBrush(c)); progtemp->setSize(progX, hei-3); progtemp->move(temp->x(), temp->y()); @@ -296,9 +296,9 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) KDCanvasRectangle* floatStartTemp = (KDCanvasRectangle*) floatStartShape; int floatStartX = myGanttView->myTimeHeader->getCoordX(myFloatStartTime); // FIXME: Configurable colors - QBrush b(temp->brush().color(), Dense4Pattern); + TQBrush b(temp->brush().color(), Dense4Pattern); floatStartTemp->setBrush(b); - floatStartTemp->setPen(QPen(gray)); + floatStartTemp->setPen(TQPen(gray)); if (floatStartX < startX) { floatStartTemp->setSize(startX - floatStartX, temp->size().height()/2); floatStartTemp->move(floatStartX, temp->y() + temp->size().height()/4); @@ -312,9 +312,9 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) KDCanvasRectangle* floatEndTemp = (KDCanvasRectangle*) floatEndShape; int floatEndX = myGanttView->myTimeHeader->getCoordX(myFloatEndTime); // FIXME: Configurable colors - QBrush b(temp->brush().color(), Dense4Pattern); + TQBrush b(temp->brush().color(), Dense4Pattern); floatEndTemp->setBrush(b); - floatEndTemp->setPen(QPen(gray)); + floatEndTemp->setPen(TQPen(gray)); int ex = startX + temp->size().width(); if (floatEndX > ex) { floatEndTemp->setSize(floatEndX - ex, temp->size().height()/2); @@ -335,7 +335,7 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) textCanvas->hide(); else { textCanvas->move(startX+3, allY-textCanvas->boundingRect().height()/2); - QString temp = textCanvasText; + TQString temp = textCanvasText; textCanvas->setText(temp); int len = temp.length(); while ( textCanvas->boundingRect().width() > wid ) { |