From ebe211da58091639ab1bc2cc9803365a4a19cdae Mon Sep 17 00:00:00 2001 From: YuriUfimtsev Date: Tue, 31 Oct 2023 23:06:17 +0300 Subject: [PATCH] Add 5.11.3 generated with enum class support --- .../com_trolltech_qt_core/com_trolltech_qt_core1.h | 4 +++- .../com_trolltech_qt_core/com_trolltech_qt_core3.cpp | 10 ++++++++++ .../com_trolltech_qt_core/com_trolltech_qt_core3.h | 5 +++++ .../com_trolltech_qt_network0.cpp | 10 ++++++++++ .../com_trolltech_qt_network0.h | 5 +++++ 5 files changed, 33 insertions(+), 1 deletion(-) diff --git a/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core1.h b/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core1.h index 2195fe67e..50810926c 100644 --- a/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core1.h +++ b/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core1.h @@ -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) diff --git a/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.cpp b/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.cpp index 2e9fa9d83..9f84cbea3 100644 --- a/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.cpp +++ b/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.cpp @@ -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()); @@ -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)); diff --git a/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.h b/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.h index 0c700f8d6..c306504d7 100644 --- a/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.h +++ b/generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.h @@ -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; } @@ -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); diff --git a/generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.cpp b/generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.cpp index 9be5d68a7..15c5e90df 100644 --- a/generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.cpp +++ b/generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.cpp @@ -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()); @@ -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)); diff --git a/generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.h b/generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.h index 4071c623a..e83c59eea 100644 --- a/generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.h +++ b/generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.h @@ -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; @@ -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);