29 lines
676 B
C
29 lines
676 B
C
|
|
/**
|
|||
|
|
*\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(QObject *parent = 0);
|
|||
|
|
virtual ~SubMovingSelector();
|
|||
|
|
public:
|
|||
|
|
void mousePressEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|||
|
|
void mouseMoveEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|||
|
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|||
|
|
private:
|
|||
|
|
GraphicsBaseItem* m_pParentItem;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif
|