##// 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_QShortcut.cpp
78 lines | 2.0 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QShortcut.h"
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qkeysequence.h>
#include <qlist.h>
#include <qobject.h>
#include <qwidget.h>
QShortcut* PythonQtWrapper_QShortcut::new_QShortcut(QWidget* parent)
{
return new QShortcut(parent); }
QShortcut* PythonQtWrapper_QShortcut::new_QShortcut(const QKeySequence& key, QWidget* parent, const char* member, const char* ambiguousMember, Qt::ShortcutContext context)
{
return new QShortcut(key, parent, member, ambiguousMember, context); }
bool PythonQtWrapper_QShortcut::autoRepeat(QShortcut* theWrappedObject) const
{
return theWrappedObject->autoRepeat();
}
Qt::ShortcutContext PythonQtWrapper_QShortcut::context(QShortcut* theWrappedObject)
{
return theWrappedObject->context();
}
int PythonQtWrapper_QShortcut::id(QShortcut* theWrappedObject) const
{
return theWrappedObject->id();
}
bool PythonQtWrapper_QShortcut::isEnabled(QShortcut* theWrappedObject) const
{
return theWrappedObject->isEnabled();
}
QKeySequence PythonQtWrapper_QShortcut::key(QShortcut* theWrappedObject) const
{
return theWrappedObject->key();
}
QWidget* PythonQtWrapper_QShortcut::parentWidget(QShortcut* theWrappedObject) const
{
return theWrappedObject->parentWidget();
}
void PythonQtWrapper_QShortcut::setAutoRepeat(QShortcut* theWrappedObject, bool on)
{
theWrappedObject->setAutoRepeat(on);
}
void PythonQtWrapper_QShortcut::setContext(QShortcut* theWrappedObject, Qt::ShortcutContext context)
{
theWrappedObject->setContext(context);
}
void PythonQtWrapper_QShortcut::setEnabled(QShortcut* theWrappedObject, bool enable)
{
theWrappedObject->setEnabled(enable);
}
void PythonQtWrapper_QShortcut::setKey(QShortcut* theWrappedObject, const QKeySequence& key)
{
theWrappedObject->setKey(key);
}
void PythonQtWrapper_QShortcut::setWhatsThis(QShortcut* theWrappedObject, const QString& text)
{
theWrappedObject->setWhatsThis(text);
}
QString PythonQtWrapper_QShortcut::whatsThis(QShortcut* theWrappedObject) const
{
return theWrappedObject->whatsThis();
}