diff --git a/src/Mod/TechDraw/Gui/QGSPage.cpp b/src/Mod/TechDraw/Gui/QGSPage.cpp index 1b9b72b82a..7c17a30bc9 100644 --- a/src/Mod/TechDraw/Gui/QGSPage.cpp +++ b/src/Mod/TechDraw/Gui/QGSPage.cpp @@ -105,7 +105,6 @@ QGSPage::QGSPage(ViewProviderPage* vpPage, QWidget* parent) assert(vpPage); m_vpPage = vpPage; setItemIndexMethod(QGraphicsScene::BspTreeIndex);//the default - // setItemIndexMethod(QGraphicsScene::NoIndex); //sometimes faster } @@ -213,7 +212,6 @@ void QGSPage::attachTemplate(TechDraw::DrawTemplate* obj) void QGSPage::updateTemplate(bool forceUpdate) { - // Base::Console().Message("QGSP::updateTemplate()\n"); App::DocumentObject* templObj = m_vpPage->getDrawPage()->Template.getValue(); // TODO: what if template has been deleted? templObj will be NULL. segfault? if (!templObj) { @@ -389,7 +387,6 @@ bool QGSPage::addView(const App::DocumentObject* obj) bool QGSPage::attachView(App::DocumentObject* obj) { - // Base::Console().Message("QGSP::attachView(%s)\n", obj->getNameInDocument()); if (findQViewForDocObj(obj)) { return true; } @@ -440,7 +437,7 @@ bool QGSPage::attachView(App::DocumentObject* obj) else if (auto o = freecad_dynamic_cast(obj)) { qview = addWeldSymbol(o); } - else if (auto o = freecad_dynamic_cast(obj)) { + else if (freecad_dynamic_cast(obj)) { //Hatch is not attached like other Views (since it isn't really a View) return true; } @@ -697,7 +694,6 @@ QGIView* QGSPage::addViewLeader(TechDraw::DrawLeaderLine* leaderFeat) // TODO: can this be generalized? addViewToParent(childItem, parentItem, positionInParent)? void QGSPage::addLeaderToParent(QGILeaderLine* leader, QGIView* parent) { - // Base::Console().Message("QGSP::addLeaderToParent()\n"); assert(leader); assert(parent);//blow up if we don't have Dimension or Parent QPointF posRef(0., 0.); @@ -780,7 +776,6 @@ void QGSPage::setViewParents() //! find the graphic for a DocumentObject QGIView* QGSPage::findQViewForDocObj(App::DocumentObject* obj) const { - // Base::Console().Message("QGSP::findQViewForDocObj(%s)\n", obj->getNameInDocument()); if (obj) { const std::vector qviews = getViews(); for (std::vector::const_iterator it = qviews.begin(); it != qviews.end(); ++it) { @@ -1025,7 +1020,6 @@ bool QGSPage::orphanExists(const char* viewName, const std::vector& upviews = getViews(); for (std::vector::const_iterator it = upviews.begin(); it != upviews.end(); ++it) { (*it)->updateView(true);