2024-12-13 18:08:00 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*\file subMovingSelector.h
|
|
|
|
|
|
*
|
|
|
|
|
|
*\brief 实现子类图元移动的selector,与移动movingSelector作区分
|
|
|
|
|
|
*
|
|
|
|
|
|
*\author by
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef SUBMOVINGSELECTOR_H
|
|
|
|
|
|
#define SUBMOVINGSELECTOR_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "baseSelector.h"
|
|
|
|
|
|
|
|
|
|
|
|
class SubMovingSelector : public BaseSelector
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
public:
|
2025-02-06 16:36:50 +08:00
|
|
|
|
explicit SubMovingSelector(FixedPortsModel* model,QObject *parent = 0);
|
2024-12-13 18:08:00 +08:00
|
|
|
|
virtual ~SubMovingSelector();
|
|
|
|
|
|
public:
|
|
|
|
|
|
void mousePressEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
|
|
void mouseMoveEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
|
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
|
|
private:
|
|
|
|
|
|
GraphicsBaseItem* m_pParentItem;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|