From 1892db80ecb2ccbc02d41047b7645da5cbded243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Wed, 26 May 2021 11:35:48 +0800 Subject: [PATCH] add maxLines --- doric-Qt/example/doric/shader/DoricTextNode.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doric-Qt/example/doric/shader/DoricTextNode.cpp b/doric-Qt/example/doric/shader/DoricTextNode.cpp index d8bdb205..870bf417 100644 --- a/doric-Qt/example/doric/shader/DoricTextNode.cpp +++ b/doric-Qt/example/doric/shader/DoricTextNode.cpp @@ -46,6 +46,8 @@ void DoricTextNode::blend(QQuickItem *view, QString name, QJsonValue prop) { view->setProperty("font", QVariant(font)); } else if (name == "textAlignment") { view->setProperty("textAlignment", prop.toInt()); + } else if (name == "maxLines") { + view->setProperty("lineCount", prop.toInt()); } else if (name == "fontStyle") { view->setProperty("fontStyle", prop.toString()); } else if (name == "shadow") { @@ -69,6 +71,8 @@ void DoricTextNode::blend(QQuickItem *view, QString name, QJsonValue prop) { view->setProperty("strikethrough", prop.toBool()); } else if (name == "underline") { view->setProperty("underline", prop.toBool()); + } else if (name == "lineSpacing") { + } else { DoricViewNode::blend(view, name, prop); }