* 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
38 lines
783 B
C++
38 lines
783 B
C++
#ifndef QT_GRAPH_NODE_DATA_H
|
|
#define QT_GRAPH_NODE_DATA_H
|
|
|
|
#include "qt/view/graphElements/QtGraphNode.h"
|
|
|
|
class FilePath;
|
|
|
|
class QtGraphNodeData
|
|
: public QtGraphNode
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QtGraphNodeData(const Node* data, const std::wstring& name, bool childVisible, bool hasQualifier);
|
|
virtual ~QtGraphNodeData();
|
|
|
|
const Node* getData() const;
|
|
FilePath getFilePath() const;
|
|
|
|
// QtGraphNode implementation
|
|
virtual bool isDataNode() const;
|
|
|
|
virtual Id getTokenId() const;
|
|
|
|
virtual void onClick();
|
|
virtual void updateStyle();
|
|
|
|
protected:
|
|
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event);
|
|
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event);
|
|
|
|
private:
|
|
const Node* m_data;
|
|
bool m_childVisible;
|
|
bool m_hasQualifier;
|
|
};
|
|
|
|
#endif // QT_GRAPH_NODE_DATA_H
|