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