[TD]fix Py2/Qt4 errors

This commit is contained in:
wandererfan
2019-12-25 08:02:48 -05:00
committed by WandererFan
parent d9d440bb6c
commit 4a736b7731
2 changed files with 15 additions and 20 deletions

View File

@@ -153,12 +153,7 @@ void CosmeticVertexPy::setPoint(Py::Object arg)
Py::Boolean CosmeticVertexPy::getShow(void) const
{
bool show = getCosmeticVertexPtr()->visible;
if (show) {
Py_RETURN_TRUE;
} else {
Py_RETURN_FALSE;
}
// return Py::asObject();
return Py::Boolean(show);
}
void CosmeticVertexPy::setShow(Py::Boolean arg)

View File

@@ -22,21 +22,21 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <BRep_Builder.hxx>
#include <TopoDS_Compound.hxx>
# include <TopoDS_Shape.hxx>
# include <TopoDS_Edge.hxx>
# include <TopoDS.hxx>
# include <BRepAdaptor_Curve.hxx>
# include <Precision.hxx>
#include <BRep_Builder.hxx>
#include <TopoDS_Compound.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <Precision.hxx>
# include <QGraphicsScene>
# include <QGraphicsSceneMouseEvent>
# include <QPainter>
# include <QPaintDevice>
# include <QSvgGenerator>
# include <math.h>
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include <QPainter>
#include <QPaintDevice>
#include <QSvgGenerator>
#include <QVector2D>
#include <math.h>
#endif
#include <App/Application.h>