diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:35:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:35:40 -0600 |
commit | 17e2ed52dbf8fac39a04331da02b9572e9e2e304 (patch) | |
tree | cd0d57c975a55e05aac71794b363748f24625875 /kdgantt/KDGanttViewItem.cpp | |
parent | a684ecdeceae222d5aa930478b7bf59a3b7cae7f (diff) | |
download | tdepim-17e2ed52dbf8fac39a04331da02b9572e9e2e304.tar.gz tdepim-17e2ed52dbf8fac39a04331da02b9572e9e2e304.zip |
Rename additional global TQt functions
Diffstat (limited to 'kdgantt/KDGanttViewItem.cpp')
-rw-r--r-- | kdgantt/KDGanttViewItem.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kdgantt/KDGanttViewItem.cpp b/kdgantt/KDGanttViewItem.cpp index 0bfc72794..c24a3580e 100644 --- a/kdgantt/KDGanttViewItem.cpp +++ b/kdgantt/KDGanttViewItem.cpp @@ -563,16 +563,16 @@ void KDGanttViewItem::setEndTime( const TQDateTime& end ) { switch( type() ) { case Event: - qDebug( "KDGantt:Event Item has no end time" ); + tqDebug( "KDGantt:Event Item has no end time" ); break; case Summary: ((KDGanttViewSummaryItem*)this)->setEndTime( end ); break; case Task: - qDebug( "KDGantt:Task Item has no end time" ); + tqDebug( "KDGantt:Task Item has no end time" ); break; default: - qDebug( "Unknown type in KDGanttViewItem::typeToString()" ); + tqDebug( "Unknown type in KDGanttViewItem::typeToString()" ); } } @@ -1325,7 +1325,7 @@ void KDGanttViewItem::updateCanvasItems() } else { b.setStyle(Qt::SolidPattern); b.setColor(myStartColor); - // qDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() ); + // tqDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() ); startShape->setBrush(b); b.setColor(myMiddleColor); midShape->setBrush(b); @@ -1472,12 +1472,12 @@ void KDGanttViewItem::initColorAndShapes(Type t) // set shapes if (!( shapeDefined = (myGanttView->shapes(myType,myStartShape,myMiddleShape,myEndShape)))) { - //qDebug("KDGantt::KDGanttViewItem created with not user defined shapes"); + //tqDebug("KDGantt::KDGanttViewItem created with not user defined shapes"); }; setShapes(myStartShape,myMiddleShape,myEndShape); if ( type() == Task ) { - //qDebug("new task %s ", listViewText().latin1()); + //tqDebug("new task %s ", listViewText().latin1()); if ( startShape ) delete startShape; startShape = (KDCanvasPolygonItem*)new KDCanvasRectangle(myGanttView->myTimeTable,this,Type_is_KDGanttViewItem); @@ -1627,7 +1627,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view, else if( typeString == "Event" ) item = new KDGanttViewEventItem( view ); else { - qDebug( "Unknown item type %s in KDGanttViewItem::createFromDomElement()", typeString.latin1() ); + tqDebug( "Unknown item type %s in KDGanttViewItem::createFromDomElement()", typeString.latin1() ); return 0; } @@ -1659,7 +1659,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view, else if( typeString == "Event" ) item = new KDGanttViewEventItem( view, previous ); else { - qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); + tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); return 0; } @@ -1691,7 +1691,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent, else if( typeString == "Event" ) item = new KDGanttViewEventItem( parent ); else { - qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); + tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); return 0; } @@ -1723,7 +1723,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent, else if( typeString == "Event" ) item = new KDGanttViewEventItem( parent, previous ); else { - qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); + tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); return 0; } @@ -1859,7 +1859,7 @@ void KDGanttViewItem::loadFromDomElement( TQDomElement& element ) element ); previous = newItem; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -1867,7 +1867,7 @@ void KDGanttViewItem::loadFromDomElement( TQDomElement& element ) node = node.nextSibling(); } } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -1893,7 +1893,7 @@ TQString KDGanttViewItem::typeToString( Type type ) case Task: return "Task"; default: - qDebug( "Unknown type in KDGanttViewItem::typeToString()" ); + tqDebug( "Unknown type in KDGanttViewItem::typeToString()" ); return "Summary"; } return ""; @@ -2105,7 +2105,7 @@ int KDGanttViewItem::computeHeight() showItem( false ); if ( firstChild() ) firstChild()->hideSubtree(); - // qDebug("KDGanttViewItem::computeHeight() %s returns 0 ", TQListViewItem::text(0).latin1()); + // tqDebug("KDGanttViewItem::computeHeight() %s returns 0 ", TQListViewItem::text(0).latin1()); return 0; } @@ -2146,7 +2146,7 @@ int KDGanttViewItem::computeHeight() // display closed item as usual // if ( isOpen() ) { - //qDebug("KDGanttViewItem::computeHeight() %s is open ", TQListViewItem::text(0).latin1()); + //tqDebug("KDGanttViewItem::computeHeight() %s is open ", TQListViewItem::text(0).latin1()); temp = firstChild(); // if item opened, iterate over all subitems int tempHeight; @@ -2157,19 +2157,19 @@ int KDGanttViewItem::computeHeight() if ( special ) { if ( temp->displaySubitemsAsGroup() ) { hei += tempHeight; - //qDebug(" hei added "); + //tqDebug(" hei added "); } else { temp->showSubitemTree( getCoordY() ); } } else { hei += tempHeight; - //qDebug(" hei added "); + //tqDebug(" hei added "); } temp = temp->nextSibling(); } } else { // closed! - //qDebug("KDGanttViewItem::computeHeight() %s is closed ", TQListViewItem::text(0).latin1()); + //tqDebug("KDGanttViewItem::computeHeight() %s is closed ", TQListViewItem::text(0).latin1()); if ( !displaySubitemsAsGroup() ) { if ( firstChild() ) { @@ -2187,7 +2187,7 @@ int KDGanttViewItem::computeHeight() showItem( true ); hei += height(); - //qDebug("KDGanttViewItem::computeHeight() %s returns: %d ", TQListViewItem::text(0).latin1(), hei); + //tqDebug("KDGanttViewItem::computeHeight() %s returns: %d ", TQListViewItem::text(0).latin1(), hei); return hei; } @@ -2219,11 +2219,11 @@ void KDGanttViewItem::paintBranches ( TQPainter* p, const TQColorGroup& cg, KDGanttViewItem * temp = firstChild(); while ( temp ) { if ( temp->showNoCross() ) { - //qDebug("paintNoCross %s ", temp->listViewText(0).latin1()); + //tqDebug("paintNoCross %s ", temp->listViewText(0).latin1()); int y_coord = temp->itemPos() -height ()- itemPos(); int hei = temp->height(); - //qDebug(" y %d w %d h %d ", y,w,h); - //qDebug("yc %d hei %d",y_coord,hei ); + //tqDebug(" y %d w %d h %d ", y,w,h); + //tqDebug("yc %d hei %d",y_coord,hei ); myGanttView->myListView->paintemptyarea( p, TQRect( 0,y+y_coord,w,hei)); int x_c = w/2; int y_c = y+y_coord+ temp->height ()/2; @@ -2487,7 +2487,7 @@ void KDGanttViewItem::moveTextCanvas(int x, int y) mx -= 2*myItemSize; // keep old behaviour textCanvas->move(mx+2*myItemSize,my-myItemSize/2); - //qDebug("%s: moveTextCanvas(%d,%d) offset: %d,%d moved to %d,%d",listViewText(0).latin1(),x,y,myTextOffset.x(),myTextOffset.y(),mx+2*myItemSize,my-myItemSize/2); + //tqDebug("%s: moveTextCanvas(%d,%d) offset: %d,%d moved to %d,%d",listViewText(0).latin1(),x,y,myTextOffset.x(),myTextOffset.y(),mx+2*myItemSize,my-myItemSize/2); } /*! @@ -2505,7 +2505,7 @@ void KDGanttViewItem::moveTextCanvas() */ void KDGanttViewItem::setTextOffset(TQPoint p) { - //qDebug("%s: setTextOffset() offset: %d,%d",listViewText(0).latin1(),p.x(),p.y()); + //tqDebug("%s: setTextOffset() offset: %d,%d",listViewText(0).latin1(),p.x(),p.y()); myTextOffset.setX(p.x()); myTextOffset.setY(p.y()); } |