Commit 8c6f0eac authored by Caio Tonetti's avatar Caio Tonetti
Browse files

Change the default edges to something more verbose to the user

parent 6d9e0dec
......@@ -127,8 +127,17 @@ GraphDocumentPtr GraphDocument::create()
GraphDocumentPtr pi(new GraphDocument);
pi->setQpointer(pi);
// create default type
EdgeType::create(pi)->setName(i18n("default"));
// create default edge bidirectional
EdgeTypePtr edgeTypeBidirectional = EdgeType::create(pi);
edgeTypeBidirectional->setName(i18n("bidirectional"));
edgeTypeBidirectional->setDirection(EdgeType::Direction::Bidirectional);
// create default edge unidirectional
EdgeTypePtr edgeTypeUnidirectional = EdgeType::create(pi);
edgeTypeUnidirectional->setName(i18n("unidirectional"));
edgeTypeUnidirectional->setDirection(EdgeType::Direction::Unidirectional);
// create default node type
NodeType::create(pi)->setName(i18n("default"));
pi->d->m_valid = true;
pi->d->m_modified = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment