DiagramDesigner/diagramCavas/include/util/subMovingSelector.h

29 lines
699 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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