PythonQtWrapper_QKeySequence.cpp
95 lines
| 2.7 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QKeySequence.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qkeysequence.h> | ||||
#include <qlist.h> | ||||
QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence() | ||||
{ | ||||
return new QKeySequence(); } | ||||
QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(QKeySequence::StandardKey key) | ||||
{ | ||||
return new QKeySequence(key); } | ||||
QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(const QKeySequence& ks) | ||||
{ | ||||
return new QKeySequence(ks); } | ||||
QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(const QString& key) | ||||
{ | ||||
return new QKeySequence(key); } | ||||
QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(int k1, int k2, int k3, int k4) | ||||
{ | ||||
return new QKeySequence(k1, k2, k3, k4); } | ||||
|
r28 | bool PythonQtWrapper_QKeySequence::isEmpty(QKeySequence* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isEmpty(); | ||
|
r13 | } | ||
|
r24 | QKeySequence PythonQtWrapper_QKeySequence::static_QKeySequence_mnemonic(const QString& text) | ||
|
r13 | { | ||
|
r24 | return QKeySequence::mnemonic(text); | ||
|
r13 | } | ||
|
r24 | int PythonQtWrapper_QKeySequence::operator_subscript(QKeySequence* theWrappedObject, uint i) const | ||
|
r13 | { | ||
|
r24 | return (*theWrappedObject)[i]; | ||
|
r13 | } | ||
|
r24 | bool PythonQtWrapper_QKeySequence::operator_equal(QKeySequence* theWrappedObject, const QKeySequence& other) const | ||
|
r13 | { | ||
|
r24 | return (*theWrappedObject)== other; | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QKeySequence::readFrom(QKeySequence* theWrappedObject, QDataStream& out) | ||
|
r13 | { | ||
|
r28 | out >> (*theWrappedObject); | ||
|
r13 | } | ||
|
r24 | uint PythonQtWrapper_QKeySequence::count(QKeySequence* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->count(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QKeySequence::operator_less(QKeySequence* theWrappedObject, const QKeySequence& ks) const | ||
|
r13 | { | ||
|
r28 | return (*theWrappedObject)< ks; | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QKeySequence::writeTo(QKeySequence* theWrappedObject, QDataStream& in) | ||
|
r13 | { | ||
|
r28 | in << (*theWrappedObject); | ||
|
r13 | } | ||
|
r24 | QKeySequence PythonQtWrapper_QKeySequence::static_QKeySequence_fromString(const QString& str, QKeySequence::SequenceFormat format) | ||
|
r13 | { | ||
|
r24 | return QKeySequence::fromString(str, format); | ||
|
r13 | } | ||
|
r24 | QKeySequence::SequenceMatch PythonQtWrapper_QKeySequence::matches(QKeySequence* theWrappedObject, const QKeySequence& seq) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->matches(seq); | ||
} | ||||
int PythonQtWrapper_QKeySequence::operator_cast_int(QKeySequence* theWrappedObject) const | ||||
{ | ||||
return theWrappedObject->operator int(); | ||||
} | ||||
QString PythonQtWrapper_QKeySequence::toString(QKeySequence* theWrappedObject, QKeySequence::SequenceFormat format) const | ||||
{ | ||||
return theWrappedObject->toString(format); | ||||
} | ||||
QList<QKeySequence > PythonQtWrapper_QKeySequence::static_QKeySequence_keyBindings(QKeySequence::StandardKey key) | ||||
{ | ||||
return QKeySequence::keyBindings(key); | ||||
|
r13 | } | ||