##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r96:3170eb771a99
Show More
PythonQtWrapper_QShortcut.h
59 lines | 2.3 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSHORTCUT_H
#define PYTHONQTWRAPPER_QSHORTCUT_H
#include <qshortcut.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qkeysequence.h>
#include <qlist.h>
#include <qobject.h>
#include <qwidget.h>
class PythonQtShell_QShortcut : public QShortcut
{
public:
PythonQtShell_QShortcut(QWidget* parent):QShortcut(parent),_wrapper(NULL) {};
PythonQtShell_QShortcut(const QKeySequence& key, QWidget* parent, const char* member = 0, const char* ambiguousMember = 0, Qt::ShortcutContext context = Qt::WindowShortcut):QShortcut(key, parent, member, ambiguousMember, context),_wrapper(NULL) {};
virtual void childEvent(QChildEvent* arg__1);
virtual void customEvent(QEvent* arg__1);
virtual bool event(QEvent* e);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual void timerEvent(QTimerEvent* arg__1);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QShortcut : public QShortcut
{ public:
inline bool promoted_event(QEvent* e) { return QShortcut::event(e); }
};
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);
bool event(QShortcut* theWrappedObject, QEvent* e);
QKeySequence key(QShortcut* theWrappedObject) const;
void setAutoRepeat(QShortcut* theWrappedObject, bool on);
void setKey(QShortcut* theWrappedObject, const QKeySequence& key);
int id(QShortcut* theWrappedObject) const;
QString whatsThis(QShortcut* theWrappedObject) const;
bool isEnabled(QShortcut* theWrappedObject) const;
QWidget* parentWidget(QShortcut* theWrappedObject) const;
void setContext(QShortcut* theWrappedObject, Qt::ShortcutContext context);
void setEnabled(QShortcut* theWrappedObject, bool enable);
void setWhatsThis(QShortcut* theWrappedObject, const QString& text);
};
#endif // PYTHONQTWRAPPER_QSHORTCUT_H