// C++ interface wrapper code.
//
// Generated by SIP 3.7 (build 102) on Fri Jul 25 00:26:03 2003
//
// Copyright (c) 2003
// 	Riverbank Computing Limited <info@riverbankcomputing.co.uk>
// 
// This file is part of PyQt.
// 
// This copy of PyQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
// 
// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
// details.
// 
// You should have received a copy of the GNU General Public License along with
// PyQt; see the file LICENSE.  If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#include "sipqtcanvasDeclqtcanvas.h"
#include "sipqtcanvasQCanvasLine.h"


PyObject *sipClass_QCanvasLine;

static void sipDealloc_QCanvasLine(sipThisType *);

static PyTypeObject sipType_QCanvasLine = {
	PyObject_HEAD_INIT(&PyType_Type)
	0,
	sipWrapperTypeName,
	sizeof (sipThisType),
	0,
	(destructor)sipDealloc_QCanvasLine,
	0,
	0,
	0,
	0,
	0,
	0,
	0,
	0,
	0,
	0,
	0,
	0,
	0,
	0,
	Py_TPFLAGS_DEFAULT,
};

sipQCanvasLine::sipQCanvasLine(QCanvas * a0) : QCanvasLine(a0), sipPyThis(0)
{
	sipCommonCtor(sipPyMethods,19);
}

sipQCanvasLine::sipQCanvasLine(const QCanvasLine& a0) : QCanvasLine(a0), sipPyThis(0)
{
	sipCommonCtor(sipPyMethods,19);
}

sipQCanvasLine::~sipQCanvasLine()
{
	sipCommonDtor(sipPyThis);
}

QRect sipQCanvasLine::boundingRectAdvanced() const
{
	return sipIsPyMethod((sipMethodCache *)&sipPyMethods[0],sipPyThis,NULL,sipName_boundingRectAdvanced) ?
		sipQCanvasItem::sipVH_boundingRectAdvanced(&sipPyMethods[0],sipPyThis) :
		QCanvasItem::boundingRectAdvanced();
}

QRect sipQCanvasLine::boundingRect() const
{
	return sipIsPyMethod((sipMethodCache *)&sipPyMethods[1],sipPyThis,NULL,sipName_boundingRect) ?
		sipQCanvasItem::sipVH_boundingRect(&sipPyMethods[1],sipPyThis) :
		QCanvasPolygonalItem::boundingRect();
}

int sipQCanvasLine::rtti() const
{
	return sipIsPyMethod((sipMethodCache *)&sipPyMethods[2],sipPyThis,NULL,sipName_rtti) ?
		sipQCanvasItem::sipVH_rtti(&sipPyMethods[2],sipPyThis) :
		QCanvasLine::rtti();
}

void sipQCanvasLine::setActive(bool a0)
{
	if (sipIsPyMethod(&sipPyMethods[3],sipPyThis,NULL,sipName_setActive))
		sipQCanvasItem::sipVH_setActive(&sipPyMethods[3],sipPyThis,a0);
	else
		QCanvasItem::setActive(a0);
}

void sipQCanvasLine::setEnabled(bool a0)
{
	if (sipIsPyMethod(&sipPyMethods[4],sipPyThis,NULL,sipName_setEnabled))
		sipQCanvasItem::sipVH_setEnabled(&sipPyMethods[4],sipPyThis,a0);
	else
		QCanvasItem::setEnabled(a0);
}

void sipQCanvasLine::setSelected(bool a0)
{
	if (sipIsPyMethod(&sipPyMethods[5],sipPyThis,NULL,sipName_setSelected))
		sipQCanvasItem::sipVH_setSelected(&sipPyMethods[5],sipPyThis,a0);
	else
		QCanvasItem::setSelected(a0);
}

void sipQCanvasLine::setVisible(bool a0)
{
	if (sipIsPyMethod(&sipPyMethods[6],sipPyThis,NULL,sipName_setVisible))
		sipQCanvasItem::sipVH_setVisible(&sipPyMethods[6],sipPyThis,a0);
	else
		QCanvasItem::setVisible(a0);
}

void sipQCanvasLine::draw(QPainter& a0)
{
	if (sipIsPyMethod(&sipPyMethods[7],sipPyThis,NULL,sipName_draw))
		sipQCanvasItem::sipVH_draw(&sipPyMethods[7],sipPyThis,a0);
	else
		QCanvasPolygonalItem::draw(a0);
}

void sipQCanvasLine::setCanvas(QCanvas * a0)
{
	if (sipIsPyMethod(&sipPyMethods[8],sipPyThis,NULL,sipName_setCanvas))
		sipQCanvasItem::sipVH_setCanvas(&sipPyMethods[8],sipPyThis,a0);
	else
		QCanvasItem::setCanvas(a0);
}

bool sipQCanvasLine::collidesWith(const QCanvasItem * a0) const
{
	return sipIsPyMethod((sipMethodCache *)&sipPyMethods[9],sipPyThis,NULL,sipName_collidesWith) ?
		sipQCanvasItem::sipVH_collidesWith(&sipPyMethods[9],sipPyThis,a0) :
		QCanvasPolygonalItem::collidesWith(a0);
}

void sipQCanvasLine::advance(int a0)
{
	if (sipIsPyMethod(&sipPyMethods[10],sipPyThis,NULL,sipName_advance))
		sipQCanvasItem::sipVH_advance(&sipPyMethods[10],sipPyThis,a0);
	else
		QCanvasItem::advance(a0);
}

void sipQCanvasLine::setVelocity(double a0,double a1)
{
	if (sipIsPyMethod(&sipPyMethods[11],sipPyThis,NULL,sipName_setVelocity))
		sipQCanvasItem::sipVH_setVelocity(&sipPyMethods[11],sipPyThis,a0,a1);
	else
		QCanvasItem::setVelocity(a0,a1);
}

void sipQCanvasLine::setAnimated(bool a0)
{
	if (sipIsPyMethod(&sipPyMethods[12],sipPyThis,NULL,sipName_setAnimated))
		sipQCanvasItem::sipVH_setAnimated(&sipPyMethods[12],sipPyThis,a0);
	else
		QCanvasItem::setAnimated(a0);
}

void sipQCanvasLine::moveBy(double a0,double a1)
{
	if (sipIsPyMethod(&sipPyMethods[13],sipPyThis,NULL,sipName_moveBy))
		sipQCanvasItem::sipVH_moveBy(&sipPyMethods[13],sipPyThis,a0,a1);
	else
		QCanvasItem::moveBy(a0,a1);
}

void sipQCanvasLine::drawShape(QPainter& a0)
{
	if (sipIsPyMethod(&sipPyMethods[14],sipPyThis,NULL,sipName_drawShape))
		sipQCanvasPolygonalItem::sipVH_drawShape(&sipPyMethods[14],sipPyThis,a0);
	else
		QCanvasLine::drawShape(a0);
}

QPointArray sipQCanvasLine::areaPointsAdvanced() const
{
	return sipIsPyMethod((sipMethodCache *)&sipPyMethods[15],sipPyThis,NULL,sipName_areaPointsAdvanced) ?
		sipQCanvasPolygonalItem::sipVH_areaPointsAdvanced(&sipPyMethods[15],sipPyThis) :
		QCanvasPolygonalItem::areaPointsAdvanced();
}

QPointArray sipQCanvasLine::areaPoints() const
{
	return sipIsPyMethod((sipMethodCache *)&sipPyMethods[16],sipPyThis,NULL,sipName_areaPoints) ?
		sipQCanvasPolygonalItem::sipVH_areaPoints(&sipPyMethods[16],sipPyThis) :
		QCanvasLine::areaPoints();
}

void sipQCanvasLine::setBrush(QBrush a0)
{
	if (sipIsPyMethod(&sipPyMethods[17],sipPyThis,NULL,sipName_setBrush))
		sipQCanvasPolygonalItem::sipVH_setBrush(&sipPyMethods[17],sipPyThis,a0);
	else
		QCanvasPolygonalItem::setBrush(a0);
}

void sipQCanvasLine::setPen(QPen a0)
{
	if (sipIsPyMethod(&sipPyMethods[18],sipPyThis,NULL,sipName_setPen))
		sipQCanvasPolygonalItem::sipVH_setPen(&sipPyMethods[18],sipPyThis,a0);
	else
		QCanvasLine::setPen(a0);
}

void sipQCanvasLine::sipProtect_update()
{
	QCanvasItem::update();
}

void sipQCanvasLine::sipProtect_draw(QPainter& a0)
{
	QCanvasPolygonalItem::draw(a0);
}

bool sipQCanvasLine::sipProtect_winding()
{
	return QCanvasPolygonalItem::winding();
}

void sipQCanvasLine::sipProtect_setWinding(bool a0)
{
	QCanvasPolygonalItem::setWinding(a0);
}

void sipQCanvasLine::sipProtect_invalidate()
{
	QCanvasPolygonalItem::invalidate();
}

bool sipQCanvasLine::sipProtect_isValid()
{
	return QCanvasPolygonalItem::isValid();
}

void sipQCanvasLine::sipProtect_drawShape(QPainter& a0)
{
	QCanvasLine::drawShape(a0);
}

QPointArray sipQCanvasLine::sipProtect_areaPoints()
{
	return QCanvasLine::areaPoints();
}

static PyObject *sipDo_QCanvasLine_update(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		sipQCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"p",sipThisObj,sipClass_QCanvasLine,&sipCpp))
		{
			Py_BEGIN_ALLOW_THREADS
			sipCpp -> sipProtect_update();
			Py_END_ALLOW_THREADS

			Py_INCREF(Py_None);
			return Py_None;
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_update);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_draw(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		QPainter * a0;
		sipQCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",sipThisObj,sipClass_QCanvasLine,&sipCpp,sipClass_QPainter,&a0))
		{
			Py_BEGIN_ALLOW_THREADS
			sipCpp -> sipProtect_draw(*a0);
			Py_END_ALLOW_THREADS

			Py_INCREF(Py_None);
			return Py_None;
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_draw);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_winding(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		sipQCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"p",sipThisObj,sipClass_QCanvasLine,&sipCpp))
		{
			bool res;

			Py_BEGIN_ALLOW_THREADS
			res = sipCpp -> sipProtect_winding();
			Py_END_ALLOW_THREADS

			return sipConvertFromBool((int)res);
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_winding);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_setWinding(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		long a0;
		sipQCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"pl",sipThisObj,sipClass_QCanvasLine,&sipCpp,&a0))
		{
			Py_BEGIN_ALLOW_THREADS
			sipCpp -> sipProtect_setWinding((bool)a0);
			Py_END_ALLOW_THREADS

			Py_INCREF(Py_None);
			return Py_None;
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_setWinding);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_invalidate(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		sipQCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"p",sipThisObj,sipClass_QCanvasLine,&sipCpp))
		{
			Py_BEGIN_ALLOW_THREADS
			sipCpp -> sipProtect_invalidate();
			Py_END_ALLOW_THREADS

			Py_INCREF(Py_None);
			return Py_None;
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_invalidate);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_isValid(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		sipQCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"p",sipThisObj,sipClass_QCanvasLine,&sipCpp))
		{
			bool res;

			Py_BEGIN_ALLOW_THREADS
			res = sipCpp -> sipProtect_isValid();
			Py_END_ALLOW_THREADS

			return sipConvertFromBool((int)res);
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_isValid);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_setPoints(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		int a0;
		int a1;
		int a2;
		int a3;
		QCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"miiii",sipThisObj,sipClass_QCanvasLine,&sipCpp,&a0,&a1,&a2,&a3))
		{
			Py_BEGIN_ALLOW_THREADS
			sipCpp -> QCanvasLine::setPoints(a0,a1,a2,a3);
			Py_END_ALLOW_THREADS

			Py_INCREF(Py_None);
			return Py_None;
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_setPoints);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_startPoint(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		QCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"m",sipThisObj,sipClass_QCanvasLine,&sipCpp))
		{
			QPoint *res;

			Py_BEGIN_ALLOW_THREADS
			res = new QPoint(sipCpp -> QCanvasLine::startPoint());
			Py_END_ALLOW_THREADS

			return sipNewCppToSelf(res,sipClass_QPoint,SIP_SIMPLE | SIP_PY_OWNED);
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_startPoint);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_endPoint(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		QCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"m",sipThisObj,sipClass_QCanvasLine,&sipCpp))
		{
			QPoint *res;

			Py_BEGIN_ALLOW_THREADS
			res = new QPoint(sipCpp -> QCanvasLine::endPoint());
			Py_END_ALLOW_THREADS

			return sipNewCppToSelf(res,sipClass_QPoint,SIP_SIMPLE | SIP_PY_OWNED);
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_endPoint);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_rtti(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		QCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"m",sipThisObj,sipClass_QCanvasLine,&sipCpp))
		{
			int res;

			Py_BEGIN_ALLOW_THREADS
			res = sipCpp -> QCanvasLine::rtti();
			Py_END_ALLOW_THREADS

			return PyInt_FromLong((long)res);
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_rtti);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_setPen(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		QPen * a0;
		QCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"mJ1",sipThisObj,sipClass_QCanvasLine,&sipCpp,sipClass_QPen,&a0))
		{
			Py_BEGIN_ALLOW_THREADS
			sipCpp -> QCanvasLine::setPen(*a0);
			Py_END_ALLOW_THREADS

			Py_INCREF(Py_None);
			return Py_None;
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_setPen);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_drawShape(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		QPainter * a0;
		sipQCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",sipThisObj,sipClass_QCanvasLine,&sipCpp,sipClass_QPainter,&a0))
		{
			Py_BEGIN_ALLOW_THREADS
			sipCpp -> sipProtect_drawShape(*a0);
			Py_END_ALLOW_THREADS

			Py_INCREF(Py_None);
			return Py_None;
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_drawShape);

	return NULL;
}

static PyObject *sipDo_QCanvasLine_areaPoints(PyObject *sipThisObj,PyObject *sipArgs)
{
	int sipArgsParsed = 0;

	{
		sipQCanvasLine *sipCpp;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"p",sipThisObj,sipClass_QCanvasLine,&sipCpp))
		{
			QPointArray *res;

			Py_BEGIN_ALLOW_THREADS
			res = new QPointArray(sipCpp -> sipProtect_areaPoints());
			Py_END_ALLOW_THREADS

			return sipNewCppToSelf(res,sipClass_QPointArray,SIP_SIMPLE | SIP_PY_OWNED);
		}
	}

	// Report an error if the arguments couldn't be parsed.

	sipNoMethod(sipArgsParsed,sipName_QCanvasLine,sipName_areaPoints);

	return NULL;
}

// Cast a pointer to a type somewhere in its superclass hierarchy.

const void *sipCast_QCanvasLine(const void *ptr,PyObject *targetClass)
{
	const void *res;

	if (targetClass == sipClass_QCanvasLine)
		return ptr;

	if ((res = sipCast_QCanvasPolygonalItem((QCanvasPolygonalItem *)(QCanvasLine *)ptr,targetClass)) != NULL)
		return res;

	return NULL;
}

static void sipDealloc_QCanvasLine(sipThisType *sipThis)
{
	if (sipThis -> u.cppPtr != NULL)
	{
		if (!sipIsSimple(sipThis))
			((sipQCanvasLine *)sipThis -> u.cppPtr) -> sipPyThis = NULL;

		if (sipIsPyOwned(sipThis))
		{
			Py_BEGIN_ALLOW_THREADS

			if (!sipIsSimple(sipThis))
				delete (sipQCanvasLine *)sipThis -> u.cppPtr;
			else
				delete (QCanvasLine *)sipThis -> u.cppPtr;

			Py_END_ALLOW_THREADS
		}
	}

	sipDeleteThis(sipThis);
}

PyObject *sipNew_QCanvasLine(PyObject *sipSelf,PyObject *sipArgs)
{
	static sipExtraType et = {
		sipCast_QCanvasLine,
		(void *)sipNewProxy_qtcanvas,
		NULL
	};

	sipThisType *sipThis = NULL;
	const void *sipNew = NULL;
	int sipFlags = SIP_PY_OWNED;
	int sipArgsParsed = 0;

	// See if there is something pending.

	sipNew = sipGetPending(&sipFlags);

	if (sipNew == NULL)
	{
		QCanvas * a0;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"J0",sipClass_QCanvas,&a0))
		{
			Py_BEGIN_ALLOW_THREADS
			sipNew = new sipQCanvasLine(a0);
			Py_END_ALLOW_THREADS

			if (a0)
				sipFlags |= SIP_XTRA_REF;
		}
	}

	if (sipNew == NULL)
	{
		QCanvasLine * a0;

		if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipClass_QCanvasLine,&a0))
		{
			Py_BEGIN_ALLOW_THREADS
			sipNew = new sipQCanvasLine(*a0);
			Py_END_ALLOW_THREADS
		}
	}

	if (sipNew == NULL)
	{
		sipNoCtor(sipArgsParsed,sipName_QCanvasLine);
		return NULL;
	}

	// Wrap the object.

	if ((sipThis = sipCreateThis(sipSelf,sipNew,&sipType_QCanvasLine,sipFlags,&et)) == NULL)
	{
		if (sipFlags & SIP_PY_OWNED)
		{
			Py_BEGIN_ALLOW_THREADS

			if (!(sipFlags & SIP_SIMPLE))
				delete (sipQCanvasLine *)sipNew;
			else
				delete (QCanvasLine *)sipNew;

			Py_END_ALLOW_THREADS
		}

		return NULL;
	}

	if (!(sipFlags & SIP_SIMPLE))
		((sipQCanvasLine *)sipNew) -> sipPyThis = sipThis;

	Py_INCREF(Py_None);
	return Py_None;
}

static PyMethodDef lazyMethods_QCanvasLine[] = {
	{sipName_areaPoints, sipDo_QCanvasLine_areaPoints, METH_VARARGS, NULL},
	{sipName_draw, sipDo_QCanvasLine_draw, METH_VARARGS, NULL},
	{sipName_drawShape, sipDo_QCanvasLine_drawShape, METH_VARARGS, NULL},
	{sipName_endPoint, sipDo_QCanvasLine_endPoint, METH_VARARGS, NULL},
	{sipName_invalidate, sipDo_QCanvasLine_invalidate, METH_VARARGS, NULL},
	{sipName_isValid, sipDo_QCanvasLine_isValid, METH_VARARGS, NULL},
	{sipName_rtti, sipDo_QCanvasLine_rtti, METH_VARARGS, NULL},
	{sipName_setPen, sipDo_QCanvasLine_setPen, METH_VARARGS, NULL},
	{sipName_setPoints, sipDo_QCanvasLine_setPoints, METH_VARARGS, NULL},
	{sipName_setWinding, sipDo_QCanvasLine_setWinding, METH_VARARGS, NULL},
	{sipName_startPoint, sipDo_QCanvasLine_startPoint, METH_VARARGS, NULL},
	{sipName_update, sipDo_QCanvasLine_update, METH_VARARGS, NULL},
	{sipName_winding, sipDo_QCanvasLine_winding, METH_VARARGS, NULL}
};

sipLazyAttrDef sipClassAttrTab_QCanvasLine = {
	0, NULL,
	sizeof (lazyMethods_QCanvasLine) / sizeof (PyMethodDef), lazyMethods_QCanvasLine,
	0, NULL
};

QCanvasLine *sipForceConvertTo_QCanvasLine(PyObject *valobj,int *iserrp)
{
	if (*iserrp || valobj == NULL)
		return NULL;

	if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_QCanvasLine))
		return (QCanvasLine *)sipConvertToCpp(valobj,sipClass_QCanvasLine,iserrp);

	sipBadClass(sipName_QCanvasLine);

	*iserrp = 1;

	return NULL;
}
