revisions of "quick" examples docu

This commit is contained in:
polos 2017-02-17 10:16:30 +01:00
parent 2f67ce73b4
commit 26e218d29e
9 changed files with 42 additions and 25 deletions

View file

@ -78,7 +78,9 @@ Examples:
(qproperties* (qml:find-quick-item "label"))
(show-properties-dialog "label") ; see "properties.lisp
Using a dialog, where you can use button [Select] to visually select items:
(show-properties-dialog "label") ; see "properties.lisp"
TIP

View file

@ -7,7 +7,8 @@
"Lists all instance properties of a QML item (either a QQuickItem or an 'objectName'). If no item is passed, QML:*CALLER* will be used."
(unless (find-package :properties)
(load (in-home "gui/properties")))
(when (stringp item)
(setf item (qml:find-quick-item item)))
(funcall (sym :show :properties)
(or item qml:*caller*)))
(or (if (stringp item)
(qml:find-quick-item item)
item)
qml:*caller*)))