compatible to g++11 / QT5

method suggested by cyril
This commit is contained in:
zeners 2016-03-29 21:22:14 +02:00
parent 5783c59463
commit aca88308ea
9 changed files with 27 additions and 11 deletions

View file

@ -87,6 +87,12 @@ Node::Node(const std::string& node_string,GraphWidget::NodeType type,GraphWidget
_auth = GraphWidget::ELASTIC_NODE_AUTH_FULL ;
}
const float Node::MASS_FACTOR = 10 ;
const float Node::FRICTION_FACTOR = 10.8f ;
const float Node::REPULSION_FACTOR = 4;
const float Node::NODE_DISTANCE = 130.0f ;
void Node::addEdge(Edge *edge)
{
edgeList << edge;