JKQtPlotter/examples/jkqtmathtext_test/testform.h
jkriege2 45d6ef373b bugfix: JKQTMathText: \sum and \prod used the wrong symbol in XITS-mode
NEW: JKQTMathText: \limits and \nolimits work as in LaTeX now (before it was simply removed and the functionality implemented for a fixed list of symbols)
remove/breaking: JKQTMathText: \v[a-zA-Z] and shorthand for \vec{a-zA-Z} was removed
improvement: improved typesetting of sub-/supercripts, especially for large math operators and braces
2022-06-26 00:28:49 +02:00

36 lines
838 B
C++

#ifndef TESTFORM_H
#define TESTFORM_H
#include <QWidget>
#include <QStringList>
#include "jkqtmathtext/jkqtmathtext.h"
#include "jkqtcommon/jkqtphighrestimer.h"
#include <QPainter>
#include <QTreeWidget>
QT_BEGIN_NAMESPACE
namespace Ui {
class TestForm;
}
QT_END_NAMESPACE
class TestForm : public QWidget
{
Q_OBJECT
public:
explicit TestForm(QWidget *parent = 0);
~TestForm();
public slots:
void updateMath();
private:
Ui::TestForm *ui;
JKQTPHighResTimer ht;
double draw(QPainter& painter, double X, double YY, JKQTMathText& mt, QString name, double &durationSizingMS, double &durationTimingMS, QStringList *lstErrors=nullptr);
QTreeWidgetItem* createTree(JKQTMathTextNode* node, QTreeWidgetItem *parent=NULL);
};
#endif // TESTFORM_H