2 #include <LocalTree/BaseProperty.hpp>
4 #include <score/model/ModelMetadata.hpp>
6 #include <ossia/network/base/node.hpp>
17 ossia::net::node_base& node;
22 : metadata{arg_metadata}
23 , node{*parent.create_child(arg_metadata.getName().toStdString())}
39 auto setNameFun = [
this](
const QString& newName_qstring) {
40 const auto newName = newName_qstring.toStdString();
41 const auto curName = node.get_name();
43 if(curName != newName)
45 node.set_name(newName);
46 auto real_newName = node.get_name();
47 if(real_newName != newName)
49 const auto& x = QString::fromStdString(real_newName);
50 qDebug() <<
"ERROR (real_newName/newName)" << x << newName_qstring;
56 QObject::connect(&metadata, &score::ModelMetadata::NameChanged, context, setNameFun);
58 setNameFun(metadata.getName());
63 auto par = node.get_parent();
65 par->remove_child(node);
Local tree provides a way to extend the tree given through the Engine::Network::LocalDevice.
Definition: BaseCallbackWrapper.hpp:9