* [TD]allow DrawViewAnno to be attached to another view * [TD]allow image and spreadsheet attach to view * [TD]ensure correct parent in scene * [TD]refactor command helpers to separate file - gathering the helpers in one place - helper redundancy to be address in another change * [TD]create symbol, spreadsheet, image with parent * [TD]fix claimChildren for some views - also includes many lint fixes
This commit is contained in:
@@ -100,18 +100,18 @@ bool ViewProviderLeader::doubleClicked()
|
||||
return true;
|
||||
}
|
||||
|
||||
void ViewProviderLeader::onChanged(const App::Property* p)
|
||||
void ViewProviderLeader::onChanged(const App::Property* prop)
|
||||
{
|
||||
if ((p == &Color) ||
|
||||
(p == &LineWidth) ||
|
||||
(p == &LineStyle) ||
|
||||
(p == &UseOldCoords)) {
|
||||
QGIView* qgiv = getQView();
|
||||
if ((prop == &Color) ||
|
||||
(prop == &LineWidth) ||
|
||||
(prop == &LineStyle) ||
|
||||
(prop == &UseOldCoords)) {
|
||||
auto* qgiv = getQView();
|
||||
if (qgiv) {
|
||||
qgiv->updateView(true);
|
||||
}
|
||||
}
|
||||
ViewProviderDrawingView::onChanged(p);
|
||||
ViewProviderDrawingView::onChanged(prop);
|
||||
}
|
||||
|
||||
std::vector<App::DocumentObject*> ViewProviderLeader::claimChildren() const
|
||||
|
||||
Reference in New Issue
Block a user