mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-22 09:39:59 +01:00
Improve signal of position changed, between linked elements
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3394 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -29,8 +29,7 @@ QetGraphicsItem::QetGraphicsItem(QGraphicsItem *parent):
|
||||
is_movable_(true),
|
||||
first_move_(true),
|
||||
snap_to_grid_(true)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
QetGraphicsItem::~QetGraphicsItem()
|
||||
{}
|
||||
@@ -53,7 +52,6 @@ void QetGraphicsItem::setPos(const QPointF &p) {
|
||||
if (pp == pos() || !is_movable_) return;
|
||||
if (scene() && snap_to_grid_) {
|
||||
QGraphicsItem::setPos(pp);
|
||||
emit positionChange(pos());
|
||||
} else QGraphicsItem::setPos(pp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user