add hint & text alignment
This commit is contained in:
parent
1892db80ec
commit
08d767bed0
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user