diff options
Diffstat (limited to 'lib/kformula/symbolelement.cc')
| -rw-r--r-- | lib/kformula/symbolelement.cc | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/kformula/symbolelement.cc b/lib/kformula/symbolelement.cc index 518fba2f5..fb2eb69de 100644 --- a/lib/kformula/symbolelement.cc +++ b/lib/kformula/symbolelement.cc @@ -134,12 +134,12 @@ bool SymbolElement::accept( ElementVisitor* visitor ) BasicElement* SymbolElement::goToPos( FormulaCursor* cursor, bool& handled, - const LuPixelPoint& point, const LuPixelPoint& tqparentOrigin ) + const LuPixelPoint& point, const LuPixelPoint& parentOrigin ) { - BasicElement* e = BasicElement::goToPos(cursor, handled, point, tqparentOrigin); + BasicElement* e = BasicElement::goToPos(cursor, handled, point, parentOrigin); if (e != 0) { - LuPixelPoint myPos(tqparentOrigin.x() + getX(), - tqparentOrigin.y() + getY()); + LuPixelPoint myPos(parentOrigin.x() + getX(), + parentOrigin.y() + getY()); e = content->goToPos(cursor, handled, point, myPos); if (e != 0) { @@ -192,7 +192,7 @@ BasicElement* SymbolElement::goToPos( FormulaCursor* cursor, bool& handled, /** * Calculates our width and height and - * our tqchildren's tqparentPosition. + * our tqchildren's parentPosition. */ void SymbolElement::calcSizes( const ContextStyle& context, ContextStyle::TextStyle tstyle, @@ -212,7 +212,7 @@ void SymbolElement::calcSizes( const ContextStyle& context, symbol->calcSizes(context, tstyle, factor, mySize); content->calcSizes( context, tstyle, istyle, style ); - //symbol->scale(((double)tqparentSize)/symbol->getHeight()*2); + //symbol->scale(((double)parentSize)/symbol->getHeight()*2); luPixel upperWidth = 0; luPixel upperHeight = 0; @@ -300,17 +300,17 @@ void SymbolElement::calcSizes( const ContextStyle& context, /** * Draws the whole element including its tqchildren. - * The `tqparentOrigin' is the point this element's tqparent starts. - * We can use our tqparentPosition to get our own origin then. + * The `parentOrigin' is the point this element's tqparent starts. + * We can use our parentPosition to get our own origin then. */ void SymbolElement::draw( TQPainter& painter, const LuPixelRect& r, const ContextStyle& context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes& style, - const LuPixelPoint& tqparentOrigin ) + const LuPixelPoint& parentOrigin ) { - LuPixelPoint myPos( tqparentOrigin.x()+getX(), tqparentOrigin.y()+getY() ); + LuPixelPoint myPos( parentOrigin.x()+getX(), parentOrigin.y()+getY() ); //if ( !LuPixelRect( myPos.x(), myPos.y(), getWidth(), getHeight() ).intersects( r ) ) // return; @@ -330,19 +330,19 @@ void SymbolElement::draw( TQPainter& painter, const LuPixelRect& r, #if 0 painter.setBrush(TQt::NoBrush); painter.setPen(TQt::red); -// painter.drawRect( context.tqlayoutUnitToPixelX( myPos.x() ), -// context.tqlayoutUnitToPixelY( myPos.y() ), -// context.tqlayoutUnitToPixelX( getWidth() ), -// context.tqlayoutUnitToPixelY( getHeight() ) ); - painter.drawRect( context.tqlayoutUnitToPixelX( myPos.x()+symbol->getX() ), - context.tqlayoutUnitToPixelY( myPos.y()+symbol->getY() ), - context.tqlayoutUnitToPixelX( symbol->getWidth() ), - context.tqlayoutUnitToPixelY( symbol->getHeight() ) ); +// painter.drawRect( context.layoutUnitToPixelX( myPos.x() ), +// context.layoutUnitToPixelY( myPos.y() ), +// context.layoutUnitToPixelX( getWidth() ), +// context.layoutUnitToPixelY( getHeight() ) ); + painter.drawRect( context.layoutUnitToPixelX( myPos.x()+symbol->getX() ), + context.layoutUnitToPixelY( myPos.y()+symbol->getY() ), + context.layoutUnitToPixelX( symbol->getWidth() ), + context.layoutUnitToPixelY( symbol->getHeight() ) ); painter.setPen(TQt::green); - painter.drawLine( context.tqlayoutUnitToPixelX( myPos.x() ), - context.tqlayoutUnitToPixelY( myPos.y()+axis(context, tstyle) ), - context.tqlayoutUnitToPixelX( myPos.x()+getWidth() ), - context.tqlayoutUnitToPixelY( myPos.y()+axis(context, tstyle) ) ); + painter.drawLine( context.layoutUnitToPixelX( myPos.x() ), + context.layoutUnitToPixelY( myPos.y()+axis(context, tstyle) ), + context.layoutUnitToPixelX( myPos.x()+getWidth() ), + context.layoutUnitToPixelY( myPos.y()+axis(context, tstyle) ) ); #endif } |
