Qt5 port: Sandbox module

This commit is contained in:
wmayer
2017-10-26 13:12:15 +02:00
parent e332bfa172
commit f9485efb26
7 changed files with 95 additions and 32 deletions

View File

@@ -45,7 +45,9 @@
#include <Gui/View3DInventor.h>
#include <Gui/View3DInventorViewer.h>
#include <Gui/Application.h>
#ifdef HAVE_PART
#include <Mod/Part/App/PropertyGeometryList.h>
#endif
#include "Workbench.h"
@@ -64,6 +66,7 @@ public:
private:
void slotChangedObject(const App::DocumentObject& Obj, const App::Property& Prop)
{
#ifdef HAVE_PART
if (object == &Obj && Prop.getTypeId() == Part::PropertyGeometryList::getClassTypeId()) {
const Part::PropertyGeometryList& geom = static_cast<const Part::PropertyGeometryList&>(Prop);
const std::vector<Part::Geometry*>& items = geom.getValues();
@@ -180,6 +183,10 @@ private:
Base::Console().Error("%s\n", e.what());
}
}
#else
(void)Obj;
(void)Prop;
#endif
}
App::DocumentObject* object;