[TD]fix Py2/Qt4 errors
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user