You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
681 B
40 lines
681 B
10 years ago
|
import QtQuick 2.2
|
||
|
import QtQuick.Controls 1.1
|
||
|
import QtQuick.Controls.Styles 1.1
|
||
|
import QtQuick.Layouts 1.1
|
||
|
import "."
|
||
|
|
||
|
DebugInfoList
|
||
|
{
|
||
|
id: storage
|
||
|
collapsible: true
|
||
|
title : qsTr("Storage")
|
||
|
componentDelegate: structComp
|
||
|
|
||
|
Component
|
||
|
{
|
||
|
id: structComp
|
||
|
ScrollView
|
||
|
{
|
||
|
property alias members: typeLoader.members;
|
||
|
property alias value: typeLoader.value;
|
||
|
anchors.fill: parent
|
||
|
StructView
|
||
|
{
|
||
|
id: typeLoader
|
||
|
members: []
|
||
|
value: {}
|
||
|
Layout.preferredWidth: parent.width
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function setData(members, values) {
|
||
|
storage.item.value = {};
|
||
|
storage.item.members = [];
|
||
|
storage.item.value = values;
|
||
|
storage.item.members = members;
|
||
|
}
|
||
|
}
|
||
|
|