[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
b1dd0bd2d0
commit
74cdc6db61
@@ -74,7 +74,8 @@ PROPERTY_SOURCE(TechDraw::DrawView, App::DocumentObject)
|
||||
|
||||
DrawView::DrawView():
|
||||
autoPos(true),
|
||||
mouseMove(false)
|
||||
mouseMove(false),
|
||||
m_overrideKeepUpdated(false)
|
||||
{
|
||||
static const char *group = "Base";
|
||||
ADD_PROPERTY_TYPE(X, (0.0), group, (App::PropertyType)(App::Prop_Output), "X position");
|
||||
@@ -380,6 +381,7 @@ double DrawView::autoScale(double pw, double ph) const
|
||||
|
||||
bool DrawView::checkFit() const
|
||||
{
|
||||
// Base::Console().Message("DV::checkFit() - %s\n", getNameInDocument());
|
||||
auto page = findParentPage();
|
||||
return checkFit(page);
|
||||
}
|
||||
@@ -387,6 +389,7 @@ bool DrawView::checkFit() const
|
||||
//!check if View is too big for page
|
||||
bool DrawView::checkFit(TechDraw::DrawPage* p) const
|
||||
{
|
||||
// Base::Console().Message("DV::checkFit(page) - %s\n", getNameInDocument());
|
||||
bool result = true;
|
||||
double fudge = 1.1;
|
||||
|
||||
@@ -534,13 +537,14 @@ void DrawView::handleChangedPropertyType(
|
||||
bool DrawView::keepUpdated()
|
||||
{
|
||||
// Base::Console().Message("DV::keepUpdated() - %s\n", getNameInDocument());
|
||||
bool result = false;
|
||||
|
||||
if (overrideKeepUpdated()) {
|
||||
return true;
|
||||
}
|
||||
TechDraw::DrawPage *page = findParentPage();
|
||||
if(page) {
|
||||
result = page->canUpdate() || page->forceRedraw();
|
||||
return (page->canUpdate() || page->forceRedraw());
|
||||
}
|
||||
return result;
|
||||
return false;
|
||||
}
|
||||
|
||||
void DrawView::setScaleAttribute()
|
||||
|
||||
Reference in New Issue
Block a user