diff options
Diffstat (limited to 'lib/kformula/errorelement.cc')
-rw-r--r-- | lib/kformula/errorelement.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/kformula/errorelement.cc b/lib/kformula/errorelement.cc index f6141c4f..0bf80237 100644 --- a/lib/kformula/errorelement.cc +++ b/lib/kformula/errorelement.cc @@ -17,35 +17,35 @@ * Boston, MA 02110-1301, USA. */ -#include <qpainter.h> +#include <tqpainter.h> #include "errorelement.h" KFORMULA_NAMESPACE_BEGIN -ErrorElement::ErrorElement( BasicElement* parent ) : SequenceElement( parent ) { +ErrorElement::ErrorElement( BasicElement* tqparent ) : SequenceElement( tqparent ) { } /** - * Draws the whole element including its children. - * The `parentOrigin' is the point this element's parent starts. - * We can use our parentPosition to get our own origin then. + * 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. */ -void ErrorElement::draw( QPainter& painter, const LuPixelRect& r, +void ErrorElement::draw( TQPainter& painter, const LuPixelRect& r, const ContextStyle& context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes& style, - const LuPixelPoint& parentOrigin ) + const LuPixelPoint& tqparentOrigin ) { - LuPixelPoint myPos( parentOrigin.x()+getX(), parentOrigin.y()+getY() ); + LuPixelPoint myPos( tqparentOrigin.x()+getX(), tqparentOrigin.y()+getY() ); - painter.fillRect( context.layoutUnitToPixelX( myPos.x() ), - context.layoutUnitToPixelY( myPos.y() ), - context.layoutUnitToPixelX( getWidth() ), - context.layoutUnitToPixelY( getHeight() ), + painter.fillRect( context.tqlayoutUnitToPixelX( myPos.x() ), + context.tqlayoutUnitToPixelY( myPos.y() ), + context.tqlayoutUnitToPixelX( getWidth() ), + context.tqlayoutUnitToPixelY( getHeight() ), context.getErrorColor() ); - inherited::draw( painter, r, context, tstyle, istyle, style, parentOrigin ); + inherited::draw( painter, r, context, tstyle, istyle, style, tqparentOrigin ); } KFORMULA_NAMESPACE_END |