summaryrefslogtreecommitdiffstats
path: root/lib/kformula/sequenceelement.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/sequenceelement.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/sequenceelement.cc')
-rw-r--r--lib/kformula/sequenceelement.cc90
1 files changed, 45 insertions, 45 deletions
diff --git a/lib/kformula/sequenceelement.cc b/lib/kformula/sequenceelement.cc
index eb64a13e..46c00817 100644
--- a/lib/kformula/sequenceelement.cc
+++ b/lib/kformula/sequenceelement.cc
@@ -114,12 +114,12 @@ bool SequenceElement::readOnly( const FormulaCursor* ) const
* Returns the element the point is in.
*/
BasicElement* SequenceElement::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());
uint count = tqchildren.count();
for (uint i = 0; i < count; i++) {
@@ -174,7 +174,7 @@ bool SequenceElement::isEmpty()
/**
* Calculates our width and height and
- * our tqchildren's tqparentPosition.
+ * our tqchildren's parentPosition.
*/
void SequenceElement::calcSizes( const ContextStyle& context,
ContextStyle::TextStyle tstyle,
@@ -247,17 +247,17 @@ void SequenceElement::setChildrenPositions()
/**
* 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 SequenceElement::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() );
// There might be zero sized elements that still want to be drawn at least
// in edit mode. (EmptyElement)
//if ( !LuPixelRect( myPos.x(), myPos.y(), getWidth(), getHeight() ).intersects( r ) )
@@ -292,17 +292,17 @@ void SequenceElement::draw( TQPainter& painter, const LuPixelRect& r,
}
// Debug
//painter.setPen(TQt::green);
- //painter.drawRect(tqparentOrigin.x() + getX(), tqparentOrigin.y() + getY(),
+ //painter.drawRect(parentOrigin.x() + getX(), parentOrigin.y() + getY(),
// getWidth(), getHeight());
-// painter.drawLine( context.tqlayoutUnitToPixelX( tqparentOrigin.x() + getX() ),
-// context.tqlayoutUnitToPixelY( tqparentOrigin.y() + getY() + axis( context, tstyle ) ),
-// context.tqlayoutUnitToPixelX( tqparentOrigin.x() + getX() + getWidth() ),
-// context.tqlayoutUnitToPixelY( tqparentOrigin.y() + getY() + axis( context, tstyle ) ) );
+// painter.drawLine( context.layoutUnitToPixelX( parentOrigin.x() + getX() ),
+// context.layoutUnitToPixelY( parentOrigin.y() + getY() + axis( context, tstyle ) ),
+// context.layoutUnitToPixelX( parentOrigin.x() + getX() + getWidth() ),
+// context.layoutUnitToPixelY( parentOrigin.y() + getY() + axis( context, tstyle ) ) );
// painter.setPen(TQt::red);
-// painter.drawLine( context.tqlayoutUnitToPixelX( tqparentOrigin.x() + getX() ),
-// context.tqlayoutUnitToPixelY( tqparentOrigin.y() + getY() + getBaseline() ),
-// context.tqlayoutUnitToPixelX( tqparentOrigin.x() + getX() + getWidth() ),
-// context.tqlayoutUnitToPixelY( tqparentOrigin.y() + getY() + getBaseline() ) );
+// painter.drawLine( context.layoutUnitToPixelX( parentOrigin.x() + getX() ),
+// context.layoutUnitToPixelY( parentOrigin.y() + getY() + getBaseline() ),
+// context.layoutUnitToPixelX( parentOrigin.x() + getX() + getWidth() ),
+// context.layoutUnitToPixelY( parentOrigin.y() + getY() + getBaseline() ) );
}
@@ -322,11 +322,11 @@ void SequenceElement::drawEmptyRect( TQPainter& painter, const ContextStyle& con
if ( context.edit() ) {
painter.setBrush(TQt::NoBrush);
painter.setPen( TQPen( context.getEmptyColor(),
- context.tqlayoutUnitToPixelX( context.getLineWidth( factor ) ) ) );
- painter.drawRect( context.tqlayoutUnitToPixelX( upperLeft.x() ),
- context.tqlayoutUnitToPixelY( upperLeft.y() ),
- context.tqlayoutUnitToPixelX( getWidth() ),
- context.tqlayoutUnitToPixelY( getHeight() ) );
+ context.layoutUnitToPixelX( context.getLineWidth( factor ) ) ) );
+ painter.drawRect( context.layoutUnitToPixelX( upperLeft.x() ),
+ context.layoutUnitToPixelY( upperLeft.y() ),
+ context.layoutUnitToPixelX( getWidth() ),
+ context.layoutUnitToPixelY( getHeight() ) );
}
}
@@ -384,14 +384,14 @@ void SequenceElement::drawCursor( TQPainter& painter, const ContextStyle& contex
painter.setRasterOp( TQt::XorROP );
if ( cursor->isSelection() ) {
const LuPixelRect& r = cursor->cursorSize;
- painter.fillRect( context.tqlayoutUnitToPixelX( r.x() ),
- context.tqlayoutUnitToPixelY( r.y() ),
- context.tqlayoutUnitToPixelX( r.width() ),
- context.tqlayoutUnitToPixelY( r.height() ),
+ painter.fillRect( context.layoutUnitToPixelX( r.x() ),
+ context.layoutUnitToPixelY( r.y() ),
+ context.layoutUnitToPixelX( r.width() ),
+ context.layoutUnitToPixelY( r.height() ),
TQt::white );
}
painter.setPen( TQPen( TQt::white,
- context.tqlayoutUnitToPixelX( context.getLineWidth( style.sizeFactor() )/2 ) ) );
+ context.layoutUnitToPixelX( context.getLineWidth( style.sizeFactor() )/2 ) ) );
const LuPixelPoint& point = cursor->getCursorPoint();
const LuPixelRect& size = cursor->getCursorSize();
if ( activeCursor )
@@ -399,20 +399,20 @@ void SequenceElement::drawCursor( TQPainter& painter, const ContextStyle& contex
int offset = 0;
if ( cursor->isSelection() && cursor->getPos() > cursor->getMark() )
offset = -1;
- painter.drawLine( context.tqlayoutUnitToPixelX( point.x() ) + offset,
- context.tqlayoutUnitToPixelY( size.top() ),
- context.tqlayoutUnitToPixelX( point.x() ) + offset,
- context.tqlayoutUnitToPixelY( size.bottom() )-1 );
- painter.drawLine( context.tqlayoutUnitToPixelX( point.x() ) + offset + 1,
- context.tqlayoutUnitToPixelY( size.top() ),
- context.tqlayoutUnitToPixelX( point.x() ) + offset + 1,
- context.tqlayoutUnitToPixelY( size.bottom() )-1 );
+ painter.drawLine( context.layoutUnitToPixelX( point.x() ) + offset,
+ context.layoutUnitToPixelY( size.top() ),
+ context.layoutUnitToPixelX( point.x() ) + offset,
+ context.layoutUnitToPixelY( size.bottom() )-1 );
+ painter.drawLine( context.layoutUnitToPixelX( point.x() ) + offset + 1,
+ context.layoutUnitToPixelY( size.top() ),
+ context.layoutUnitToPixelX( point.x() ) + offset + 1,
+ context.layoutUnitToPixelY( size.bottom() )-1 );
}
if ( !smallCursor && !cursor->isSelection() )
- painter.drawLine( context.tqlayoutUnitToPixelX( size.left() ),
- context.tqlayoutUnitToPixelY( size.bottom() )-1,
- context.tqlayoutUnitToPixelX( size.right() )-1,
- context.tqlayoutUnitToPixelY( size.bottom() )-1 );
+ painter.drawLine( context.layoutUnitToPixelX( size.left() ),
+ context.layoutUnitToPixelY( size.bottom() )-1,
+ context.layoutUnitToPixelX( size.right() )-1,
+ context.layoutUnitToPixelY( size.bottom() )-1 );
// This might be wrong but probably isn't.
painter.setRasterOp( TQt::CopyROP );
}
@@ -1629,13 +1629,13 @@ void NameSequence::drawCursor( TQPainter& painter, const ContextStyle& context,
{
LuPixelPoint point = widgetPos();
painter.setPen( TQPen( context.getEmptyColor(),
- context.tqlayoutUnitToPixelX( context.getLineWidth( style.sizeFactor() )/2 ) ) );
+ context.layoutUnitToPixelX( context.getLineWidth( style.sizeFactor() )/2 ) ) );
luPixel unitX = context.ptToLayoutUnitPixX( 1 );
luPixel unitY = context.ptToLayoutUnitPixY( 1 );
- painter.drawRect( context.tqlayoutUnitToPixelX( point.x()-unitX ),
- context.tqlayoutUnitToPixelY( point.y()-unitY ),
- context.tqlayoutUnitToPixelX( getWidth()+2*unitX ),
- context.tqlayoutUnitToPixelY( getHeight()+2*unitY ) );
+ painter.drawRect( context.layoutUnitToPixelX( point.x()-unitX ),
+ context.layoutUnitToPixelY( point.y()-unitY ),
+ context.layoutUnitToPixelX( getWidth()+2*unitX ),
+ context.layoutUnitToPixelY( getHeight()+2*unitY ) );
inherited::drawCursor( painter, context, style, cursor, smallCursor, activeCursor );
}