diff --git a/lib/jkqtmathtext/jkqtmathtext.cpp b/lib/jkqtmathtext/jkqtmathtext.cpp index d5aa36b768..c40639d6b4 100644 --- a/lib/jkqtmathtext/jkqtmathtext.cpp +++ b/lib/jkqtmathtext/jkqtmathtext.cpp @@ -145,7 +145,7 @@ QFont JKQTMathText::MTenvironment::getFont(JKQTMathText* parent) const { f.setFamily(parent->getFontRoman()); } break; - }; + } f.setBold(bold); f.setItalic(italic); f.setUnderline(underlined); @@ -239,8 +239,8 @@ void JKQTMathText::MTnode::doDrawBoxes(QPainter& painter, double x, double y, JK } -JKQTMathText::MTtextNode::MTtextNode(JKQTMathText* parent, const QString& textIn, bool addWhitespace, bool stripInnerWhitepace): - JKQTMathText::MTnode(parent) +JKQTMathText::MTtextNode::MTtextNode(JKQTMathText* _parent, const QString& textIn, bool addWhitespace, bool stripInnerWhitepace): + JKQTMathText::MTnode(_parent) { QString text=textIn; @@ -434,8 +434,8 @@ QString JKQTMathText::MTtextNode::textTransform(const QString &text, JKQTMathTex -JKQTMathText::MTinstruction1Node::MTinstruction1Node(JKQTMathText* parent, const QString& name, MTnode* child, const QStringList& parameters): - JKQTMathText::MTnode(parent) +JKQTMathText::MTinstruction1Node::MTinstruction1Node(JKQTMathText* _parent, const QString& name, MTnode* child, const QStringList& parameters): + JKQTMathText::MTnode(_parent) { this->name=name; this->child=child; @@ -564,8 +564,8 @@ bool JKQTMathText::MTinstruction1Node::setupMTenvironment(JKQTMathText::MTenviro -JKQTMathText::MTsubscriptNode::MTsubscriptNode(JKQTMathText* parent, MTnode* child): - JKQTMathText::MTnode(parent) +JKQTMathText::MTsubscriptNode::MTsubscriptNode(JKQTMathText* _parent, MTnode* child): + JKQTMathText::MTnode(_parent) { this->child=child; } @@ -647,8 +647,8 @@ void JKQTMathText::MTsubscriptNode::setDrawBoxes(bool draw) -JKQTMathText::MTsqrtNode::MTsqrtNode(JKQTMathText* parent, MTnode* child, int degree): - JKQTMathText::MTnode(parent) +JKQTMathText::MTsqrtNode::MTsqrtNode(JKQTMathText* _parent, MTnode* child, int degree): + JKQTMathText::MTnode(_parent) { this->child=child; this->degree=degree; @@ -741,8 +741,8 @@ int JKQTMathText::MTsqrtNode::getDegree() const { -JKQTMathText::MTfracNode::MTfracNode(JKQTMathText* parent, MTnode* child_top, MTnode* child_bottom, MTfracMode mode): - JKQTMathText::MTnode(parent) +JKQTMathText::MTfracNode::MTfracNode(JKQTMathText* _parent, MTnode* child_top, MTnode* child_bottom, MTfracMode mode): + JKQTMathText::MTnode(_parent) { this->child1=child_top; this->child2=child_bottom; @@ -969,8 +969,8 @@ JKQTMathText::MTfracMode JKQTMathText::MTfracNode::getMode() const { -JKQTMathText::MTmatrixNode::MTmatrixNode(JKQTMathText* parent, QVector > children): - JKQTMathText::MTnode(parent) +JKQTMathText::MTmatrixNode::MTmatrixNode(JKQTMathText* _parent, QVector > children): + JKQTMathText::MTnode(_parent) { this->lines=children.size(); this->columns=0; @@ -1132,8 +1132,8 @@ void JKQTMathText::MTmatrixNode::setDrawBoxes(bool draw) -JKQTMathText::MTdecoratedNode::MTdecoratedNode(JKQTMathText* parent, MTdecoration decoration, MTnode* child): - JKQTMathText::MTnode(parent) +JKQTMathText::MTdecoratedNode::MTdecoratedNode(JKQTMathText* _parent, MTdecoration decoration, MTnode* child): + JKQTMathText::MTnode(_parent) { this->child=child; this->decoration=decoration; @@ -1301,8 +1301,8 @@ JKQTMathText::MTdecoration JKQTMathText::MTdecoratedNode::getDecoration() const -JKQTMathText::MTsuperscriptNode::MTsuperscriptNode(JKQTMathText* parent, MTnode* child): - JKQTMathText::MTnode(parent) +JKQTMathText::MTsuperscriptNode::MTsuperscriptNode(JKQTMathText* _parent, MTnode* child): + JKQTMathText::MTnode(_parent) { this->child=child; } @@ -1383,8 +1383,8 @@ void JKQTMathText::MTsuperscriptNode::setDrawBoxes(bool draw) -JKQTMathText::MTbraceNode::MTbraceNode(JKQTMathText* parent, const QString& openbrace, const QString& closebrace, MTnode* child, bool showRightBrace): - JKQTMathText::MTnode(parent) +JKQTMathText::MTbraceNode::MTbraceNode(JKQTMathText* _parent, const QString& openbrace, const QString& closebrace, MTnode* child, bool showRightBrace): + JKQTMathText::MTnode(_parent) { this->child=child; this->openbrace=openbrace; @@ -1646,8 +1646,8 @@ void JKQTMathText::MTbraceNode::getBraceWidth(QPainter &/*painter*/, JKQTMathTex -JKQTMathText::MTlistNode::MTlistNode(JKQTMathText* parent): - JKQTMathText::MTnode(parent) +JKQTMathText::MTlistNode::MTlistNode(JKQTMathText* _parent): + JKQTMathText::MTnode(_parent) { nodes.clear(); // these operations cause sub/sup script to be typeset over/under the operator, not right besides! @@ -2049,8 +2049,8 @@ QList JKQTMathText::MTlistNode::getNodes() const { -JKQTMathText::MTsymbolNode::MTsymbolNode(JKQTMathText* parent, const QString& name, bool _addWhitespace): - JKQTMathText::MTnode(parent), symbolName(name), addWhitespace(_addWhitespace) +JKQTMathText::MTsymbolNode::MTsymbolNode(JKQTMathText* _parent, const QString& name, bool _addWhitespace): + JKQTMathText::MTnode(_parent), symbolName(name), addWhitespace(_addWhitespace) { } @@ -2292,18 +2292,23 @@ bool JKQTMathText::MTsymbolNode::getGreekSymbolProp(JKQTMathText::MTsymbolNode:: unicodeGreek.insert("Lambda", QChar(0x39B)); unicodeGreek.insert("Xi", QChar(0x39E)); unicodeGreek.insert("Pi", QChar(0x3A0)); + unicodeGreek.insert("prod", QChar(0x3A0)); unicodeGreek.insert("Sigma", QChar(0x3A3)); + unicodeGreek.insert("sum", QChar(0x3A3)); unicodeGreek.insert("Upsilon", QChar(0x3A5)); unicodeGreek.insert("Phi", QChar(0x3A6)); unicodeGreek.insert("Psi", QChar(0x3A8)); } + qDebug()<<"##SEARCHING "<::iterator itgreek = unicodeGreek.find(n); if (itgreek!=unicodeGreek.end()) { + qDebug()<<"##SEARCHING "<::iterator itgreek = unicodeGreek.find(n); if (itgreek!=unicodeGreek.end()) { + qDebug()<<"##SEARCHING "<::iterator itgreek = winSymbolGreek.find(n); if (itgreek!=winSymbolGreek.end()) { props.symbol = itgreek.value(); + qDebug()<<"##SEARCHING "<::iterator itbasesymbol = unicodeBaseSymbol.find(n); if (itbasesymbol!=unicodeBaseSymbol.end()) { props.symbol = itbasesymbol.value(); + //qDebug()<<"### found "<