+ fixes #0002197: Buggy Placement dialog when using Euler angles

This commit is contained in:
wmayer
2015-09-13 15:17:44 +02:00
parent 8cee8992ab
commit 043dc1616d
8 changed files with 88 additions and 1 deletions

View File

@@ -28,6 +28,8 @@
# include <QEvent>
#endif
#include <boost/bind.hpp>
/// Here the FreeCAD includes sorted by Base,App,Gui......
#include <Base/Parameter.h>
#include <App/PropertyStandard.h>
@@ -90,10 +92,29 @@ PropertyView::PropertyView(QWidget *parent)
// connect after adding all tabs, so adding doesn't thrash the parameter
connect(tabs, SIGNAL(currentChanged(int)), this, SLOT(tabChanged(int)));
this->connectPropData =
App::GetApplication().signalChangedObject.connect(boost::bind
(&PropertyView::slotChangePropertyData, this, _1, _2));
this->connectPropView =
Gui::Application::Instance->signalChangedObject.connect(boost::bind
(&PropertyView::slotChangePropertyView, this, _1, _2));
}
PropertyView::~PropertyView()
{
this->connectPropData.disconnect();
this->connectPropView.disconnect();
}
void PropertyView::slotChangePropertyData(const App::DocumentObject&, const App::Property& prop)
{
propertyEditorData->updateProperty(prop);
}
void PropertyView::slotChangePropertyView(const Gui::ViewProvider&, const App::Property& prop)
{
propertyEditorView->updateProperty(prop);
}
struct PropertyView::PropInfo