Allow View Position to be Locked
- prevents accidently moving View A from desired position while grabbing/dragging View B.
This commit is contained in:
committed by
Yorik van Havre
parent
b6296395e2
commit
1e7aa621f1
@@ -257,6 +257,11 @@ double QGIView::getYInClip(double y)
|
||||
|
||||
void QGIView::updateView(bool update)
|
||||
{
|
||||
if (getViewObject()->LockPosition.getValue()) {
|
||||
setFlag(QGraphicsItem::ItemIsMovable, false);
|
||||
} else {
|
||||
setFlag(QGraphicsItem::ItemIsMovable, true);
|
||||
}
|
||||
if (update ||
|
||||
getViewObject()->X.isTouched() ||
|
||||
getViewObject()->Y.isTouched()) {
|
||||
|
||||
Reference in New Issue
Block a user