This change adds the class GraphViewStyle that holds all values for defining the style of Nodes and Edges in the Graph. The GraphViewStyleImpl interface and the QtGraphViewStyleImpl implementation are used to request Qt specific metrics, like the charwidth of used fonts. This change includes the following fixes: * aggregation number always in the middle between nodes * darker color for aggregation edge * split off QGraphicsLineItem implementations from QtGraphEdge * fixed some colors in color scheme fortune cookie message = Sorge dich nicht! Du wirst bekommen was du brauchst.
15 lines
334 B
C++
15 lines
334 B
C++
#ifndef QT_GRAPH_VIEW_STYLE_IMPL_H
|
|
#define QT_GRAPH_VIEW_STYLE_IMPL_H
|
|
|
|
#include "component/view/GraphViewStyleImpl.h"
|
|
#include "qt/view/graphElements/QtGraphNode.h"
|
|
|
|
class QtGraphViewStyleImpl
|
|
: public GraphViewStyleImpl
|
|
{
|
|
public:
|
|
virtual float getCharWidthForNodeType(Node::NodeType type);
|
|
};
|
|
|
|
#endif // QT_GRAPH_VIEW_STYLE_IMPL_H
|