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