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
728 B

import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
import QtQuick.Layouts 1.1
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
anchors.leftMargin: 10
StructView
{
id: typeLoader
members: []
value: {}
context: "variable"
width: 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;
}
}