diff --git a/examples/jkqtmathtext_test/testform.cpp b/examples/jkqtmathtext_test/testform.cpp index 89399878fd..33fb34e0f0 100644 --- a/examples/jkqtmathtext_test/testform.cpp +++ b/examples/jkqtmathtext_test/testform.cpp @@ -474,6 +474,7 @@ QTreeWidgetItem *TestForm::createTree(JKQTMathTextNode *node, QTreeWidgetItem* p JKQTMathTextEmptyBoxNode* emptyN=dynamic_cast(node); JKQTMathTextVerbatimNode* verbN=dynamic_cast(node); JKQTMathTextPhantomNode* phanN=dynamic_cast(node); + JKQTMathTextNoopNode* noopN=dynamic_cast(node); QTreeWidgetItem* ti=nullptr; if (parent) ti=new QTreeWidgetItem(parent); @@ -546,22 +547,14 @@ QTreeWidgetItem *TestForm::createTree(JKQTMathTextNode *node, QTreeWidgetItem* p name=QString("TextNode: \'%1\'").arg(txtN->getText()); } else if (emptyN) { name=QString("EmptyBoxNode %1%2 x %3%4").arg(emptyN->getWidth()).arg(JKQTMathTextEmptyBoxNode::Units2String(emptyN->getWidthUnit())).arg(emptyN->getHeight()).arg(JKQTMathTextEmptyBoxNode::Units2String(emptyN->getHeightUnit())); + } else if (noopN) { + name="NoopNode"; } else { - name=QString("unknown"); + name=node->getTypeName(); } ti->setText(0,name); - /* - QString space=""; - QTreeWidgetItem* p=ti->parent(); - while (p) { - space+=" "; - p=p->parent(); - } - - qDebug()<