add strikethrough & underline

This commit is contained in:
王劲鹏
2021-05-25 14:44:42 +08:00
committed by osborn
parent ec9dfe9e58
commit a5522660a7
2 changed files with 16 additions and 0 deletions

View File

@@ -125,4 +125,16 @@ TextArea {
}
textFormat: TextEdit.AutoText
property var strikethrough: false
onStrikethroughChanged: {
font.strikeout = strikethrough
}
property var underline: false
onUnderlineChanged: {
font.underline = underline
}
}