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

index 4b3bc04d93dacd0efefbdd5e1b8b16449a31c779..d1897f0a6c3a3f6985e0de35bbfebf8daff4b96a 100644 (file)
--- a/edge.cpp
+++ b/edge.cpp
@@ -3,6 +3,8 @@
 #include <QPainter>
 #include <QPen>
 #include <QGraphicsItem>
 #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)
 #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 1e2c8f1762c110f8fddd8570c46c8099e05427cf..01f6598f33a59ac89eed7783dd29ae01ab38eca0 100644 (file)
--- a/graph.h
+++ b/graph.h
@@ -88,12 +88,12 @@ private:
        EdgeModel *m_edgeModel;
 
        Mode m_mode;
        EdgeModel *m_edgeModel;
 
        Mode m_mode;
+       bool m_addBothEdges;
 
        int lastNode;
 
        // For adding edges
        Node *startNode;
 
        int lastNode;
 
        // For adding edges
        Node *startNode;
-       bool m_addBothEdges;
 };
 #else
 class Graph;
 };
 #else
 class Graph;