summaryrefslogtreecommitdiffstats
path: root/kdgantt
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:21:06 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:21:06 -0600
commit7d18baa666593a494ceea480732a8540ba471fe5 (patch)
tree1c656ba0da61a3bfcf4c4de730e66322865844fe /kdgantt
parent951839808408bed4165fc025dbf00caf59ea319b (diff)
downloadkoffice-7d18baa666593a494ceea480732a8540ba471fe5.tar.gz
koffice-7d18baa666593a494ceea480732a8540ba471fe5.zip
Rename additional global TQt functions
Diffstat (limited to 'kdgantt')
-rw-r--r--kdgantt/KDGanttMinimizeSplitter.cpp6
-rw-r--r--kdgantt/KDGanttView.cpp60
-rw-r--r--kdgantt/KDGanttViewEventItem.cpp2
-rw-r--r--kdgantt/KDGanttViewItem.cpp48
-rw-r--r--kdgantt/KDGanttViewSubwidgets.cpp104
-rw-r--r--kdgantt/KDGanttViewSummaryItem.cpp6
-rw-r--r--kdgantt/KDGanttViewTaskItem.cpp6
-rw-r--r--kdgantt/KDGanttViewTaskLink.cpp14
-rw-r--r--kdgantt/KDGanttViewTaskLinkGroup.cpp4
-rw-r--r--kdgantt/KDGanttXMLTools.cpp14
10 files changed, 132 insertions, 132 deletions
diff --git a/kdgantt/KDGanttMinimizeSplitter.cpp b/kdgantt/KDGanttMinimizeSplitter.cpp
index 66d71197..8867fec1 100644
--- a/kdgantt/KDGanttMinimizeSplitter.cpp
+++ b/kdgantt/KDGanttMinimizeSplitter.cpp
@@ -1195,7 +1195,7 @@ void KDGanttMinimizeSplitter::setHidden( TQWidget *w, bool hide )
w2show = !hide;
} else {
#ifdef TQT_CHECK_RANGE
- qWarning( "KDGanttMinimizeSplitter::setHidden(), unknown widget" );
+ tqWarning( "KDGanttMinimizeSplitter::setHidden(), unknown widget" );
#endif
return;
}
@@ -1219,7 +1219,7 @@ bool KDGanttMinimizeSplitter::isHidden( TQWidget *w ) const
return !w2show;
#ifdef TQT_CHECK_RANGE
else
- qWarning( "KDGanttMinimizeSplitter::isHidden(), unknown widget" );
+ tqWarning( "KDGanttMinimizeSplitter::isHidden(), unknown widget" );
#endif
return FALSE;
}
@@ -1379,7 +1379,7 @@ void kdganttGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int count, i
if ( spacerCount )
spacerCount--; // only spacers between things
if ( space < cMin + spacerCount * spacer ) {
- // qDebug("not enough space");
+ // tqDebug("not enough space");
for ( i = start; i < start+count; i++ ) {
chain[i].size = chain[i].minimumSize;
chain[i].done = TRUE;
diff --git a/kdgantt/KDGanttView.cpp b/kdgantt/KDGanttView.cpp
index 4163fef1..87f5d3ff 100644
--- a/kdgantt/KDGanttView.cpp
+++ b/kdgantt/KDGanttView.cpp
@@ -303,7 +303,7 @@ void KDGanttView::show()
bool KDGanttView::close ( bool alsoDelete )
{
- //qDebug("close ");
+ //tqDebug("close ");
if ( closingBlocked )
return false;
return TQWidget::close ( alsoDelete );
@@ -346,7 +346,7 @@ TQSize KDGanttView::sizeHint() const
//hintWid += myTimeHeader->mySizeHint+myCanvasView->verticalScrollBar()->width();
hintWid += myCanvasView->sizeHint().width();
// add 10 for the splitter-bars
- // qDebug("sizehint %d %d ",hintWid+10, hintHeight );
+ // tqDebug("sizehint %d %d ",hintWid+10, hintHeight );
myTimeTable->setBlockUpdating( block );
return TQSize( hintWid+10, hintHeight );
}
@@ -581,7 +581,7 @@ void KDGanttView::forceRepaint( int )
{
if ( myTimeTable->blockUpdating() )
return;
- // qDebug("forceRepaint( int ) ");
+ // tqDebug("forceRepaint( int ) ");
myTimeTable->setAllChanged();
myTimeTable->update();
}
@@ -821,8 +821,8 @@ bool KDGanttView::loadProject( TQIODevice* device )
TQString err;
int errline, errcol;
if ( !doc.setContent( device, &err, &errline, &errcol ) ) {
- qDebug("KDGantt::Error parsing XML data at line %d. Message is:", errline );
- qDebug("%s ", err.latin1());
+ tqDebug("KDGantt::Error parsing XML data at line %d. Message is:", errline );
+ tqDebug("%s ", err.latin1());
device->close();
return false;
}
@@ -2668,7 +2668,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
color = value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2733,7 +2733,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if ( value == "Undefined" )
undefinedShape = true;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2772,7 +2772,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if ( value == "Undefined" )
undefinedShape = true;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2810,7 +2810,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if ( value == "Undefined" )
undefinedShape = true;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2821,7 +2821,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
middleShape, endShape, false );
undefinedShape = false;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2853,7 +2853,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2881,7 +2881,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2909,7 +2909,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2918,7 +2918,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
setColors( KDGanttViewItem::Summary, startColor,
middleColor, endColor , false);
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2946,7 +2946,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
setDefaultColor( KDGanttViewItem::Summary,
value , false);
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -2979,7 +2979,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3008,7 +3008,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3037,7 +3037,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
endColor = value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3047,7 +3047,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
startColor,
middleColor, endColor, false );
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3075,7 +3075,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
setDefaultHighlightColor( KDGanttViewItem::Summary,
value, false );
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3102,7 +3102,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
element );
previous = newItem;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3118,7 +3118,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( tagName == "TaskLink" )
KDGanttViewTaskLink::createFromDomElement( element );
else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3134,7 +3134,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( tagName == "TaskLink" )
KDGanttViewTaskLinkGroup::createFromDomElement( element );
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
@@ -3165,7 +3165,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
if( KDGanttXML::readColorNode( element, value ) )
color = value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3174,7 +3174,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
}
setColumnBackgroundColor( dateTime, color );
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3217,7 +3217,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
else
ok = false;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -3227,17 +3227,17 @@ bool KDGanttView::loadXML( const TQDomDocument& doc )
addLegendItem( tempLegendShape,
tempLegendColor,
tempLegendString );
- qDebug( "Adding legend item %s", tempLegendString.latin1() );
+ tqDebug( "Adding legend item %s", tempLegendString.latin1() );
}
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
node = node.nextSibling();
}
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -4604,7 +4604,7 @@ void KDGanttView::setLvVScrollBarMode( TQScrollView::ScrollBarMode m )
void KDGanttView::setGvVScrollBarMode( TQScrollView::ScrollBarMode m )
{
if ( m == TQScrollView::Auto )
- qDebug("KDGanttView::setListViewVScrollBarMode: TQScrollView::Auto not supported. Nothing changed. ");
+ tqDebug("KDGanttView::setListViewVScrollBarMode: TQScrollView::Auto not supported. Nothing changed. ");
else
{
myCanvasView->setVScrollBarMode ( m );
diff --git a/kdgantt/KDGanttViewEventItem.cpp b/kdgantt/KDGanttViewEventItem.cpp
index 30cdc29b..7b2c39da 100644
--- a/kdgantt/KDGanttViewEventItem.cpp
+++ b/kdgantt/KDGanttViewEventItem.cpp
@@ -139,7 +139,7 @@ KDGanttViewEventItem::~KDGanttViewEventItem()
void KDGanttViewEventItem::setStartTime( const TQDateTime& start )
{
if (! start.isValid() ) {
- qDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set");
+ tqDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set");
return;
}
myStartTime = start;
diff --git a/kdgantt/KDGanttViewItem.cpp b/kdgantt/KDGanttViewItem.cpp
index 62205b6b..b2ff44c2 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);
@@ -1470,12 +1470,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);
@@ -1625,7 +1625,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;
}
@@ -1657,7 +1657,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;
}
@@ -1689,7 +1689,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;
}
@@ -1721,7 +1721,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;
}
@@ -1857,7 +1857,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 );
}
}
@@ -1865,7 +1865,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 );
}
}
@@ -1891,7 +1891,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 "";
@@ -2103,7 +2103,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;
}
@@ -2144,7 +2144,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;
@@ -2155,19 +2155,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() ) {
@@ -2185,7 +2185,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;
}
@@ -2217,11 +2217,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;
@@ -2485,7 +2485,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);
}
/*!
@@ -2503,7 +2503,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());
}
diff --git a/kdgantt/KDGanttViewSubwidgets.cpp b/kdgantt/KDGanttViewSubwidgets.cpp
index 2bcbe5ae..31830dfd 100644
--- a/kdgantt/KDGanttViewSubwidgets.cpp
+++ b/kdgantt/KDGanttViewSubwidgets.cpp
@@ -179,7 +179,7 @@ int KDTimeTableWidget::computeHeight()
if (hei == 0) {
hei = 1;
}
- //qDebug("COMPUTED HEI %d ", hei);
+ //tqDebug("COMPUTED HEI %d ", hei);
emit heightComputed( hei );
return hei;
}
@@ -188,7 +188,7 @@ void KDTimeTableWidget::computeVerticalGrid()
// recompute the vertical grid
// compute the vertical grid
// if we have too much lines, hide them
- //qDebug("computeVerticalGrid() ");
+ //tqDebug("computeVerticalGrid() ");
int cw = myGanttView->myTimeHeader->myGridMinorWidth;
int i = 0;
int h ;
@@ -434,7 +434,7 @@ void KDTimeTableWidget::computeVerticalGrid()
void KDTimeTableWidget::computeHorizontalGrid()
{
// compute horizontal grid
- //qDebug("computeHorizontalGrid() ");
+ //tqDebug("computeHorizontalGrid() ");
KDGanttViewItem* temp = myGanttView->firstChild();
int wid;
if ( pendingWidth )
@@ -474,7 +474,7 @@ void KDTimeTableWidget::computeHorizontalGrid()
//TQString ts = "asGroup";
//if (!temp->displaySubitemsAsGroup() )
// ts = " NOT asGroup";
- //qDebug("temp name %s %s", temp->listViewText(0).latin1(), ts.latin1());
+ //tqDebug("temp name %s %s", temp->listViewText(0).latin1(), ts.latin1());
temp = temp->itemBelow ();
}
@@ -586,10 +586,10 @@ void KDTimeTableWidget::computeTaskLinks()
void KDTimeTableWidget::updateMyContent()
{
if ( flag_blockUpdating || int_blockUpdating ) {
- // qDebug("KDTimeTableWidget::updateMyContent() blocked! ");
+ // tqDebug("KDTimeTableWidget::updateMyContent() blocked! ");
return;
}
- //qDebug("KDTimeTableWidget::updateMyContent() ********************************* ");
+ //tqDebug("KDTimeTableWidget::updateMyContent() ********************************* ");
/*
// debug output
KDGanttViewItem* temp = myGanttView->firstChild();
@@ -638,7 +638,7 @@ void KDTimeTableWidget::updateMyContent()
}
pendingWidth = 0;
pendingHeight = 0;
- //qDebug("KDTimeTableWidget::updateMyContent() -------------------------");
+ //tqDebug("KDTimeTableWidget::updateMyContent() -------------------------");
}
// used for blocking recursive methods
// e.g. KDGanttViewItem::setHighlight() and displaySubitemsAsGroup() == true
@@ -1111,12 +1111,12 @@ void KDTimeHeaderWidget::zoomToSelection( TQDateTime start, TQDateTime end)
if (start < myHorizonStart) {
myHorizonStart = start;
flagStartTimeSet = true;
- //qDebug("myHorizonStart reset");
+ //tqDebug("myHorizonStart reset");
}
if (end > myHorizonEnd) {
myHorizonEnd = end;
flagEndTimeSet = true;
- //qDebug("myHorizonEnd reset ");
+ //tqDebug("myHorizonEnd reset ");
}
flagDoNotRepaintAfterChange = true;//avoid flicker
zoom(1.0); // set to 100%
@@ -1134,7 +1134,7 @@ void KDTimeHeaderWidget::zoomToSelection( TQDateTime start, TQDateTime end)
zoom (fac);
timeWid = getCoordX(end)-getCoordX(start);
if ( count++ > 10 ) {
- //qDebug("Exiting while loop in zoomToSelection ");
+ //tqDebug("Exiting while loop in zoomToSelection ");
break;
}
}
@@ -1156,7 +1156,7 @@ void KDTimeHeaderWidget::zoom(double factor, bool absolute)
{
flagZoomToFit = false;
if ( factor < 0.000001 ) {
- qDebug("KDGanttView::zoom() : Zoom factor to low. Nothing zoomed. ");
+ tqDebug("KDGanttView::zoom() : Zoom factor to low. Nothing zoomed. ");
return;
}
double newZoom;
@@ -1167,12 +1167,12 @@ void KDTimeHeaderWidget::zoom(double factor, bool absolute)
double relativeZoom;
relativeZoom = newZoom / myZoomFactor;
- //qDebug("zooming relative %f ", relativeZoom);
- //qDebug("zooming absolute %f ", newZoom);
+ //tqDebug("zooming relative %f ", relativeZoom);
+ //tqDebug("zooming absolute %f ", newZoom);
int viewWid = myGanttView->myCanvasView->viewport()->width();
if ( width() * relativeZoom < viewWid && ( newZoom > 1.01 || newZoom < 0.99 ) ) {
- qDebug("KDGanttView::zoom() : Zoom factor to low for current horizon. ");
- // qDebug("zooming relative %f, zooming absolute %f, viewWidth %d width %d ", relativeZoom, newZoom, viewWid, width() );
+ tqDebug("KDGanttView::zoom() : Zoom factor to low for current horizon. ");
+ // tqDebug("zooming relative %f, zooming absolute %f, viewWidth %d width %d ", relativeZoom, newZoom, viewWid, width() );
return;
}
myZoomFactor = newZoom;
@@ -1831,14 +1831,14 @@ int KDTimeHeaderWidget::minorScaleCount() const
void KDTimeHeaderWidget::resizeEvent ( TQResizeEvent * )
{
- // qDebug("KDTimeHeaderWidget:: resizeEvent ");
+ // tqDebug("KDTimeHeaderWidget:: resizeEvent ");
paintPix.resize( 800, height () );
}
void KDTimeHeaderWidget::updateTimeTable()
{
- //qDebug("KDTimeHeaderWidget::updateTimeTable() ");
+ //tqDebug("KDTimeHeaderWidget::updateTimeTable() ");
if (flagDoNotRecomputeAfterChange) return;
// setting the scrolling steps
int scrollLineStep = myGridMinorWidth;
@@ -1981,7 +1981,7 @@ TQDateTime KDTimeHeaderWidget::getEvenTimeDate(TQDateTime tempdatetime ,Scale sc
min = tempdatetime.time().minute();
while (60%tempMinorScaleCount > 0 && 60%tempMinorScaleCount < 60)
++tempMinorScaleCount;
- // qDebug("myMinorScaleCount %d %d %d",myMinorScaleCount, myRealMinorScaleCount, tempMinorScaleCount);
+ // tqDebug("myMinorScaleCount %d %d %d",myMinorScaleCount, myRealMinorScaleCount, tempMinorScaleCount);
min = (min /tempMinorScaleCount)*tempMinorScaleCount;
tempdatetime = TQDateTime (tempdatetime.date(), TQTime (tempdatetime.time().hour(),min ));
@@ -1997,7 +1997,7 @@ void KDTimeHeaderWidget::computeRealScale(TQDateTime start)
{
if (myScale ==KDGanttView::Auto) {
- //qDebug("Autoscale ");
+ //tqDebug("Autoscale ");
//double secsPerMinor = (((double)start.daysTo(myHorizonEnd))* 86400.00)/((double)myAutoScaleMinorTickcount);
double secsPerMinor = (((double)start.secsTo(myHorizonEnd)))/((double)myAutoScaleMinorTickcount);
secsPerMinor /= myZoomFactor;
@@ -2029,7 +2029,7 @@ void KDTimeHeaderWidget::computeRealScale(TQDateTime start)
myRealMajorScaleCount = 1;
}
else {
- //qDebug("Fixed scale ");
+ //tqDebug("Fixed scale ");
myRealScale = myScale;
if (myRealScale > myMaxScale)
myRealScale = myMaxScale;
@@ -2079,7 +2079,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
if (flagDoNotRecomputeAfterChange) return;
bool block = myGanttView->myTimeTable->blockUpdating();
myGanttView->myTimeTable->setBlockUpdating( true );
- //qDebug("computeticks ");
+ //tqDebug("computeticks ");
majorTicks.clear();
minorText.clear();
majorText.clear();
@@ -2094,7 +2094,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
tempMajorScaleCount = myRealMajorScaleCount;
int minorItems,minorPerMajor = 1;
minorItems = (int) (secsFromTo( myRealStart, myHorizonEnd)/60.0);
- //qDebug("tempMinorScaleCount %d ", tempMinorScaleCount);
+ //tqDebug("tempMinorScaleCount %d ", tempMinorScaleCount);
TQPainter p(this);
int Width, Height;
TQString testTextMinor,testTextMajor, tempStr;
@@ -2143,14 +2143,14 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
minorPerMajor = 1200;
break;
case KDGanttView::Auto:
- qDebug("KDGanttView::Internal Error in KDTimeHeaderWidget::computeTicks() ");
- qDebug(" RealScale == Auto : This may not be! ");
+ tqDebug("KDGanttView::Internal Error in KDTimeHeaderWidget::computeTicks() ");
+ tqDebug(" RealScale == Auto : This may not be! ");
break;
}
itemRectMinor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMinor);
itemRectMajor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMajor);
p.end();
- //qDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
+ //tqDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
Height = itemRectMinor.height()+itemRectMajor.height()+11;
Width = (itemRectMinor.width()+5);
if (Width < minimumColumnWidth()) Width = minimumColumnWidth();
@@ -2161,7 +2161,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
maxWid = maximumWidth();
while((minorItems/tempMinorScaleCount+1)*Width > maxWid)
++tempMinorScaleCount;
- //qDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
+ //tqDebug(" tempMinorScaleCount %d ", tempMinorScaleCount);
mySizeHint = (minorItems/tempMinorScaleCount+1)*Width;
switch (myRealScale)
{
@@ -2174,7 +2174,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
myRealMinorScaleCount = tempMinorScaleCount/ 60;
// myRealMinorScaleCount = 1;
myRealMajorScaleCount = 1;
- qDebug("KDGantt::Overzoom:Rescaling from Minute to Hour");
+ tqDebug("KDGantt::Overzoom:Rescaling from Minute to Hour");
myGanttView->myTimeTable->setBlockUpdating( block );
emit myGanttView->rescaling( KDGanttView::Hour );
computeTicks(true);
@@ -2189,7 +2189,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
myRealMinorScaleCount = tempMinorScaleCount/ 24;
//myRealMinorScaleCount = 1;
myRealMajorScaleCount = 1;
- qDebug("KDGantt::Overzoom:Rescaling from Hour to Day");
+ tqDebug("KDGantt::Overzoom:Rescaling from Hour to Day");
myGanttView->myTimeTable->setBlockUpdating( block );
emit myGanttView->rescaling( KDGanttView::Day );
computeTicks(true);
@@ -2351,7 +2351,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
myGanttView->myTimeTable->setBlockUpdating( block );
return;
}
- //qDebug("KDTimeHeaderWidget width %d, viewport width %d ",width (), myGanttView->myCanvasView->viewport()->width());
+ //tqDebug("KDTimeHeaderWidget width %d, viewport width %d ",width (), myGanttView->myCanvasView->viewport()->width());
myGanttView->myTimeTable->setBlockUpdating( block );
updateTimeTable();
centerDateTime(myCenterDateTime);
@@ -2376,7 +2376,7 @@ void KDTimeHeaderWidget::saveCenterDateTime()
void KDTimeHeaderWidget::centerDateTime( const TQDateTime& center )
{
moveTimeLineTo(getCoordX( center )-(myGanttView->myCanvasView->viewport()->width() /2));
- // qDebug("centerDateTime %s %d %d", center.toString().latin1(),getCoordX( center ),(myGanttView->myCanvasView->viewport()->width() /2) );
+ // tqDebug("centerDateTime %s %d %d", center.toString().latin1(),getCoordX( center ),(myGanttView->myCanvasView->viewport()->width() /2) );
}
@@ -2494,8 +2494,8 @@ void KDTimeHeaderWidget::mouseReleaseEvent ( TQMouseEvent * )
start = 0;
if ( end > width() )
end = width();
- //qDebug("start %s ",getDateTimeForIndex(start).toString().latin1() );
- //qDebug("end %s ",getDateTimeForIndex(end).toString().latin1() );
+ //tqDebug("start %s ",getDateTimeForIndex(start).toString().latin1() );
+ //tqDebug("end %s ",getDateTimeForIndex(end).toString().latin1() );
emit myGanttView->timeIntervalSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) );
emit myGanttView->timeIntervallSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) );
//zoomToSelection( getDateTimeForIndex(start),getDateTimeForIndex(end) );
@@ -2541,7 +2541,7 @@ void KDTimeHeaderWidget::mouseMoveEvent ( TQMouseEvent * e )
}
myGanttView->myCanvasView->horizontalScrollBar()->setValue( val );
}
- //qDebug("mousemove %d %d %d %d",endMouseDown, -x(),parentWidget()->width() , e->pos().y());
+ //tqDebug("mousemove %d %d %d %d",endMouseDown, -x(),parentWidget()->width() , e->pos().y());
}
}
@@ -2720,7 +2720,7 @@ KDListView::KDListView(TQWidget* parent, KDGanttView* gantView):TQListView (pare
void KDListView::dragItem( TQListViewItem * )
{
- // qDebug("drag ");
+ // tqDebug("drag ");
// startDrag();
}
TQString KDListView::getWhatsThisText(TQPoint p)
@@ -2758,7 +2758,7 @@ void KDListView::setOpen(TQListViewItem * item, bool open )
}
else {
temp->setVisible( false );
- //qDebug(" temp->setVisible( false );");
+ //tqDebug(" temp->setVisible( false );");
}
temp = temp->nextSibling();
}
@@ -3021,7 +3021,7 @@ void KDListView::dragMoveEvent ( TQDragMoveEvent * e)
void KDListView::dragLeaveEvent ( TQDragLeaveEvent * )
{
- //qDebug("contentsDragLeaveEvent ");
+ //tqDebug("contentsDragLeaveEvent ");
}
void KDListView::dropEvent ( TQDropEvent *e )
{
@@ -3040,7 +3040,7 @@ void KDListView::dropEvent ( TQDropEvent *e )
KDGanttViewItem* newItem = 0;
if ( gItem == myGanttView->myCanvasView->lastClickedItem && gItem != 0 ) {
- qDebug("KDGanttView::Possible bug in drag&drop code ");
+ tqDebug("KDGanttView::Possible bug in drag&drop code ");
return;
}
@@ -3068,16 +3068,16 @@ void KDListView::dropEvent ( TQDropEvent *e )
newItem = KDGanttViewItem::createFromDomElement( myGanttView,
element );
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
- //qDebug("next node1 ");
+ //tqDebug("next node1 ");
node = node.nextSibling();
}
}
}
- //qDebug("next node2 ");
+ //tqDebug("next node2 ");
node = node.nextSibling();
}
newItem->setDisplaySubitemsAsGroup(myGanttView->displaySubitemsAsGroup());
@@ -3282,7 +3282,7 @@ void KDGanttCanvasView::myUpdateScrollBars()
}
void KDGanttCanvasView::setMyContentsHeight( int hei )
{
- //qDebug("setMyContentsHeight %d %d ", hei, myMyContentsHeight);
+ //tqDebug("setMyContentsHeight %d %d ", hei, myMyContentsHeight);
if ( hei > 0 )
myMyContentsHeight = hei;
verticalScrollBar()->setUpdatesEnabled( true ); // set false in resizeEvent()
@@ -3303,7 +3303,7 @@ void KDGanttCanvasView::setMyContentsHeight( int hei )
// Call after *internal* resizing (like addTickRight())
// Then the new scrollbar maxValue is in myTimeHeader.
void KDGanttCanvasView::updateHorScrollBar() {
- //qDebug("horizontalScrollBar max=%d, myTimeHeaderScroll=%d", horizontalScrollBar()->maxValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->value());
+ //tqDebug("horizontalScrollBar max=%d, myTimeHeaderScroll=%d", horizontalScrollBar()->maxValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->value());
horizontalScrollBar()->setRange(mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->minValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->maxValue());
@@ -3341,7 +3341,7 @@ void KDGanttCanvasView::insertItemAfter( KDGanttViewItem* parent , KDGanttViewI
void KDGanttCanvasView::cutItem()
{
lastClickedItem->hideSubtree();
- //qDebug("last clicked %d parent %d ", lastClickedItem , lastClickedItem->parent());
+ //tqDebug("last clicked %d parent %d ", lastClickedItem , lastClickedItem->parent());
if ( lastClickedItem->parent() )
lastClickedItem->parent()->takeItem(lastClickedItem);
else
@@ -3505,8 +3505,8 @@ TQString KDGanttCanvasView::getWhatsThisText(TQPoint p)
void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e )
{
- //qDebug("mousepress! %d ", this);
- //qDebug("focus %d ",tqApp->focusWidget());
+ //tqDebug("mousepress! %d ", this);
+ //tqDebug("focus %d ",tqApp->focusWidget());
setFocus();
currentLink = 0;
currentItem = 0;
@@ -3600,9 +3600,9 @@ void KDGanttCanvasView::contentsMouseReleaseEvent ( TQMouseEvent * e )
{
static KDGanttViewItem* lastClicked = 0;
mySignalSender->gvMouseButtonClicked( e->button(), currentItem , e->globalPos() );
- //qDebug("datetime %s ",mySignalSender->getDateTimeForCoordX(e->globalPos().x(), true ).toString().latin1() );
- //qDebug("mousepos %d %d ",e->pos().x(),e->pos().y() );
- //qDebug("mouseup ");
+ //tqDebug("datetime %s ",mySignalSender->getDateTimeForCoordX(e->globalPos().x(), true ).toString().latin1() );
+ //tqDebug("mousepos %d %d ",e->pos().x(),e->pos().y() );
+ //tqDebug("mouseup ");
// if ( currentLink || currentItem )
{
switch ( e->button() ) {
@@ -3730,7 +3730,7 @@ void KDGanttCanvasView::contentsMouseDoubleClickEvent ( TQMouseEvent * e )
void KDGanttCanvasView::contentsMouseMoveEvent ( TQMouseEvent *e )
{
- //qDebug("mousemove! ");
+ //tqDebug("mousemove! ");
static int moves = 0;
if ( (currentLink || currentItem) && (moves < 3) ) {
++moves;
@@ -3743,12 +3743,12 @@ void KDGanttCanvasView::contentsMouseMoveEvent ( TQMouseEvent *e )
if (autoScrollEnabled)
mousePos = e->pos()- TQPoint(contentsX(),contentsY()); // make mousePos relative 0
if (fromItem) {
- //qDebug("mousemove: linking %s: %d,%d ",fromItem->listViewText().latin1(), e->pos().x(), e->pos().y());
+ //tqDebug("mousemove: linking %s: %d,%d ",fromItem->listViewText().latin1(), e->pos().x(), e->pos().y());
linkLine->setPoints(linkLine->startPoint().x(), linkLine->startPoint().y(), e->pos().x(), e->pos().y());
canvas()->update();
}
// no action implemented
- //qDebug("mousemove ");
+ //tqDebug("mousemove ");
//TQToolTip::setGloballyEnabled (false);
//TQToolTip::remove(viewport());
// TQToolTip::add(viewport(), "hello");
@@ -3829,7 +3829,7 @@ int KDGanttCanvasView::getItemArea(KDGanttViewItem *item, int x) {
// TODO: middle (move, dnd), front, back (resize)
KDTimeTableWidget *tt = dynamic_cast<KDTimeTableWidget *>(canvas());
if (!tt) {
- qWarning("Cannot cast canvas to KDTimeTableWidget");
+ tqWarning("Cannot cast canvas to KDTimeTableWidget");
return 0;
}
int area = 0;
diff --git a/kdgantt/KDGanttViewSummaryItem.cpp b/kdgantt/KDGanttViewSummaryItem.cpp
index a2cf28f3..9d9317fc 100644
--- a/kdgantt/KDGanttViewSummaryItem.cpp
+++ b/kdgantt/KDGanttViewSummaryItem.cpp
@@ -138,7 +138,7 @@ KDGanttViewSummaryItem::~KDGanttViewSummaryItem()
void KDGanttViewSummaryItem::setMiddleTime( const TQDateTime& dateTime )
{
if (! dateTime.isValid() ) {
- qDebug("KDGanttViewSummaryItem::setMiddleTime():Invalid parameter-no time set");
+ tqDebug("KDGanttViewSummaryItem::setMiddleTime():Invalid parameter-no time set");
return;
}
if (!myMiddleTime) myMiddleTime = new TQDateTime;
@@ -177,7 +177,7 @@ TQDateTime KDGanttViewSummaryItem::middleTime() const
void KDGanttViewSummaryItem::setEndTime( const TQDateTime& end )
{
if (! end.isValid() ) {
- qDebug("KDGanttViewSummaryItem::setEndTime():Invalid parameter-no time set");
+ tqDebug("KDGanttViewSummaryItem::setEndTime():Invalid parameter-no time set");
return;
}
myEndTime = end;
@@ -200,7 +200,7 @@ void KDGanttViewSummaryItem::setEndTime( const TQDateTime& end )
void KDGanttViewSummaryItem::setStartTime( const TQDateTime& start )
{
if (! start.isValid() ) {
- qDebug("KDGanttViewSummaryItem::setStartTime():Invalid parameter-no time set");
+ tqDebug("KDGanttViewSummaryItem::setStartTime():Invalid parameter-no time set");
return;
}
myStartTime = start;
diff --git a/kdgantt/KDGanttViewTaskItem.cpp b/kdgantt/KDGanttViewTaskItem.cpp
index 64ecbd84..6c27aaa9 100644
--- a/kdgantt/KDGanttViewTaskItem.cpp
+++ b/kdgantt/KDGanttViewTaskItem.cpp
@@ -171,7 +171,7 @@ void KDGanttViewTaskItem::setEndTime( const TQDateTime& end )
void KDGanttViewTaskItem::setStartTime( const TQDateTime& start )
{
if (! start.isValid() ) {
- qDebug("KDGanttViewTaskItem::setStartTime():Invalid parameter-no time set");
+ tqDebug("KDGanttViewTaskItem::setStartTime():Invalid parameter-no time set");
return;
}
myStartTime = start;
@@ -199,7 +199,7 @@ void KDGanttViewTaskItem::hideMe()
void KDGanttViewTaskItem::showItem(bool show, int coordY)
{
- //qDebug("KDGanttViewTaskItem::showItem() %d %s ", (int) show, listViewText().latin1());
+ //tqDebug("KDGanttViewTaskItem::showItem() %d %s ", (int) show, listViewText().latin1());
isVisibleInGanttView = show;
invalidateHeight () ;
if (!show) {
@@ -361,7 +361,7 @@ void KDGanttViewTaskItem::initItem()
parent()->setVisible( true );
} else
showItem(true);
- //qDebug("initItem %s %s", listViewText().latin1(),startShape->brush().color().name().latin1() );
+ //tqDebug("initItem %s %s", listViewText().latin1(),startShape->brush().color().name().latin1() );
myGanttView->myTimeTable->updateMyContent();
setDragEnabled( myGanttView->dragEnabled() );
setDropEnabled( myGanttView->dropEnabled() );
diff --git a/kdgantt/KDGanttViewTaskLink.cpp b/kdgantt/KDGanttViewTaskLink.cpp
index 13872900..5d303b14 100644
--- a/kdgantt/KDGanttViewTaskLink.cpp
+++ b/kdgantt/KDGanttViewTaskLink.cpp
@@ -326,7 +326,7 @@ void KDGanttViewTaskLink::showMe( bool visible )
void KDGanttViewTaskLink::showMeType( bool visible )
{
- //qDebug("KDGanttViewTaskLink::showMeType %d",linkType());
+ //tqDebug("KDGanttViewTaskLink::showMeType %d",linkType());
hide();
isvisible = visible;
int wid = 1;
@@ -486,7 +486,7 @@ void KDGanttViewTaskLink::showMeType( bool visible )
break;
}
default:
- qWarning("KDGanttViewTaskLink: Unknown link type");
+ tqWarning("KDGanttViewTaskLink: Unknown link type");
break;
}
(*horIt)->show();
@@ -803,7 +803,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el
if( KDGanttXML::readStringNode( element, value ) )
fromList << value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -820,7 +820,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el
if( KDGanttXML::readStringNode( element, value ) )
toList << value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -859,7 +859,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el
if( KDGanttXML::readStringNode( element, value ) )
linktype = stringToLinkType( value );
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -882,11 +882,11 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el
}
// safeguard aginst incorrect names
if (fromItemList.isEmpty()) {
- qDebug("Cannot create link: fromItemList is empty");
+ tqDebug("Cannot create link: fromItemList is empty");
return 0;
}
if (toItemList.isEmpty()) {
- qDebug("Cannot create link: toItemList is empty");
+ tqDebug("Cannot create link: toItemList is empty");
return 0;
}
KDGanttViewTaskLink* tl = new KDGanttViewTaskLink( fromItemList,
diff --git a/kdgantt/KDGanttViewTaskLinkGroup.cpp b/kdgantt/KDGanttViewTaskLinkGroup.cpp
index 2082629a..a1c6f6d2 100644
--- a/kdgantt/KDGanttViewTaskLinkGroup.cpp
+++ b/kdgantt/KDGanttViewTaskLinkGroup.cpp
@@ -337,7 +337,7 @@ KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::createFromDomElement( TQDomE
if( KDGanttXML::readStringNode( element, value ) )
name = value;
} else {
- qDebug( "Unrecognized tag name: %s", tagName.latin1() );
+ tqDebug( "Unrecognized tag name: %s", tagName.latin1() );
Q_ASSERT( false );
}
}
@@ -382,6 +382,6 @@ void KDGanttViewTaskLinkGroup::generateAndInsertName( const TQString& name )
}
sGroupDict.insert( newName, this );
_name = newName;
- //qDebug("KDGanttViewTaskLinkGroup::generateAndInsertName: inserted '%s'",newName.latin1());
+ //tqDebug("KDGanttViewTaskLinkGroup::generateAndInsertName: inserted '%s'",newName.latin1());
}
diff --git a/kdgantt/KDGanttXMLTools.cpp b/kdgantt/KDGanttXMLTools.cpp
index aea23944..4acfca19 100644
--- a/kdgantt/KDGanttXMLTools.cpp
+++ b/kdgantt/KDGanttXMLTools.cpp
@@ -415,7 +415,7 @@ bool readBrushNode( const TQDomElement& element, TQBrush& brush )
} else if( tagName == "Pixmap" ) {
ok = ok & readPixmapNode( element, tempPixmap );
} else {
- qDebug( "Unknown tag in brush" );
+ tqDebug( "Unknown tag in brush" );
}
}
node = node.nextSibling();
@@ -447,14 +447,14 @@ bool readPixmapNode( const TQDomElement& element, TQPixmap& pixmap )
ok = ok & readStringNode( element, formatName );
#ifndef NDEBUG
if( formatName != "XPM.GZ" )
- qDebug( "Unsupported pixmap format in XML file" );
+ tqDebug( "Unsupported pixmap format in XML file" );
#endif
} else if( tagName == "Length" ) {
ok = ok & readIntNode( element, tempLengthi );
} else if( tagName == "Data" ) {
ok = ok & readStringNode( element, tempData );
} else {
- qDebug( "Unknown tag in Pixmap" );
+ tqDebug( "Unknown tag in Pixmap" );
}
}
node = node.nextSibling();
@@ -521,7 +521,7 @@ bool readPenNode( const TQDomElement& element, TQPen& pen )
ok = ok & readStringNode( element, value );
tempStyle = stringToPenStyle( value );
} else {
- qDebug( "Unknown tag in brush" );
+ tqDebug( "Unknown tag in brush" );
}
}
node = node.nextSibling();
@@ -561,7 +561,7 @@ bool readFontNode( const TQDomElement& element, TQFont& font )
} else if( tagName == "CharSet" ) {
ok = ok & readIntNode( element, charSet );
} else {
- qDebug( "Unknown tag in color map" );
+ tqDebug( "Unknown tag in color map" );
}
}
node = node.nextSibling();
@@ -596,7 +596,7 @@ bool readRectNode( const TQDomElement& element, TQRect& value )
} else if( tagName == "Y" ) {
ok = ok & readIntNode( element, y );
} else {
- qDebug( "Unknown tag in rect" );
+ tqDebug( "Unknown tag in rect" );
}
}
node = node.nextSibling();
@@ -629,7 +629,7 @@ bool readDateTimeNode( const TQDomElement& element, TQDateTime& datetime )
} else if( tagName == "Time" ) {
ok = ok & readTimeNode( element, tempTime );
} else {
- qDebug( "Unknown tag in datetime" );
+ tqDebug( "Unknown tag in datetime" );
}
}
node = node.nextSibling();