##// 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_QMouseEvent.cpp
69 lines | 2.2 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QMouseEvent.h"
#include <QVariant>
#include <qevent.h>
#include <qpoint.h>
QMouseEvent* PythonQtWrapper_QMouseEvent::new_QMouseEvent(QEvent::Type type, const QPoint& pos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
{
return new QMouseEvent(type, pos, button, buttons, modifiers); }
QMouseEvent* PythonQtWrapper_QMouseEvent::new_QMouseEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
{
return new QMouseEvent(type, pos, globalPos, button, buttons, modifiers); }
Qt::MouseButton PythonQtWrapper_QMouseEvent::button(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->button();
}
Qt::MouseButtons PythonQtWrapper_QMouseEvent::buttons(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->buttons();
}
QMouseEvent* PythonQtWrapper_QMouseEvent::static_QMouseEvent_createExtendedMouseEvent(QEvent::Type type, const QPointF& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
{
return QMouseEvent::createExtendedMouseEvent(type, pos, globalPos, button, buttons, modifiers);
}
const QPoint& PythonQtWrapper_QMouseEvent::globalPos(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->globalPos();
}
int PythonQtWrapper_QMouseEvent::globalX(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->globalX();
}
int PythonQtWrapper_QMouseEvent::globalY(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->globalY();
}
bool PythonQtWrapper_QMouseEvent::hasExtendedInfo(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->hasExtendedInfo();
}
const QPoint& PythonQtWrapper_QMouseEvent::pos(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->pos();
}
QPointF PythonQtWrapper_QMouseEvent::posF(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->posF();
}
int PythonQtWrapper_QMouseEvent::x(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->x();
}
int PythonQtWrapper_QMouseEvent::y(QMouseEvent* theWrappedObject) const
{
return theWrappedObject->y();
}