##// 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.h
36 lines | 1.4 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSHORTCUT_H
#define PYTHONQTWRAPPER_QSHORTCUT_H
#include <qshortcut.h>
#include <QObject>
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qkeysequence.h>
#include <qlist.h>
#include <qobject.h>
#include <qwidget.h>
class PythonQtWrapper_QShortcut : public QObject
{ Q_OBJECT
public:
public slots:
QShortcut* new_QShortcut(QWidget* parent);
QShortcut* new_QShortcut(const QKeySequence& key, QWidget* parent, const char* member = 0, const char* ambiguousMember = 0, Qt::ShortcutContext context = Qt::WindowShortcut);
void delete_QShortcut(QShortcut* obj) { delete obj; }
bool autoRepeat(QShortcut* theWrappedObject) const;
Qt::ShortcutContext context(QShortcut* theWrappedObject);
int id(QShortcut* theWrappedObject) const;
bool isEnabled(QShortcut* theWrappedObject) const;
QKeySequence key(QShortcut* theWrappedObject) const;
QWidget* parentWidget(QShortcut* theWrappedObject) const;
void setAutoRepeat(QShortcut* theWrappedObject, bool on);
void setContext(QShortcut* theWrappedObject, Qt::ShortcutContext context);
void setEnabled(QShortcut* theWrappedObject, bool enable);
void setKey(QShortcut* theWrappedObject, const QKeySequence& key);
void setWhatsThis(QShortcut* theWrappedObject, const QString& text);
QString whatsThis(QShortcut* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QSHORTCUT_H