add maxLines
This commit is contained in:
parent
49e93564a7
commit
1892db80ec
@ -46,6 +46,8 @@ void DoricTextNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
|
|||||||
view->setProperty("font", QVariant(font));
|
view->setProperty("font", QVariant(font));
|
||||||
} else if (name == "textAlignment") {
|
} else if (name == "textAlignment") {
|
||||||
view->setProperty("textAlignment", prop.toInt());
|
view->setProperty("textAlignment", prop.toInt());
|
||||||
|
} else if (name == "maxLines") {
|
||||||
|
view->setProperty("lineCount", prop.toInt());
|
||||||
} else if (name == "fontStyle") {
|
} else if (name == "fontStyle") {
|
||||||
view->setProperty("fontStyle", prop.toString());
|
view->setProperty("fontStyle", prop.toString());
|
||||||
} else if (name == "shadow") {
|
} else if (name == "shadow") {
|
||||||
@ -69,6 +71,8 @@ void DoricTextNode::blend(QQuickItem *view, QString name, QJsonValue prop) {
|
|||||||
view->setProperty("strikethrough", prop.toBool());
|
view->setProperty("strikethrough", prop.toBool());
|
||||||
} else if (name == "underline") {
|
} else if (name == "underline") {
|
||||||
view->setProperty("underline", prop.toBool());
|
view->setProperty("underline", prop.toBool());
|
||||||
|
} else if (name == "lineSpacing") {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
DoricViewNode::blend(view, name, prop);
|
DoricViewNode::blend(view, name, prop);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user