##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r15:ae998290bf19
Show More
PythonQtWrapper_QCursor.cpp
85 lines | 2.0 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QCursor.h"
#include <QPixmap>
#include <QVariant>
#include <qbitmap.h>
#include <qcursor.h>
#include <qdatastream.h>
#include <qpixmap.h>
#include <qpoint.h>
QCursor* PythonQtWrapper_QCursor::new_QCursor()
{
return new QCursor(); }
QCursor* PythonQtWrapper_QCursor::new_QCursor(Qt::CursorShape shape)
{
return new QCursor(shape); }
QCursor* PythonQtWrapper_QCursor::new_QCursor(const QBitmap& bitmap, const QBitmap& mask, int hotX, int hotY)
{
return new QCursor(bitmap, mask, hotX, hotY); }
QCursor* PythonQtWrapper_QCursor::new_QCursor(const QCursor& cursor)
{
return new QCursor(cursor); }
QCursor* PythonQtWrapper_QCursor::new_QCursor(const QPixmap& pixmap, int hotX, int hotY)
{
return new QCursor(pixmap, hotX, hotY); }
const QBitmap* PythonQtWrapper_QCursor::bitmap(QCursor* theWrappedObject) const
{
return theWrappedObject->bitmap();
}
QPoint PythonQtWrapper_QCursor::hotSpot(QCursor* theWrappedObject) const
{
return theWrappedObject->hotSpot();
}
const QBitmap* PythonQtWrapper_QCursor::mask(QCursor* theWrappedObject) const
{
return theWrappedObject->mask();
}
void PythonQtWrapper_QCursor::writeTo(QCursor* theWrappedObject, QDataStream& outS)
{
outS << *theWrappedObject;
}
void PythonQtWrapper_QCursor::readFrom(QCursor* theWrappedObject, QDataStream& inS)
{
inS >> *theWrappedObject;
}
QPixmap PythonQtWrapper_QCursor::pixmap(QCursor* theWrappedObject) const
{
return theWrappedObject->pixmap();
}
QPoint PythonQtWrapper_QCursor::static_QCursor_pos()
{
return QCursor::pos();
}
void PythonQtWrapper_QCursor::static_QCursor_setPos(const QPoint& p)
{
QCursor::setPos(p);
}
void PythonQtWrapper_QCursor::static_QCursor_setPos(int x, int y)
{
QCursor::setPos(x, y);
}
void PythonQtWrapper_QCursor::setShape(QCursor* theWrappedObject, Qt::CursorShape newShape)
{
theWrappedObject->setShape(newShape);
}
Qt::CursorShape PythonQtWrapper_QCursor::shape(QCursor* theWrappedObject) const
{
return theWrappedObject->shape();
}