修复microtex颜色定义问题
This commit is contained in:
parent
0213e55e44
commit
1174f3ff61
@ -1,8 +1,6 @@
|
|||||||
#include "ctai_math_convert.h"
|
#include "ctai_math_convert.h"
|
||||||
|
|
||||||
ctai_math_convert::ctai_math_convert(QTextEdit* textEdit)
|
ctai_math_convert::ctai_math_convert()
|
||||||
: m_textEdit(textEdit)
|
|
||||||
, m_cursor(textEdit->document())
|
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -13,3 +11,6 @@ ctai_math_convert::~ctai_math_convert() {
|
|||||||
void ctai_math_convert::math_convert_svg(const QString& text) {
|
void ctai_math_convert::math_convert_svg(const QString& text) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
void ctai_math_convert::svg_convert_base64() {
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,22 +1,21 @@
|
|||||||
#ifndef CTAI_MATH_CONVERT_H
|
#ifndef CTAI_MATH_CONVERT_H
|
||||||
#define CTAI_MATH_CONVERT_H
|
#define CTAI_MATH_CONVERT_H
|
||||||
|
|
||||||
#include <QString>
|
#include "microtex.h"
|
||||||
#include <QTextEdit>
|
#include <QDebug>
|
||||||
#include <QTextCursor>
|
#include <QPainter>
|
||||||
#include <QTextCharFormat>
|
#include <QPixmap>
|
||||||
|
#include <QTimer>
|
||||||
|
|
||||||
class ctai_math_convert {
|
class ctai_math_convert {
|
||||||
public:
|
public:
|
||||||
explicit ctai_math_convert(QTextEdit* textEdit);
|
explicit ctai_math_convert();
|
||||||
~ctai_math_convert();
|
~ctai_math_convert();
|
||||||
|
|
||||||
// 追加内容并处理Markdown
|
// 追加内容并处理Markdown
|
||||||
void math_convert_svg(const QString& text);
|
void math_convert_svg(const QString& text);
|
||||||
void svg_convert_base64();
|
void svg_convert_base64();
|
||||||
private:
|
private:
|
||||||
QTextEdit* m_textEdit;
|
|
||||||
QTextCursor m_cursor;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Loading…
Reference in New Issue
Block a user