mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Element editor : hover a primitve will highlight it with a blue halo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3694 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -29,7 +29,8 @@
|
||||
ESEventAddTerminal::ESEventAddTerminal(ElementScene *scene) :
|
||||
ESEventInterface(scene)
|
||||
{
|
||||
m_terminal = new PartTerminal(m_editor, 0, m_scene);
|
||||
m_terminal = new PartTerminal(m_editor);
|
||||
m_scene -> addItem(m_terminal);
|
||||
m_running = true;
|
||||
}
|
||||
|
||||
@@ -63,7 +64,8 @@ bool ESEventAddTerminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
|
||||
|
||||
//Set new terminal with same rotation
|
||||
Qet::Orientation ori = m_terminal -> orientation();
|
||||
m_terminal = new PartTerminal(m_editor, 0, m_scene);
|
||||
m_terminal = new PartTerminal(m_editor);
|
||||
m_scene -> addItem(m_terminal);
|
||||
m_terminal -> setOrientation(ori);
|
||||
m_terminal -> setPos(m_scene -> snapToGrid(event -> scenePos()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user