Skip to content

Commit ebe211d

Browse files
YuriUfimtsevmrbean-bremen
authored andcommitted
Add 5.11.3 generated with enum class support
1 parent dabc698 commit ebe211d

File tree

5 files changed

+33
-1
lines changed

5 files changed

+33
-1
lines changed

generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core1.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,8 +1316,10 @@ void delete_QMetaProperty(QMetaProperty* obj) { delete obj; }
13161316
class PythonQtWrapper_QMetaType : public QObject
13171317
{ Q_OBJECT
13181318
public:
1319-
Q_ENUMS(TypeFlag )
1319+
Q_ENUMS(Type TypeFlag )
13201320
Q_FLAGS(TypeFlags )
1321+
enum Type{
1322+
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};
13211323
enum TypeFlag{
13221324
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};
13231325
Q_DECLARE_FLAGS(TypeFlags, TypeFlag)

generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2838,6 +2838,11 @@ void PythonQtWrapper_QThread::static_QThread_msleep(unsigned long arg__1)
28382838
(QThread::msleep(arg__1));
28392839
}
28402840

2841+
QThread::Priority PythonQtWrapper_QThread::priority(QThread* theWrappedObject) const
2842+
{
2843+
return ( theWrappedObject->priority());
2844+
}
2845+
28412846
void PythonQtWrapper_QThread::requestInterruption(QThread* theWrappedObject)
28422847
{
28432848
( theWrappedObject->requestInterruption());
@@ -2853,6 +2858,11 @@ void PythonQtWrapper_QThread::setEventDispatcher(QThread* theWrappedObject, QAbs
28532858
( theWrappedObject->setEventDispatcher(eventDispatcher));
28542859
}
28552860

2861+
void PythonQtWrapper_QThread::setPriority(QThread* theWrappedObject, QThread::Priority priority)
2862+
{
2863+
( theWrappedObject->setPriority(priority));
2864+
}
2865+
28562866
void PythonQtWrapper_QThread::setStackSize(QThread* theWrappedObject, uint stackSize)
28572867
{
28582868
( theWrappedObject->setStackSize(stackSize));

generated_cpp_511/com_trolltech_qt_core/com_trolltech_qt_core3.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ inline void py_q_run() { QThread::run(); }
701701
class PythonQtWrapper_QThread : public QObject
702702
{ Q_OBJECT
703703
public:
704+
Q_ENUMS(Priority )
705+
enum Priority{
706+
IdlePriority = QThread::IdlePriority, LowestPriority = QThread::LowestPriority, LowPriority = QThread::LowPriority, NormalPriority = QThread::NormalPriority, HighPriority = QThread::HighPriority, HighestPriority = QThread::HighestPriority, TimeCriticalPriority = QThread::TimeCriticalPriority, InheritPriority = QThread::InheritPriority};
704707
public slots:
705708
QThread* new_QThread(QObject* parent = nullptr);
706709
void delete_QThread(QThread* obj) { delete obj; }
@@ -716,10 +719,12 @@ void delete_QThread(QThread* obj) { delete obj; }
716719
bool isRunning(QThread* theWrappedObject) const;
717720
int loopLevel(QThread* theWrappedObject) const;
718721
void static_QThread_msleep(unsigned long arg__1);
722+
QThread::Priority priority(QThread* theWrappedObject) const;
719723
void requestInterruption(QThread* theWrappedObject);
720724
void run(QThread* theWrappedObject);
721725
void py_q_run(QThread* theWrappedObject){ (((PythonQtPublicPromoter_QThread*)theWrappedObject)->py_q_run());}
722726
void setEventDispatcher(QThread* theWrappedObject, QAbstractEventDispatcher* eventDispatcher);
727+
void setPriority(QThread* theWrappedObject, QThread::Priority priority);
723728
void setStackSize(QThread* theWrappedObject, uint stackSize);
724729
void static_QThread_setTerminationEnabled(bool enabled = true);
725730
void static_QThread_sleep(unsigned long arg__1);

generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4196,6 +4196,11 @@ void PythonQtWrapper_QNetworkAddressEntry::clearAddressLifetime(QNetworkAddressE
41964196
( theWrappedObject->clearAddressLifetime());
41974197
}
41984198

4199+
QNetworkAddressEntry::DnsEligibilityStatus PythonQtWrapper_QNetworkAddressEntry::dnsEligibility(QNetworkAddressEntry* theWrappedObject) const
4200+
{
4201+
return ( theWrappedObject->dnsEligibility());
4202+
}
4203+
41994204
QHostAddress PythonQtWrapper_QNetworkAddressEntry::ip(QNetworkAddressEntry* theWrappedObject) const
42004205
{
42014206
return ( theWrappedObject->ip());
@@ -4251,6 +4256,11 @@ void PythonQtWrapper_QNetworkAddressEntry::setBroadcast(QNetworkAddressEntry* th
42514256
( theWrappedObject->setBroadcast(newBroadcast));
42524257
}
42534258

4259+
void PythonQtWrapper_QNetworkAddressEntry::setDnsEligibility(QNetworkAddressEntry* theWrappedObject, QNetworkAddressEntry::DnsEligibilityStatus status)
4260+
{
4261+
( theWrappedObject->setDnsEligibility(status));
4262+
}
4263+
42544264
void PythonQtWrapper_QNetworkAddressEntry::setIp(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newIp)
42554265
{
42564266
( theWrappedObject->setIp(newIp));

generated_cpp_511/com_trolltech_qt_network/com_trolltech_qt_network0.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,12 +887,16 @@ void delete_QNetworkAccessManager(QNetworkAccessManager* obj) { delete obj; }
887887
class PythonQtWrapper_QNetworkAddressEntry : public QObject
888888
{ Q_OBJECT
889889
public:
890+
Q_ENUMS(DnsEligibilityStatus )
891+
enum DnsEligibilityStatus{
892+
DnsEligibilityUnknown = QNetworkAddressEntry::DnsEligibilityUnknown, DnsIneligible = QNetworkAddressEntry::DnsIneligible, DnsEligible = QNetworkAddressEntry::DnsEligible};
890893
public slots:
891894
QNetworkAddressEntry* new_QNetworkAddressEntry();
892895
QNetworkAddressEntry* new_QNetworkAddressEntry(const QNetworkAddressEntry& other);
893896
void delete_QNetworkAddressEntry(QNetworkAddressEntry* obj) { delete obj; }
894897
QHostAddress broadcast(QNetworkAddressEntry* theWrappedObject) const;
895898
void clearAddressLifetime(QNetworkAddressEntry* theWrappedObject);
899+
QNetworkAddressEntry::DnsEligibilityStatus dnsEligibility(QNetworkAddressEntry* theWrappedObject) const;
896900
QHostAddress ip(QNetworkAddressEntry* theWrappedObject) const;
897901
bool isLifetimeKnown(QNetworkAddressEntry* theWrappedObject) const;
898902
bool isPermanent(QNetworkAddressEntry* theWrappedObject) const;
@@ -904,6 +908,7 @@ void delete_QNetworkAddressEntry(QNetworkAddressEntry* obj) { delete obj; }
904908
int prefixLength(QNetworkAddressEntry* theWrappedObject) const;
905909
void setAddressLifetime(QNetworkAddressEntry* theWrappedObject, QDeadlineTimer preferred, QDeadlineTimer validity);
906910
void setBroadcast(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newBroadcast);
911+
void setDnsEligibility(QNetworkAddressEntry* theWrappedObject, QNetworkAddressEntry::DnsEligibilityStatus status);
907912
void setIp(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newIp);
908913
void setNetmask(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newNetmask);
909914
void setPrefixLength(QNetworkAddressEntry* theWrappedObject, int length);

0 commit comments

Comments
 (0)