529{
530 Q_UNUSED(index);
531 if ( treenode * handlerclass = confaccessor::gethandler()->getnode (
obj.class_name() ) )
532 {
533 if (
obj.class_name() == this_class_name.toStdString()
534 or config::api::info::onclass::derived (
535 this_class_name.toStdString(),
obj.class_name() ) )
536 {
537
539 handlerclass, QString::fromStdString (
obj.UID() ) );
540
541 if ( handlernode == nullptr )
542 {
543 handlernode = new ObjectNode ( obj, false, handlerclass );
544 }
545
546 emit layoutAboutToBeChanged();
547
548
549
551 auto sit = this_structure.begin();
552 auto it = this_objects.begin();
553
554 for ( ;
555 it != this_objects.end() and sit != this_structure.end()
556 and it->UID() < handlerobj.UID(); ++it, ++sit )
557 {}
558
559 this_structure.insert ( ++sit, createrow ( handlernode ) );
560
561 this_objects.insert ( ++it, handlerobj );
562
563
564
565
566 emit layoutChanged();
567 }
568 }
569}
static treenode * findchild(treenode *top, QString const &name)
virtual tref GetObject() const
inner::configobject::tref tref