mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-28 06:40:51 +01:00
Add initial support of texts group
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5117 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -49,10 +49,9 @@ Diagram* QetGraphicsItem::diagram() const{
|
||||
*/
|
||||
void QetGraphicsItem::setPos(const QPointF &p) {
|
||||
QPointF pp = Diagram::snapToGrid(p);
|
||||
if (pp == pos() || !is_movable_) return;
|
||||
if (scene() && snap_to_grid_) {
|
||||
QGraphicsItem::setPos(pp);
|
||||
} else QGraphicsItem::setPos(pp);
|
||||
if (pp == pos() || !is_movable_)
|
||||
return;
|
||||
QGraphicsItem::setPos(pp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user