summaryrefslogtreecommitdiffstats
path: root/lib/kformula/bracketelement.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
commit7c71ab86d1f7e387fc3df63b48df07231f111862 (patch)
tree30ba2d2f840ff5fd458b6113e9c3f2e8a71d510d /lib/kformula/bracketelement.cc
parentafbfdc507bfaafc8824a9808311d57a9ece87510 (diff)
downloadkoffice-7c71ab86d1f7e387fc3df63b48df07231f111862.tar.gz
koffice-7c71ab86d1f7e387fc3df63b48df07231f111862.zip
Remove the tq in front of these incorrectly TQt4-converted methods/data members:
tqrepaint[...] tqinvalidate[...] tqparent[...] tqmask[...] tqlayout[...] tqalignment[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kformula/bracketelement.cc')
-rw-r--r--lib/kformula/bracketelement.cc78
1 files changed, 39 insertions, 39 deletions
diff --git a/lib/kformula/bracketelement.cc b/lib/kformula/bracketelement.cc
index d95eac78..0a599dc0 100644
--- a/lib/kformula/bracketelement.cc
+++ b/lib/kformula/bracketelement.cc
@@ -59,7 +59,7 @@ SingleContentElement::~SingleContentElement()
TQChar SingleContentElement::getCharacter() const
{
// This is meant to make the SingleContentElement text only.
- // This "fixes" the tqparenthesis problem (tqparenthesis too large).
+ // This "fixes" the parenthesis problem (parenthesis too large).
// I'm not sure if we really want this. There should be better ways.
if ( content->isTextOnly() ) {
return '\\';
@@ -68,12 +68,12 @@ TQChar SingleContentElement::getCharacter() const
}
BasicElement* SingleContentElement::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) {
@@ -252,12 +252,12 @@ void BracketElement::entered( SequenceElement* /*child*/ )
BasicElement* BracketElement::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 = getContent()->goToPos(cursor, handled, point, myPos);
if (e != 0) {
return e;
@@ -281,7 +281,7 @@ BasicElement* BracketElement::goToPos( FormulaCursor* cursor, bool& handled,
/**
* Calculates our width and height and
- * our tqchildren's tqparentPosition.
+ * our tqchildren's parentPosition.
*/
void BracketElement::calcSizes( const ContextStyle& context,
ContextStyle::TextStyle tstyle,
@@ -361,17 +361,17 @@ void BracketElement::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 BracketElement::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;
@@ -394,14 +394,14 @@ void BracketElement::draw( TQPainter& painter, const LuPixelRect& r,
#if 0
painter.setBrush( TQt::NoBrush );
painter.setPen( TQt::red );
- painter.drawRect( context.tqlayoutUnitToPixelX( myPos.x()+left->getX() ),
- context.tqlayoutUnitToPixelY( myPos.y()+left->getY() ),
- context.tqlayoutUnitToPixelX( left->getWidth() ),
- context.tqlayoutUnitToPixelY( left->getHeight() ) );
- painter.drawRect( context.tqlayoutUnitToPixelX( myPos.x()+right->getX() ),
- context.tqlayoutUnitToPixelY( myPos.y()+right->getY() ),
- context.tqlayoutUnitToPixelX( right->getWidth() ),
- context.tqlayoutUnitToPixelY( right->getHeight() ) );
+ painter.drawRect( context.layoutUnitToPixelX( myPos.x()+left->getX() ),
+ context.layoutUnitToPixelY( myPos.y()+left->getY() ),
+ context.layoutUnitToPixelX( left->getWidth() ),
+ context.layoutUnitToPixelY( left->getHeight() ) );
+ painter.drawRect( context.layoutUnitToPixelX( myPos.x()+right->getX() ),
+ context.layoutUnitToPixelY( myPos.y()+right->getY() ),
+ context.layoutUnitToPixelX( right->getWidth() ),
+ context.layoutUnitToPixelY( right->getHeight() ) );
#endif
}
@@ -520,9 +520,9 @@ int BracketElement::readContentFromMathMLDom(TQDomNode& node)
bool empty = false;
int nodeCounter = 0;
if ( m_operator ) {
- node = node.tqparentNode();
+ node = node.parentNode();
TQDomNode open = node;
- TQDomNode tqparent = node.tqparentNode();
+ TQDomNode tqparent = node.parentNode();
if ( ! operatorType( node, true ) )
return -1;
int nodeNum = searchOperator( node );
@@ -563,7 +563,7 @@ int BracketElement::readContentFromMathMLDom(TQDomNode& node)
next = next.nextSibling();
if ( ! next.isNull()) {
TQDomDocument doc = node.ownerDocument();
- TQDomNode tqparent = node.tqparentNode();
+ TQDomNode tqparent = node.parentNode();
TQString ns = tqparent.prefix();
TQDomElement de = doc.createElementNS( ns, "mrow" );
uint pos = 0;
@@ -850,9 +850,9 @@ void OverlineElement::draw( TQPainter& painter, const LuPixelRect& r,
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;
@@ -868,12 +868,12 @@ void OverlineElement::draw( TQPainter& painter, const LuPixelRect& r,
//luPixel unit = (content->getHeight() + distY)/ 3;
painter.setPen( TQPen( context.getDefaultColor(),
- context.tqlayoutUnitToPixelY( context.getLineWidth( factor ) ) ) );
+ context.layoutUnitToPixelY( context.getLineWidth( factor ) ) ) );
- painter.drawLine( context.tqlayoutUnitToPixelX( x ),
- context.tqlayoutUnitToPixelY( y+distY/3 ),
- context.tqlayoutUnitToPixelX( x+content->getWidth() ),
- context.tqlayoutUnitToPixelY( y+distY/3 ) );
+ painter.drawLine( context.layoutUnitToPixelX( x ),
+ context.layoutUnitToPixelY( y+distY/3 ),
+ context.layoutUnitToPixelX( x+content->getWidth() ),
+ context.layoutUnitToPixelY( y+distY/3 ) );
}
@@ -954,9 +954,9 @@ void UnderlineElement::draw( TQPainter& painter, const LuPixelRect& r,
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;
@@ -972,12 +972,12 @@ void UnderlineElement::draw( TQPainter& painter, const LuPixelRect& r,
double factor = style.sizeFactor();
painter.setPen( TQPen( context.getDefaultColor(),
- context.tqlayoutUnitToPixelY( context.getLineWidth( factor ) ) ) );
+ context.layoutUnitToPixelY( context.getLineWidth( factor ) ) ) );
- painter.drawLine( context.tqlayoutUnitToPixelX( x ),
- context.tqlayoutUnitToPixelY( y+getHeight()-context.getLineWidth( factor ) ),
- context.tqlayoutUnitToPixelX( x+content->getWidth() ),
- context.tqlayoutUnitToPixelY( y+getHeight()-context.getLineWidth( factor ) ) );
+ painter.drawLine( context.layoutUnitToPixelX( x ),
+ context.layoutUnitToPixelY( y+getHeight()-context.getLineWidth( factor ) ),
+ context.layoutUnitToPixelX( x+content->getWidth() ),
+ context.layoutUnitToPixelY( y+getHeight()-context.getLineWidth( factor ) ) );
}