Skip to content

Commit

Permalink
Add 5.11.3 generated with enum class support
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriUfimtsev authored and mrbean-bremen committed Nov 1, 2023
1 parent dabc698 commit ebe211d
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1316,8 +1316,10 @@ void delete_QMetaProperty(QMetaProperty* obj) { delete obj; }
class PythonQtWrapper_QMetaType : public QObject
{ Q_OBJECT
public:
Q_ENUMS(TypeFlag )
Q_ENUMS(Type TypeFlag )
Q_FLAGS(TypeFlags )
enum Type{
UnknownType = QMetaType::UnknownType, Bool = QMetaType::Bool, Int = QMetaType::Int, UInt = QMetaType::UInt, LongLong = QMetaType::LongLong, ULongLong = QMetaType::ULongLong, Double = QMetaType::Double, Long = QMetaType::Long, Short = QMetaType::Short, Char = QMetaType::Char, ULong = QMetaType::ULong, UShort = QMetaType::UShort, UChar = QMetaType::UChar, Float = QMetaType::Float, VoidStar = QMetaType::VoidStar, QChar = QMetaType::QChar, QString = QMetaType::QString, QStringList = QMetaType::QStringList, QByteArray = QMetaType::QByteArray, QBitArray = QMetaType::QBitArray, QDate = QMetaType::QDate, QTime = QMetaType::QTime, QDateTime = QMetaType::QDateTime, QUrl = QMetaType::QUrl, QLocale = QMetaType::QLocale, QRect = QMetaType::QRect, QRectF = QMetaType::QRectF, QSize = QMetaType::QSize, QSizeF = QMetaType::QSizeF, QLine = QMetaType::QLine, QLineF = QMetaType::QLineF, QPoint = QMetaType::QPoint, QPointF = QMetaType::QPointF, QRegExp = QMetaType::QRegExp, QEasingCurve = QMetaType::QEasingCurve, QUuid = QMetaType::QUuid, QVariant = QMetaType::QVariant, QModelIndex = QMetaType::QModelIndex, QPersistentModelIndex = QMetaType::QPersistentModelIndex, QRegularExpression = QMetaType::QRegularExpression, QJsonValue = QMetaType::QJsonValue, QJsonObject = QMetaType::QJsonObject, QJsonArray = QMetaType::QJsonArray, QJsonDocument = QMetaType::QJsonDocument, QByteArrayList = QMetaType::QByteArrayList, QObjectStar = QMetaType::QObjectStar, SChar = QMetaType::SChar, Void = QMetaType::Void, Nullptr = QMetaType::Nullptr, QVariantMap = QMetaType::QVariantMap, QVariantList = QMetaType::QVariantList, QVariantHash = QMetaType::QVariantHash, QFont = QMetaType::QFont, QPixmap = QMetaType::QPixmap, QBrush = QMetaType::QBrush, QColor = QMetaType::QColor, QPalette = QMetaType::QPalette, QIcon = QMetaType::QIcon, QImage = QMetaType::QImage, QPolygon = QMetaType::QPolygon, QRegion = QMetaType::QRegion, QBitmap = QMetaType::QBitmap, QCursor = QMetaType::QCursor, QKeySequence = QMetaType::QKeySequence, QPen = QMetaType::QPen, QTextLength = QMetaType::QTextLength, QTextFormat = QMetaType::QTextFormat, QMatrix = QMetaType::QMatrix, QTransform = QMetaType::QTransform, QMatrix4x4 = QMetaType::QMatrix4x4, QVector2D = QMetaType::QVector2D, QVector3D = QMetaType::QVector3D, QVector4D = QMetaType::QVector4D, QQuaternion = QMetaType::QQuaternion, QPolygonF = QMetaType::QPolygonF, QSizePolicy = QMetaType::QSizePolicy, LastCoreType = QMetaType::LastCoreType, LastGuiType = QMetaType::LastGuiType, User = QMetaType::User};
enum TypeFlag{
NeedsConstruction = QMetaType::NeedsConstruction, NeedsDestruction = QMetaType::NeedsDestruction, MovableType = QMetaType::MovableType, PointerToQObject = QMetaType::PointerToQObject, IsEnumeration = QMetaType::IsEnumeration, SharedPointerToQObject = QMetaType::SharedPointerToQObject, WeakPointerToQObject = QMetaType::WeakPointerToQObject, TrackingPointerToQObject = QMetaType::TrackingPointerToQObject, WasDeclaredAsMetaType = QMetaType::WasDeclaredAsMetaType, IsGadget = QMetaType::IsGadget, PointerToGadget = QMetaType::PointerToGadget};
Q_DECLARE_FLAGS(TypeFlags, TypeFlag)
Expand Down
10 changes: 10 additions & 0 deletions generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2838,6 +2838,11 @@ void PythonQtWrapper_QThread::static_QThread_msleep(unsigned long arg__1)
(QThread::msleep(arg__1));
}

QThread::Priority PythonQtWrapper_QThread::priority(QThread* theWrappedObject) const
{
return ( theWrappedObject->priority());
}

void PythonQtWrapper_QThread::requestInterruption(QThread* theWrappedObject)
{
( theWrappedObject->requestInterruption());
Expand All @@ -2853,6 +2858,11 @@ void PythonQtWrapper_QThread::setEventDispatcher(QThread* theWrappedObject, QAbs
( theWrappedObject->setEventDispatcher(eventDispatcher));
}

void PythonQtWrapper_QThread::setPriority(QThread* theWrappedObject, QThread::Priority priority)
{
( theWrappedObject->setPriority(priority));
}

void PythonQtWrapper_QThread::setStackSize(QThread* theWrappedObject, uint stackSize)
{
( theWrappedObject->setStackSize(stackSize));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,9 @@ inline void py_q_run() { QThread::run(); }
class PythonQtWrapper_QThread : public QObject
{ Q_OBJECT
public:
Q_ENUMS(Priority )
enum Priority{
IdlePriority = QThread::IdlePriority, LowestPriority = QThread::LowestPriority, LowPriority = QThread::LowPriority, NormalPriority = QThread::NormalPriority, HighPriority = QThread::HighPriority, HighestPriority = QThread::HighestPriority, TimeCriticalPriority = QThread::TimeCriticalPriority, InheritPriority = QThread::InheritPriority};
public slots:
QThread* new_QThread(QObject* parent = nullptr);
void delete_QThread(QThread* obj) { delete obj; }
Expand All @@ -716,10 +719,12 @@ void delete_QThread(QThread* obj) { delete obj; }
bool isRunning(QThread* theWrappedObject) const;
int loopLevel(QThread* theWrappedObject) const;
void static_QThread_msleep(unsigned long arg__1);
QThread::Priority priority(QThread* theWrappedObject) const;
void requestInterruption(QThread* theWrappedObject);
void run(QThread* theWrappedObject);
void py_q_run(QThread* theWrappedObject){ (((PythonQtPublicPromoter_QThread*)theWrappedObject)->py_q_run());}
void setEventDispatcher(QThread* theWrappedObject, QAbstractEventDispatcher* eventDispatcher);
void setPriority(QThread* theWrappedObject, QThread::Priority priority);
void setStackSize(QThread* theWrappedObject, uint stackSize);
void static_QThread_setTerminationEnabled(bool enabled = true);
void static_QThread_sleep(unsigned long arg__1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4196,6 +4196,11 @@ void PythonQtWrapper_QNetworkAddressEntry::clearAddressLifetime(QNetworkAddressE
( theWrappedObject->clearAddressLifetime());
}

QNetworkAddressEntry::DnsEligibilityStatus PythonQtWrapper_QNetworkAddressEntry::dnsEligibility(QNetworkAddressEntry* theWrappedObject) const
{
return ( theWrappedObject->dnsEligibility());
}

QHostAddress PythonQtWrapper_QNetworkAddressEntry::ip(QNetworkAddressEntry* theWrappedObject) const
{
return ( theWrappedObject->ip());
Expand Down Expand Up @@ -4251,6 +4256,11 @@ void PythonQtWrapper_QNetworkAddressEntry::setBroadcast(QNetworkAddressEntry* th
( theWrappedObject->setBroadcast(newBroadcast));
}

void PythonQtWrapper_QNetworkAddressEntry::setDnsEligibility(QNetworkAddressEntry* theWrappedObject, QNetworkAddressEntry::DnsEligibilityStatus status)
{
( theWrappedObject->setDnsEligibility(status));
}

void PythonQtWrapper_QNetworkAddressEntry::setIp(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newIp)
{
( theWrappedObject->setIp(newIp));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -887,12 +887,16 @@ void delete_QNetworkAccessManager(QNetworkAccessManager* obj) { delete obj; }
class PythonQtWrapper_QNetworkAddressEntry : public QObject
{ Q_OBJECT
public:
Q_ENUMS(DnsEligibilityStatus )
enum DnsEligibilityStatus{
DnsEligibilityUnknown = QNetworkAddressEntry::DnsEligibilityUnknown, DnsIneligible = QNetworkAddressEntry::DnsIneligible, DnsEligible = QNetworkAddressEntry::DnsEligible};
public slots:
QNetworkAddressEntry* new_QNetworkAddressEntry();
QNetworkAddressEntry* new_QNetworkAddressEntry(const QNetworkAddressEntry& other);
void delete_QNetworkAddressEntry(QNetworkAddressEntry* obj) { delete obj; }
QHostAddress broadcast(QNetworkAddressEntry* theWrappedObject) const;
void clearAddressLifetime(QNetworkAddressEntry* theWrappedObject);
QNetworkAddressEntry::DnsEligibilityStatus dnsEligibility(QNetworkAddressEntry* theWrappedObject) const;
QHostAddress ip(QNetworkAddressEntry* theWrappedObject) const;
bool isLifetimeKnown(QNetworkAddressEntry* theWrappedObject) const;
bool isPermanent(QNetworkAddressEntry* theWrappedObject) const;
Expand All @@ -904,6 +908,7 @@ void delete_QNetworkAddressEntry(QNetworkAddressEntry* obj) { delete obj; }
int prefixLength(QNetworkAddressEntry* theWrappedObject) const;
void setAddressLifetime(QNetworkAddressEntry* theWrappedObject, QDeadlineTimer preferred, QDeadlineTimer validity);
void setBroadcast(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newBroadcast);
void setDnsEligibility(QNetworkAddressEntry* theWrappedObject, QNetworkAddressEntry::DnsEligibilityStatus status);
void setIp(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newIp);
void setNetmask(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newNetmask);
void setPrefixLength(QNetworkAddressEntry* theWrappedObject, int length);
Expand Down

0 comments on commit ebe211d

Please sign in to comment.