summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttViewTaskItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdgantt/KDGanttViewTaskItem.cpp')
-rw-r--r--kdgantt/KDGanttViewTaskItem.cpp38
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 ) {