small revision of property dialog for QML

This commit is contained in:
polos 2017-02-14 12:35:51 +01:00
parent 1281b68a8b
commit c90c74c931
4 changed files with 12 additions and 0 deletions

View file

@ -4,8 +4,11 @@
(find-symbol (symbol-name name) package))
(defun show-properties-dialog (&optional item)
"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*)
t)) ; all instance properties (for QML)