#include "graphicsItem/itemControlHandle.h" #include ItemControlHandle::ItemControlHandle(QGraphicsItem *parent) : QGraphicsItem(parent) ,_parent(nullptr) { m_type = T_resize; m_tag = H_none; m_enable = true; m_ifShow = true; } ItemControlHandle::~ItemControlHandle() { } void ItemControlHandle::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { Q_UNUSED(option) Q_UNUSED(widget) } void ItemControlHandle::hoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverEnterEvent(event); } void ItemControlHandle::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverLeaveEvent(event); } int ItemControlHandle::getSize() { int nSize = HNDLE_SIZE; return nSize; } void ItemControlHandle::move(double x, double y) { setPos(x, y); } void ItemControlHandle::setText(QString s) { } QString ItemControlHandle::getText() const { return QString(); }