Files
Sourcetrail/src/lib_gui/qt/view/graphElements/QtGraphNodeBundle.h
T
Eberhard Graether 5f56a167d1 ui: Fixed group related issues in graph
* fixed aggregation layout within group
* fixed moving of group did not resize view
* fixed edges behind group could not be hovered
* fixed overlapping lines in sublayout
* fixed use of correct column width in sublayout
2018-04-11 14:11:53 +02:00

35 lines
752 B
C++

#ifndef QT_GRAPH_NODE_BUNDLE_H
#define QT_GRAPH_NODE_BUNDLE_H
#include "data/graph/Node.h"
#include "qt/view/graphElements/QtGraphNode.h"
class QtCountCircleItem;
class QtGraphNodeBundle
: public QtGraphNode
{
Q_OBJECT
public:
QtGraphNodeBundle(Id tokenId, size_t nodeCount, NodeType type, std::wstring name);
virtual ~QtGraphNodeBundle();
// QtGraphNode implementation
virtual bool isBundleNode() const;
virtual Id getTokenId() const;
virtual void onClick();
virtual void updateStyle();
protected:
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event);
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event);
private:
QtCountCircleItem* m_circle;
Id m_tokenId;
NodeType m_type;
};
#endif // QT_GRAPH_NODE_BUNDLE_H