Files
Sourcetrail/src/lib_gui/qt/graphics/component/QtGraphNodeComponentClickable.h
T
Eberhard Graether 841a87469b src: refactored UI elements and graphics file structure
* split QtIconButton into multiple files
* moved graph elements from view to graphics
* structured elements into sub directories
2019-05-29 18:31:11 +02:00

25 lines
621 B
C++

#ifndef QT_GRAPH_NODE_COMPONENT_CLICKABLE
#define QT_GRAPH_NODE_COMPONENT_CLICKABLE
#include "QtGraphNodeComponent.h"
#include "Vector2.h"
class QtGraphNodeComponentClickable
: public QtGraphNodeComponent
{
public:
QtGraphNodeComponentClickable(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