Files
Sourcetrail/src/lib_gui/qt/view/graphElements/nodeComponents/QtGraphNodeComponentClickable.h
T
Andreas Stallinger 43409cd6b7 build: trial version target
builds now app and trail target, lib_gui added, istrail function
2015-12-08 17:55:12 +01:00

25 lines
655 B
C++

#ifndef QT_GRAPH_NODE_COMPONENT_CLICKABLE
#define QT_GRAPH_NODE_COMPONENT_CLICKABLE
#include "QtGraphNodeComponent.h"
#include "utility/math/Vector2.h"
class QtGraphNodeComponentClickable
: public QtGraphNodeComponent
{
public:
QtGraphNodeComponentClickable(const std::weak_ptr<QtGraphNode>& graphNode);
virtual ~QtGraphNodeComponentClickable();
virtual void nodeMousePressEvent(QGraphicsSceneMouseEvent* event);
virtual void nodeMouseMoveEvent(QGraphicsSceneMouseEvent* event);
virtual void nodeMouseReleaseEvent(QGraphicsSceneMouseEvent* event);
private:
Vec2i m_mousePos;
bool m_mouseMoved;
};
#endif // QT_GRAPH_NODE_COMPONENT_CLICKABLE