mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Minor code change
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3916 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -31,20 +31,26 @@ ESEventInterface::ESEventInterface(ElementScene *scene) :
|
||||
init();
|
||||
}
|
||||
|
||||
void ESEventInterface::init() {
|
||||
foreach (QGraphicsView *qgv, m_scene->views())
|
||||
qgv->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
|
||||
/**
|
||||
* @brief ESEventInterface::init
|
||||
* Init this event interface
|
||||
*/
|
||||
void ESEventInterface::init()
|
||||
{
|
||||
m_scene->setBehavior(ElementScene::Behavior::AddPart);
|
||||
m_editor->slot_setNoDragToView();
|
||||
}
|
||||
|
||||
ESEventInterface::~ESEventInterface() {
|
||||
/**
|
||||
* @brief ESEventInterface::~ESEventInterface
|
||||
* Destructor
|
||||
*/
|
||||
ESEventInterface::~ESEventInterface()
|
||||
{
|
||||
delete m_help_horiz;
|
||||
delete m_help_verti;
|
||||
|
||||
foreach (QGraphicsView *qgv, m_scene->views())
|
||||
qgv->setContextMenuPolicy(Qt::DefaultContextMenu);
|
||||
|
||||
m_scene->setBehavior(ElementScene::Behavior::Normal);
|
||||
m_editor->slot_setRubberBandToView();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user