summaryrefslogtreecommitdiffstats
path: root/kchart/kdchart/KDChartCustomBox.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-03-01 13:21:06 -0600
committerTimothy Pearson <[email protected]>2012-03-01 13:21:06 -0600
commit7d18baa666593a494ceea480732a8540ba471fe5 (patch)
tree1c656ba0da61a3bfcf4c4de730e66322865844fe /kchart/kdchart/KDChartCustomBox.cpp
parent951839808408bed4165fc025dbf00caf59ea319b (diff)
downloadkoffice-7d18baa666593a494ceea480732a8540ba471fe5.tar.gz
koffice-7d18baa666593a494ceea480732a8540ba471fe5.zip
Rename additional global TQt functions
Diffstat (limited to 'kchart/kdchart/KDChartCustomBox.cpp')
-rw-r--r--kchart/kdchart/KDChartCustomBox.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kchart/kdchart/KDChartCustomBox.cpp b/kchart/kdchart/KDChartCustomBox.cpp
index 9b4d7855..c8c51c60 100644
--- a/kchart/kdchart/KDChartCustomBox.cpp
+++ b/kchart/kdchart/KDChartCustomBox.cpp
@@ -98,22 +98,22 @@ float KDChartCustomBox::trueFontSize( double areaWidthP1000,
TQFont font( content().font() );
font.setPointSizeFloat( size );
TQFontMetrics fm( font );
- //qDebug(TQString("\nsize : ")+TQString::number(size));
- //qDebug(TQString("(float)rectHeight : ")+TQString::number((float)rectHeight));
- //qDebug(TQString("(float)fm.lineSpacing(): ")+TQString::number((float)fm.lineSpacing()));
+ //tqDebug(TQString("\nsize : ")+TQString::number(size));
+ //tqDebug(TQString("(float)rectHeight : ")+TQString::number((float)rectHeight));
+ //tqDebug(TQString("(float)fm.lineSpacing(): ")+TQString::number((float)fm.lineSpacing()));
size *= targetLineSpacing / fm.lineSpacing();
- //qDebug(TQString("size : ")+TQString::number(size));
+ //tqDebug(TQString("size : ")+TQString::number(size));
// step #2 - make sure the font size is not too big:
font.setPointSizeFloat( size );
TQFontMetrics fm2( font );
size *= targetLineSpacing / fm2.lineSpacing();
- //qDebug(TQString("(float)rectHeight : ")+TQString::number((float)rectHeight));
- //qDebug(TQString("(float)fm.lineSpacing(): ")+TQString::number((float)fm.lineSpacing()));
- //qDebug(TQString("size : ")+TQString::number(size));
+ //tqDebug(TQString("(float)rectHeight : ")+TQString::number((float)rectHeight));
+ //tqDebug(TQString("(float)fm.lineSpacing(): ")+TQString::number((float)fm.lineSpacing()));
+ //tqDebug(TQString("size : ")+TQString::number(size));
}
}
else {
-//qDebug(TQString("\n_fontsize: ")+TQString::number(_fontSize));
+//tqDebug(TQString("\n_fontsize: ")+TQString::number(_fontSize));
if( _fontSize )
size = _fontSize;
else{
@@ -151,10 +151,10 @@ void KDChartCustomBox::getTrueShift( double areaWidthP1000,
y = (0 > _deltaY) ? static_cast < int > ( -areaHeightP1000 * _deltaY ) : _deltaY;
}else{
int fontHeight = trueFontLineSpacing( areaWidthP1000, areaHeightP1000, rectHeight );
- //qDebug("\nfontHeight %i",fontHeight);
+ //tqDebug("\nfontHeight %i",fontHeight);
x = (0 > _deltaX) ? static_cast < int > ( fontHeight * _deltaX / -100.0 ) : _deltaX;
y = (0 > _deltaY) ? static_cast < int > ( fontHeight * _deltaY / -100.0 ) : _deltaY;
- //qDebug("y %i",y);
+ //tqDebug("y %i",y);
}
uint deltaAlign = (KDCHART_AlignAuto == _deltaAlign) ? _anchorAlign : _deltaAlign;
if ( TQt::AlignLeft == (TQt::AlignLeft & deltaAlign) )
@@ -175,7 +175,7 @@ void KDChartCustomBox::getTrueShift( double areaWidthP1000,
TQRect KDChartCustomBox::trueRect( TQPainter * /*painter*/, TQPoint /*anchor*/, double /*areaWidthP1000*/, double /*areaHeightP1000*/ ) const
{
//temporary allow KDC_Presentation to compile
- qDebug( "Sorry, not implemented yet: KDChartCustomBox::trueRect()" );
+ tqDebug( "Sorry, not implemented yet: KDChartCustomBox::trueRect()" );
return TQRect( 1, 1, 2, 2 );
}
@@ -188,7 +188,7 @@ TQRect KDChartCustomBox::trueRect( TQPoint anchor, double areaWidthP1000, double
int w = (0 > _width ) ? static_cast < int > ( -areaWidthP1000 * _width ) : _width;
int h = (0 > _height) ? static_cast < int > ( -areaHeightP1000 * _height ) : _height;
- //qDebug("w: %i h: %i", w,h );
+ //tqDebug("w: %i h: %i", w,h );
if( _fontScaleGlobal && 0 == w && 0 == h ){
//Now calculate the size of the box based upon the content!
@@ -198,7 +198,7 @@ TQRect KDChartCustomBox::trueRect( TQPoint anchor, double areaWidthP1000, double
(0 > _fontSize)
? (_fontSize * TQMIN(areaWidthP1000, areaHeightP1000) * -1.0)//(areaWidthP1000 + areaHeightP1000) / -2.0
: _fontSize );
- //qDebug("\n_fontSize * TQMIN(areaWidthP1000, areaHeightP1000) %i * TQMIN(%f, %f) text: %s", _fontSize , areaWidthP1000, areaHeightP1000, content().text().latin1());
+ //tqDebug("\n_fontSize * TQMIN(areaWidthP1000, areaHeightP1000) %i * TQMIN(%f, %f) text: %s", _fontSize , areaWidthP1000, areaHeightP1000, content().text().latin1());
}
TQString txt( content().text() );
TQString txtTest( txt.stripWhiteSpace().lower() );
@@ -207,7 +207,7 @@ TQRect KDChartCustomBox::trueRect( TQPoint anchor, double areaWidthP1000, double
if( !txtTest.endsWith( "</qt>") )
txt.append( "</qt>");
- //qDebug("\nw: %i h: %i", w,h );
+ //tqDebug("\nw: %i h: %i", w,h );
TQSimpleRichText tmpContent( txt, font );
// tmpContent.setWidth(pdWidth);
// tmpContent.setHeight(pdHeight);
@@ -218,11 +218,11 @@ TQRect KDChartCustomBox::trueRect( TQPoint anchor, double areaWidthP1000, double
// }
w = tmpContent.widthUsed();
h = tmpContent.height();
- //qDebug("pdWidth: %i w: %i h %i",pdWidth,w,h);
- //qDebug("w: %i h: %i", w,h );
+ //tqDebug("pdWidth: %i w: %i h %i",pdWidth,w,h);
+ //tqDebug("w: %i h: %i", w,h );
}
- //qDebug("\nw: %i h: %i", w,h );
+ //tqDebug("\nw: %i h: %i", w,h );
int x,y;
if ( TQt::AlignLeft == (TQt::AlignLeft & _anchorAlign) )
x = 0;
@@ -240,7 +240,7 @@ TQRect KDChartCustomBox::trueRect( TQPoint anchor, double areaWidthP1000, double
int dX,dY;
getTrueShift( areaWidthP1000, areaHeightP1000, h,
dX, dY );
- //qDebug("trueRect: x %i y %i w %i h %i text: %s", anchor.x()+x+dX, anchor.y()+y+dY, w,h, content().text().latin1());
+ //tqDebug("trueRect: x %i y %i w %i h %i text: %s", anchor.x()+x+dX, anchor.y()+y+dY, w,h, content().text().latin1());
return TQRect( anchor.x()+x+dX, anchor.y()+y+dY, w, h );
}
@@ -294,29 +294,29 @@ TQPaintDeviceMetrics metrics(painter->device());
int pdWidth = metrics.width();
int dpiY = metrics.logicalDpiY();
int dpiX = metrics.logicalDpiX();
-qDebug("dpiY: %i dpiX: %i",dpiY,dpiX);
-qDebug("pdWidth: %i box myRect w: %i h %i",pdWidth,myRect.width(),myRect.height());
+tqDebug("dpiY: %i dpiX: %i",dpiY,dpiX);
+tqDebug("pdWidth: %i box myRect w: %i h %i",pdWidth,myRect.width(),myRect.height());
*/
//myRect.setSize(myRect.size()*6);
TQRect myFrameRect( frameRect );
if ( myRect.isValid() ) {
-//qDebug("box myRect center: x %i y %i",myRect.center().x(),myRect.center().y());
+//tqDebug("box myRect center: x %i y %i",myRect.center().x(),myRect.center().y());
if( _rotation ){
getTrueShift( areaWidthP1000, areaHeightP1000, myRect.height(),
rotDX, rotDY );
myRect.moveBy( -rotDX, -rotDY );
if( frame )
myFrameRect.moveBy( -rotDX, -rotDY );
-//qDebug("\nrotDelta: x %i y %i",rotDX,rotDY);
-//qDebug("\nbox myRect center: x %i y %i",myRect.center().x(),myRect.center().y());
+//tqDebug("\nrotDelta: x %i y %i",rotDX,rotDY);
+//tqDebug("\nbox myRect center: x %i y %i",myRect.center().x(),myRect.center().y());
myRect.moveCenter( TQPoint( anchor.x() - trueRectAlignX(myRect),
anchor.y() - trueRectAlignY(myRect) ) );
if( frame )
myFrameRect.moveCenter( TQPoint( anchor.x() - trueRectAlignX(myFrameRect),
anchor.y() - trueRectAlignY(myFrameRect) ) );
-//qDebug("box myRect center: x %i y %i",myRect.center().x(),myRect.center().y());
+//tqDebug("box myRect center: x %i y %i",myRect.center().x(),myRect.center().y());
painter->translate( anchor.x(), anchor.y() );
painter->rotate( _rotation );
painter->translate( rotDX, rotDY );
@@ -452,7 +452,7 @@ bool KDChartCustomBox::readCustomBoxNode( const TQDomElement& element,
} else if ( tagName == "ParentAxisArea" ) {
ok = ok & KDXML::readIntNode( element, tempParentAxisArea );
} else {
- qDebug( "Unknown tag in custom box" );
+ tqDebug( "Unknown tag in custom box" );
}
}
node = node.nextSibling();