add strikethrough & underline
This commit is contained in:
parent
ec9dfe9e58
commit
a5522660a7
@ -125,4 +125,16 @@ TextArea {
|
||||
}
|
||||
|
||||
textFormat: TextEdit.AutoText
|
||||
|
||||
property var strikethrough: false
|
||||
|
||||
onStrikethroughChanged: {
|
||||
font.strikeout = strikethrough
|
||||
}
|
||||
|
||||
property var underline: false
|
||||
|
||||
onUnderlineChanged: {
|
||||
font.underline = underline
|
||||
}
|
||||
}
|
||||
|
@ -65,6 +65,10 @@ void DoricTextNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
|
||||
DoricLayouts *layout =
|
||||
(DoricLayouts *)(mView->property("doricLayout").toULongLong());
|
||||
layout->setMaxHeight(prop.toDouble());
|
||||
} else if (name == "strikethrough") {
|
||||
view->setProperty("strikethrough", prop.toBool());
|
||||
} else if (name == "underline") {
|
||||
view->setProperty("underline", prop.toBool());
|
||||
} else {
|
||||
DoricViewNode::blend(view, name, prop);
|
||||
}
|
||||
|
Reference in New Issue
Block a user