This commit is contained in:
njdaoyehu 2024-11-28 10:22:01 +08:00
parent b033ec5c0c
commit e7eb6d09ba

View File

@ -99,27 +99,6 @@ class TaskRunDialog(QDialog):
fmt.setForeground(QBrush(font_color)) fmt.setForeground(QBrush(font_color))
self.log_text.mergeCurrentCharFormat(fmt) self.log_text.mergeCurrentCharFormat(fmt)
self.log_text.appendPlainText(text) self.log_text.appendPlainText(text)
# InsertText(QString
# text, QPlainTextEdit * plainTextEdit, int
# fontSize, QColor
# fontColor, QColor
# backColor)
# {
# QTextCharFormat
# fmt;
# // 字体色
# fmt.setForeground(QBrush(fontColor));
# // fmt.setUnderlineColor("red");
#
# // 背景色
# fmt.setBackground(QBrush(backColor));
# // 字体大小
# fmt.setFontPointSize(fontSize);
# // 文本框使用以上设定
# plainTextEdit->mergeCurrentCharFormat(fmt);
# // 文本框添加文本
# plainTextEdit->appendPlainText(text);
# }
def showEvent(self, e): def showEvent(self, e):
AppContext.get_edge_context().get_component('image-framework').start_location() AppContext.get_edge_context().get_component('image-framework').start_location()