summaryrefslogtreecommitdiffstats
path: root/lib/kformula/textelement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/textelement.cc')
-rw-r--r--lib/kformula/textelement.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/kformula/textelement.cc b/lib/kformula/textelement.cc
index 7f146b49..c9826429 100644
--- a/lib/kformula/textelement.cc
+++ b/lib/kformula/textelement.cc
@@ -66,7 +66,7 @@ TokenType TextElement::getTokenType() const
return getSymbolTable().charClass( character );
}
- switch ( character.unicode() ) {
+ switch ( character.tqunicode() ) {
case '+':
case '-':
case '*':
@@ -106,7 +106,7 @@ bool TextElement::isInvisible() const
/**
* Calculates our width and height and
- * our children's parentPosition.
+ * our tqchildren's parentPosition.
*/
void TextElement::calcSizes( const ContextStyle& context,
ContextStyle::TextStyle tstyle,
@@ -155,7 +155,7 @@ void TextElement::calcSizes( const ContextStyle& context,
}
/**
- * Draws the whole element including its children.
+ * Draws the whole element including its tqchildren.
* The `parentOrigin' is the point this element's parent starts.
* We can use our parentPosition to get our own origin then.
*/
@@ -202,7 +202,7 @@ void TextElement::draw( TQPainter& painter, const LuPixelRect& /*r*/,
ElementType* token = getElementType();
if ( ( token != 0 ) && !symbol ) {
TQString text = token->text( static_cast<SequenceElement*>( getParent() ) );
-// kdDebug() << "draw text: " << text[0].unicode()
+// kdDebug() << "draw text: " << text[0].tqunicode()
// << " " << painter.font().family().latin1()
// << endl;
painter.fillRect( context.layoutUnitToPixelX( parentOrigin.x() ),
@@ -401,10 +401,10 @@ bool TextElement::readAttributesFromDom(TQDomElement element)
if(!symbolStr.isNull()) {
int symbolInt = symbolStr.toInt();
if ( symbolInt == 1 ) {
- character = getSymbolTable().unicodeFromSymbolFont(character);
+ character = getSymbolTable().tqunicodeFromSymbolFont(character);
}
if ( symbolInt == 2 ) {
- switch ( character.unicode() ) {
+ switch ( character.tqunicode() ) {
case 0x03D5: character = 0x03C6; break;
case 0x03C6: character = 0x03D5; break;
case 0x03Ba: character = 0x03BA; break;