mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
adjust QTextEdit property in VEdit
Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
parent
4323797602
commit
5506cec07b
@ -11,8 +11,10 @@ VEdit::VEdit(VNoteFile *noteFile, QWidget *parent)
|
||||
if (noteFile->docType == DocType::Markdown) {
|
||||
setPalette(vconfig.getMdEditPalette());
|
||||
setFont(vconfig.getMdEditFont());
|
||||
setAcceptRichText(false);
|
||||
} else {
|
||||
setFont(vconfig.getBaseEditFont());
|
||||
setAutoFormatting(QTextEdit::AutoBulletList);
|
||||
}
|
||||
}
|
||||
|
||||
@ -24,6 +26,7 @@ void VEdit::beginEdit()
|
||||
setHtml(noteFile->content);
|
||||
break;
|
||||
case DocType::Markdown:
|
||||
setFont(vconfig.getMdEditFont());
|
||||
setPlainText(noteFile->content);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user