[TD]code clean ups
- QtConcurrent include and CMake for Win - include clean up dvp, dvs, dvd - variable names and nested if clean up - remove debug code
This commit is contained in:
committed by
WandererFan
parent
459dde957c
commit
e97b95341a
@@ -340,10 +340,9 @@ QGIViewClip* QGIView::getClipGroup()
|
||||
return result;
|
||||
}
|
||||
|
||||
void QGIView::updateView(bool update)
|
||||
void QGIView::updateView(bool forceUpdate)
|
||||
{
|
||||
// Base::Console().Message("QGIV::updateView() - %s\n",getViewObject()->getNameInDocument());
|
||||
(void) update;
|
||||
|
||||
//allow/prevent dragging
|
||||
if (getViewObject()->isLocked()) {
|
||||
@@ -352,6 +351,11 @@ void QGIView::updateView(bool update)
|
||||
setFlag(QGraphicsItem::ItemIsMovable, true);
|
||||
}
|
||||
|
||||
if (getViewObject() && forceUpdate) {
|
||||
setPosition(Rez::guiX(getViewObject()->X.getValue()),
|
||||
Rez::guiX(getViewObject()->Y.getValue()));
|
||||
}
|
||||
|
||||
double appRotation = getViewObject()->Rotation.getValue();
|
||||
double guiRotation = rotation();
|
||||
if (!TechDraw::DrawUtil::fpCompare(appRotation,guiRotation)) {
|
||||
|
||||
Reference in New Issue
Block a user