ui: graphView

Added basic graph view with simple nodes (just text, no edges or anything...)

fortune cookie message = Don't be afraid to take that big step.
This commit is contained in:
Manuel Dobusch
2014-07-02 16:14:56 +02:00
parent 5251e3ecb6
commit a8e32af5dd
16 changed files with 220 additions and 2 deletions
@@ -0,0 +1,22 @@
#ifndef QT_GRAPH_NODE_H
#define QT_GRAPH_NODE_H
#include "qgraphicsitem.h"
#include "utility/math/Vector2.h"
#include "component/view/graphElements/GraphNode.h"
class QtGraphNode:
public GraphNode,
public QGraphicsRectItem
{
public:
QtGraphNode(const Vec2i& position, const std::string& name);
virtual ~QtGraphNode();
private:
QGraphicsTextItem* m_text;
};
#endif // QT_GRAPH_NODE_H