Allow manual repositioning of ProjGroup views
This commit is contained in:
committed by
Yorik van Havre
parent
a79d672bbd
commit
68c3f460d7
@@ -129,8 +129,8 @@ void DrawView::onChanged(const App::Property* prop)
|
||||
}
|
||||
} else if (prop == &X ||
|
||||
prop == &Y) {
|
||||
if (isMouseMove()) {
|
||||
setAutoPos(false); //should only be for manual changes? not programmatic changes?
|
||||
if (isMouseMove()) { //actually "has mouse moved this item?"
|
||||
setAutoPos(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -226,6 +226,14 @@ bool DrawView::checkFit(TechDraw::DrawPage* p) const
|
||||
return result;
|
||||
}
|
||||
|
||||
void DrawView::setPosition(double x, double y)
|
||||
{
|
||||
//recompute.lock()
|
||||
X.setValue(x);
|
||||
Y.setValue(y);
|
||||
//recompute.unlock()
|
||||
}
|
||||
|
||||
PyObject *DrawView::getPyObject(void)
|
||||
{
|
||||
if (PythonObject.is(Py::_None())) {
|
||||
|
||||
Reference in New Issue
Block a user