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.
 
 
 
 
 

39 lines
712 B

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; //TODO: use a signal for this?
storage.item.members = members;
}
}