fix reported bugs
- compile on windows - fix cursors
This commit is contained in:
@@ -825,13 +825,13 @@ class Snapper:
|
||||
if self.selectMode:
|
||||
mw = FreeCADGui.getMainWindow()
|
||||
for w in mw.findChild(QtGui.QMdiArea).findChildren(QtGui.QWidget):
|
||||
if w.metaObject().className() == "SoQtGLArea":
|
||||
if w.metaObject().className() == "SIM::Coin3D::Quarter::QuarterWidget":
|
||||
w.unsetCursor()
|
||||
self.cursorMode = None
|
||||
elif not mode:
|
||||
mw = FreeCADGui.getMainWindow()
|
||||
for w in mw.findChild(QtGui.QMdiArea).findChildren(QtGui.QWidget):
|
||||
if w.metaObject().className() == "SoQtGLArea":
|
||||
if w.metaObject().className() == "SIM::Coin3D::Quarter::QuarterWidget":
|
||||
w.unsetCursor()
|
||||
self.cursorMode = None
|
||||
else:
|
||||
@@ -849,7 +849,7 @@ class Snapper:
|
||||
cur = QtGui.QCursor(newicon,8,8)
|
||||
mw = FreeCADGui.getMainWindow()
|
||||
for w in mw.findChild(QtGui.QMdiArea).findChildren(QtGui.QWidget):
|
||||
if w.metaObject().className() == "SoQtGLArea":
|
||||
if w.metaObject().className() == "SIM::Coin3D::Quarter::QuarterWidget":
|
||||
w.setCursor(cur)
|
||||
self.cursorMode = mode
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
# include <algorithm>
|
||||
# include <QMenu>
|
||||
# include <QTimer>
|
||||
# include <Inventor/SbLine.h>
|
||||
# include <Inventor/SbPlane.h>
|
||||
# include <Inventor/SoPickedPoint.h>
|
||||
# include <Inventor/details/SoFaceDetail.h>
|
||||
# include <Inventor/details/SoPointDetail.h>
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
#endif
|
||||
|
||||
#elif defined(FC_OS_WIN32)
|
||||
#define NOMINMAX
|
||||
#include <windows.h>
|
||||
#endif //_PreComp_
|
||||
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#ifndef _PreComp_
|
||||
# include <QMenu>
|
||||
# include <Inventor/SbBox2s.h>
|
||||
# include <Inventor/SbLine.h>
|
||||
# include <Inventor/SbPlane.h>
|
||||
# include <Inventor/SoPickedPoint.h>
|
||||
# include <Inventor/actions/SoToVRML2Action.h>
|
||||
# include <Inventor/VRMLnodes/SoVRMLGroup.h>
|
||||
|
||||
Reference in New Issue
Block a user