]> Some of my projects - graph.git/commitdiff
More MinGW fixes. master
authorAPTX <redacted>
Tue, 20 Dec 2011 13:31:30 +0000 (14:31 +0100)
committerAPTX <redacted>
Tue, 20 Dec 2011 13:31:30 +0000 (14:31 +0100)
edge.cpp
graph.h

index 4b3bc04..d1897f0 100644 (file)
--- a/edge.cpp
+++ b/edge.cpp
@@ -3,6 +3,8 @@
 #include <QPainter>
 #include <QPen>
 #include <QGraphicsItem>
+#include <cmath>
+
 #include "node.h"
 
 Edge::Edge(Node *startNode, Node *endNode, QGraphicsObject *parent) : QGraphicsObject(parent), m_startNode(startNode), m_endNode(endNode), m_weight(1)
diff --git a/graph.h b/graph.h
index 1e2c8f1..01f6598 100644 (file)
--- a/graph.h
+++ b/graph.h
@@ -88,12 +88,12 @@ private:
        EdgeModel *m_edgeModel;
 
        Mode m_mode;
+       bool m_addBothEdges;
 
        int lastNode;
 
        // For adding edges
        Node *startNode;
-       bool m_addBothEdges;
 };
 #else
 class Graph;