Graphics.
790{
791 double OffsetY = 0;
792 double OffsetX = 10;
793
796
797 if ( NodeObject )
798 {
799 for ( treenode * ChildNode : NodeObject->GetChildren() )
800 {
801 if ( ChildNode->GetData ( 0 ).toString() == QString (
RelationshipData.p_name.c_str() ) )
802 {
803 for ( treenode * ChildChildNode : ChildNode->GetChildren() )
804 {
805 ObjectNode * ChildChildNodeObject = dynamic_cast<ObjectNode *> ( ChildChildNode );
806
807 if ( ChildChildNodeObject )
808 {
809 std::string cname = ChildChildNodeObject->GetObject().class_name();
811 GraphicalObject * ObjectNodeGraphical = new GraphicalObject (
812 true, ChildChildNode->GetData ( 0 ).toString(), Dummy );
813 ObjectNodeGraphical->setParentItem ( this );
814
815 QPointF coord = ObjectNodeGraphical->mapFromParent (
boundingRect().topRight() );
816 ObjectNodeGraphical->setX ( coord.x() + OffsetX );
817 ObjectNodeGraphical->setY ( coord.y() + OffsetY );
818 OffsetY += ObjectNodeGraphical->boundingRect().height();
819 }
820 }
821
822 break;
823 }
824 }
825 }
826}
QRectF boundingRect() const
static cptr< datahandler > gethandler()
static cptr< ui::config::info > guiconfig()