31 lines
653 B
C++
31 lines
653 B
C++
/**
|
|
*\file movingSelector.h
|
|
*
|
|
*\brief 用来实现图元移动的selector
|
|
*
|
|
*\author dsc
|
|
*/
|
|
|
|
#ifndef MOVINGSELECTOR_H
|
|
#define MOVINGSELECTOR_H
|
|
|
|
#include "baseSelector.h"
|
|
|
|
class MovingSelector : public BaseSelector
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MovingSelector(FixedPortsModel* model,QObject *parent = 0);
|
|
virtual ~MovingSelector();
|
|
|
|
void updateConnectLine(QList<QGraphicsItem *>);
|
|
public:
|
|
void mousePressEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
void mouseMoveEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
};
|
|
|
|
#endif
|