I'm trying to create a tabbed window by reading from a ValueTree in JUCE.
I'm using the below code to set the corresponding tab's root item to a child of the tree (full code available here). However, I get the error:
"Member function 'getValueTree' not viable: 'this' argument has type 'const GlobalValueTree', but function is not marked const".
I am using an object as the tree returned by getValueTree()
or the function itself are non-static.
AccelerometerPage (const DataSelectorWindow& w)
{
tree.setRootItem (rootItem = new const OscValueTreeItem
(w.valueTree.getValueTree()->getChildWithName ("AccData")));
}
Can somebody point me in the right direction as to why this is incorrect and how to go about fixing it?