mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-07 02:50:59 -08:00
revision of QML "sokoban"; add function QML-SET-ALL;
This commit is contained in:
parent
a85aaa41ff
commit
cd0227b66b
8 changed files with 108 additions and 9 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#:js
|
||||
#:qml-get
|
||||
#:qml-set
|
||||
#:qml-set-all
|
||||
#:paint
|
||||
#:reload
|
||||
#:root-context
|
||||
|
|
@ -135,6 +136,12 @@
|
|||
(|update| item))))
|
||||
(eql::%error-msg "QML-SET" (list item/name property-name value))))))
|
||||
|
||||
(defun qml-set-all (name property-name value &optional update)
|
||||
"Sets QQmlProperty of all objects matching NAME."
|
||||
(assert (stringp name))
|
||||
(dolist (item (qfind-children (root-item) name))
|
||||
(qml-set item property-name value update)))
|
||||
|
||||
;;; JS
|
||||
|
||||
(defun js (item/name js-format-string &rest arguments)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue