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