get rid of most clazy warnings (https://github.com/KDE/clazy) * range loop use refs * qcolor ctor with ints * missing Q_OBJECT macro * use .constfirst instead of .first enabled ccache for unix systems for fasterr recompiling * if ccache is in path we use it now
39 lines
845 B
C++
39 lines
845 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::string& name, bool hasParent, 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 moved(const Vec2i& oldPosition);
|
|
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
|