##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
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();
}