feat: add objectName to Inspect window (if present)

Closes #12314
This commit is contained in:
Lukáš Tinkl 2023-10-03 10:49:51 +02:00 committed by Lukáš Tinkl
parent 15927b0705
commit c155c9c9d0
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,7 @@ Rectangle {
color: 'transparent'
required property string name
property string objName
required property bool isVisual
property bool showNonVisual: false
property bool forceSelect: false
@ -136,6 +137,10 @@ Rectangle {
text: root.name
font.bold: true
}
Label {
text: `objectName: ${root.objName}`
visible: root.objName
}
Label {
text: `x: ${root.x}, y: ${root.y}`
}

View File

@ -76,6 +76,7 @@ Item {
const props = {
index, name, x, y,
objName: item.objectName,
width: item.width,
height: item.height,
z: item.z,