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