From 08d767bed05ef4c27236dec75d9ff4bb992b8e79 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:36:11 +0800 Subject: [PATCH] add hint & text alignment --- doric-Qt/example/doric/shader/DoricInputNode.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doric-Qt/example/doric/shader/DoricInputNode.cpp b/doric-Qt/example/doric/shader/DoricInputNode.cpp index d57280a0..990d4072 100644 --- a/doric-Qt/example/doric/shader/DoricInputNode.cpp +++ b/doric-Qt/example/doric/shader/DoricInputNode.cpp @@ -18,5 +18,11 @@ QQuickItem *DoricInputNode::build() { } void DoricInputNode::blend(QQuickItem *view, QString name, QJsonValue prop) { - { DoricViewNode::blend(view, name, prop); } + if (name == "hintText") { + view->setProperty("placeholderText", prop.toString()); + } else if (name == "textAlignment") { + view->setProperty("textAlignment", prop.toInt()); + } else { + DoricViewNode::blend(view, name, prop); + } }