mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40: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:
@@ -57,8 +57,10 @@ bool ESEventAddLine::mousePressEvent(QGraphicsSceneMouseEvent *event) {
|
||||
|
||||
//Create new line
|
||||
if (!m_line) {
|
||||
m_line = new PartLine(m_editor, 0, m_scene);
|
||||
m_line -> setLine(QLineF(pos, pos));
|
||||
m_line = new PartLine(m_editor);
|
||||
m_scene -> addItem(m_line);
|
||||
m_line -> setP1(pos);
|
||||
m_line -> setP2(pos);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user