Skip to content

Commit b725d6a

Browse files
committed
More missing type entries, and
rename after-version entries to since-version
1 parent d833ae5 commit b725d6a

7 files changed

+64
-12
lines changed

generator/typesystem_core.xml

+14-5
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,11 @@
694694
<enum-type name="QFile::FileHandleFlag" flags="QFile::FileHandleFlags"/>
695695
<enum-type name="QIODevice::OpenModeFlag" flags="QIODevice::OpenMode"/>
696696
<enum-type name="QIODeviceBase::OpenModeFlag" flags="QIODeviceBase::OpenMode"/>
697-
<enum-type name="QLibraryInfo::LibraryLocation"/>
697+
<enum-type name="QLibraryInfo::LibraryLocation" before-version="6" />
698+
<enum-type name="QLibraryInfo::LibraryPath" since-version="6" />
698699
<enum-type name="QLibrary::LoadHint" flags="QLibrary::LoadHints"/>
699700
<enum-type name="QLocale::FormatType"/>
701+
<enum-type name="QLocale::LanguageCodeType" flags="QLocale::LanguageCodeTypes" since-version="6"/>
700702
<enum-type name="QLocale::NumberOption" flags="QLocale::NumberOptions"/>
701703
<enum-type name="QLocale::MeasurementSystem"/>
702704
<enum-type name="QLocale::QuotationStyle"/>
@@ -723,10 +725,9 @@
723725
<enum-type name="QTimeLine::CurveShape"/>
724726
<enum-type name="QTimeLine::Direction"/>
725727
<enum-type name="QTimeLine::State"/>
726-
<enum-type name="QUrl::FormattingOption" flags="QUrl::FormattingOptions"/>
727728
<enum-type name="QUrl::UrlFormattingOption" flags="QUrl::FormattingOptions"/>
728729
<enum-type name="QUrl::ComponentFormattingOption" flags="QUrl::ComponentFormattingOptions"/> <!-- Qt 5 -->
729-
<enum-type name="QUrl::UrlFormattingOption"/> <!-- Qt 5 -->
730+
<enum-type name="QUrl::AceProcessingOption" flags="QUrl::AceProcessingOptions" since-version="6"/>
730731
<enum-type name="QUrl::ParsingMode"/>
731732
<enum-type name="QUuid::Variant"/>
732733
<enum-type name="QUuid::Version"/>
@@ -848,6 +849,7 @@
848849
</enum-type>
849850

850851
<value-type name="QProcessEnvironment"/>
852+
<enum-type name="QProcessEnvironment::Initialization" since-version="6"/>
851853
<value-type name="QBasicTimer"/>
852854
<value-type name="QByteArrayMatcher">
853855
<modify-function signature="operator=(QByteArrayMatcher)" remove="all"/>
@@ -865,6 +867,7 @@
865867
<value-type name="QDateTime">
866868
<modify-function signature="operator=(QDateTime)" remove="all"/>
867869
</value-type>
870+
<enum-type name="QDateTime::YearRange"/>
868871

869872
<value-type name="QDir">
870873
<modify-function signature="QDir(QString,QString,QFlags&lt;QDir::SortFlag&gt;,QFlags&lt;QDir::Filter&gt;)">
@@ -884,6 +887,7 @@
884887
<modify-function signature="ry()" remove="all"/>
885888
</value-type>
886889
<enum-type name="QLineF::IntersectType"/>
890+
<enum-type name="QLineF::IntersectionType"/>
887891
<value-type name="QLineF"/>
888892
<value-type name="QLine"/>
889893

@@ -1285,7 +1289,7 @@
12851289
<!-- Can't provide same API and performance -->
12861290

12871291
<modify-function signature="open(int,QFlags&lt;QIODevice::OpenModeFlag&gt;)" remove="all" before-version="6"/>
1288-
<modify-function signature="open(int,QFlags&lt;QIODeviceBase::OpenModeFlag&gt;,QFlags&lt;QFileDevice::FileHandleFlag&gt;)" remove="all" after-version="6"/>
1292+
<modify-function signature="open(int,QFlags&lt;QIODeviceBase::OpenModeFlag&gt;,QFlags&lt;QFileDevice::FileHandleFlag&gt;)" remove="all" since-version="6"/>
12891293
<modify-function signature="decodeName(const char*)" remove="all"/>
12901294
<modify-function signature="map(qint64,qint64,QFile::MemoryMapFlags)" remove="all"/>
12911295
<modify-function signature="unmap(uchar*)" remove="all"/>
@@ -1794,6 +1798,7 @@
17941798
<object-type name="QSysInfo"/>
17951799
<object-type name="QLibrary"/>
17961800
<object-type name="QResource"/>
1801+
<enum-type name="QResource::Compression"/>
17971802
<object-type name="QSharedMemory"/>
17981803
<object-type name="QMetaObject"/>
17991804
<object-type name="QMetaMethod"/>
@@ -1980,6 +1985,7 @@
19801985
<enum-type name="QRegularExpression::MatchType"/>
19811986
<enum-type name="QRegularExpression::PatternOption" flags="QRegularExpression::PatternOptions"/>
19821987
<enum-type name="QRegularExpression::MatchOption" flags="QRegularExpression::MatchOptions"/>
1988+
<enum-type name="QRegularExpression::WildcardConversionOption" flags="QRegularExpression::WildcardConversionOptions" since-version="6"/>
19831989
<enum-type name="QMimeDatabase::MatchMode"/>
19841990
<enum-type name="QCommandLineParser::SingleDashWordOptionMode"/>
19851991
<enum-type name="QJsonDocument::JsonFormat"/>
@@ -1990,6 +1996,7 @@
19901996
<enum-type name="QLockFile::LockError"/>
19911997
<enum-type name="QTimeZone::TimeType"/>
19921998
<enum-type name="QTimeZone::NameType"/>
1999+
<enum-type name="QTimeZone::Initialization" since-version="6.5"/>
19932000
<enum-type name="QProcess::InputChannelMode"/>
19942001
<enum-type name="QByteArray::Base64Option" flags="QByteArray::Base64Options"/>
19952002
<enum-type name="QMetaType::Type"/>
@@ -2001,7 +2008,7 @@
20012008
<enum-type name="QState::RestorePolicy"/>
20022009
<enum-type name="QAccessible::TextBoundaryType"/>
20032010
<enum-type name="QAccessible::InterfaceType"/>
2004-
<enum-type name="QFileDevice::MemoryMapFlags"/>
2011+
<enum-type name="QFileDevice::MemoryMapFlag" flags="QFileDevice::MemoryMapFlags"/>
20052012
<enum-type name="QFileDevice::Permission" flags="QFileDevice::Permissions"/>
20062013
<enum-type name="QFileDevice::FileError"/>
20072014
<enum-type name="QFileDevice::FileHandleFlag" flags="QFileDevice::FileHandleFlags"/>
@@ -2015,9 +2022,11 @@
20152022
<enum-type name="Qt::MouseEventFlag" flags="Qt::MouseEventFlags"/>
20162023
<enum-type name="Qt::TimerType"/>
20172024
<enum-type name="Qt::Edge"/>
2025+
<enum-type name="Qt::ColorScheme" since-version="6"/>
20182026

20192027
<object-type name="QDeadlineTimer"/>
20202028
<object-type name="QOperatingSystemVersionBase"/>
2029+
<enum-type name="QOperatingSystemVersionBase::OSType"/>
20212030
<object-type name="QOperatingSystemVersion"/>
20222031
<enum-type name="QOperatingSystemVersion::OSType"/>
20232032
<object-type name="QRandomGenerator"/>

generator/typesystem_gui.xml

+19-5
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
<enum-type name="QMdiArea::WindowOrder"/>
208208
<enum-type name="QMdiArea::ViewMode"/>
209209
<enum-type name="QFileSystemModel::Roles"/>
210+
<enum-type name="QFileSystemModel::Option" flags="QFileSystemModel::Options"/>
210211
<enum-type name="QFormLayout::FieldGrowthPolicy"/>
211212
<enum-type name="QFormLayout::FormStyle"/>
212213
<enum-type name="QFormLayout::ItemRole"/>
@@ -247,7 +248,8 @@
247248
<enum-type name="QFileDialog::FileMode"/>
248249
<enum-type name="QFileDialog::Option" flags="QFileDialog::Options"/>
249250
<enum-type name="QFileDialog::ViewMode"/>
250-
<enum-type name="QFileIconProvider::IconType"/>
251+
<enum-type name="QFileIconProvider::IconType" before-version="6"/>
252+
<enum-type name="QAbstractFileIconProvider::IconType" since-version="6"/>
251253
<enum-type name="QFont::Stretch"/>
252254
<enum-type name="QFont::Style"/>
253255
<enum-type name="QFont::StyleStrategy"/>
@@ -571,7 +573,8 @@
571573
<enum-type name="QFontDatabase::SystemFont"/>
572574
<enum-type name="QStyleOptionToolBox::SelectedPosition"/>
573575
<enum-type name="QStyleOptionToolBox::TabPosition"/>
574-
<enum-type name="QFileIconProvider::Option" flags="QFileIconProvider::Options"/>
576+
<enum-type name="QFileIconProvider::Option" flags="QFileIconProvider::Options" before-version="6"/>
577+
<enum-type name="QAbstractFileIconProvider::Option" flags="QAbstractFileIconProvider::Options" since-version="6"/>
575578
<enum-type name="QIconEngine::IconEngineHook"/>
576579
<enum-type name="QPagedPaintDevice::PageSize"/>
577580

@@ -1266,6 +1269,7 @@ PyObject* constScanLine(QImage* image, int line) {
12661269
</object-type>
12671270
<object-type name="QDoubleValidator"/>
12681271
<object-type name="QFileIconProvider"/>
1272+
<object-type name="QAbstractFileIconProvider" since-version="6"/>
12691273
<object-type name="QWizard">
12701274
<!-- ### Requires correct class name in meta object -->
12711275
<modify-function signature="setDefaultProperty(const char *, const char *, const char *)" remove="all"/>
@@ -1653,9 +1657,19 @@ PyObject* constScanLine(QImage* image, int line) {
16531657
<object-type name="QInputEvent">
16541658
<modify-function signature="modifiers()const" access="non-final"/>
16551659
</object-type>
1656-
<object-type name="QPointerEvent"/>
1657-
<object-type name="QEventPoint"/>
1658-
<object-type name="QSinglePointEvent"/>
1660+
<group since-version="6">
1661+
<object-type name="QPointerEvent"/>
1662+
<object-type name="QEventPoint"/>
1663+
<enum-type name="QEventPoint::State" flags="QEventPoint::States" />
1664+
<object-type name="QSinglePointEvent"/>
1665+
<object-type name="QInputDevice"/>
1666+
<enum-type name="QInputDevice::Capability" flags="QInputDevice::Capabilities"/>
1667+
<enum-type name="QInputDevice::DeviceType" flags="QInputDevice::DeviceTypes"/>
1668+
<object-type name="QPointingDevice"/>
1669+
<enum-type name="QPointingDevice::PointerType" flags="QPointingDevice::PointerTypes"/>
1670+
<value-type name="QPointingDeviceUniqueId"/>
1671+
</group>
1672+
16591673
<object-type name="QGestureEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::Gesture || %1-&gt;type() == QEvent::GestureOverride"/>
16601674
<object-type name="QKeyEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::KeyPress || %1-&gt;type() == QEvent::KeyRelease || %1-&gt;type() == QEvent::ShortcutOverride"/>
16611675
<object-type name="QMouseEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::MouseButtonDblClick || %1-&gt;type() == QEvent::MouseButtonPress || %1-&gt;type() == QEvent::MouseButtonRelease || %1-&gt;type() == QEvent::MouseMove"/>

generator/typesystem_multimedia.xml

+20-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
<enum-type name="QAudioFormat::Endian"/>
1212
<enum-type name="QAudioFormat::SampleType"/>
13+
<group since-version="6">
14+
<enum-type name="QAudioFormat::ChannelConfig"/>
15+
<enum-type name="QAudioFormat::AudioChannelPosition"/>
16+
<enum-type name="QAudioFormat::SampleFormat"/>
17+
</group>
1318
<enum-type name="QSoundEffect::Status"/>
1419
<enum-type name="QSoundEffect::Loop"/>
1520
<enum-type name="QAbstractVideoBuffer::HandleType"/>
@@ -52,6 +57,7 @@
5257
<enum-type name="QCamera::Status"/>
5358
<enum-type name="QCamera::Error"/>
5459
<enum-type name="QCamera::CaptureMode" flags="QCamera::CaptureModes"/>
60+
<enum-type name="QCamera::Feature" flags="QCamera::Features" since-version="6"/>
5561
<enum-type name="QMediaPlayer::State"/>
5662
<enum-type name="QMediaPlayer::MediaStatus"/>
5763
<enum-type name="QMediaPlayer::Error"/>
@@ -75,7 +81,7 @@
7581
<enum-type name="QMediaStreamsControl::StreamType"/>
7682

7783
<namespace-type name="QAudio"/>
78-
<namespace-type name="QMultimedia" after-version="5"/>
84+
<namespace-type name="QMultimedia" since-version="5"/>
7985

8086
<object-type name="QAbstractVideoBuffer"/>
8187
<object-type name="QAbstractVideoSurface"/>
@@ -116,6 +122,11 @@
116122
<object-type name="QSoundEffect"/>
117123
<object-type name="QVideoEncoderSettings"/>
118124
<object-type name="QVideoFrame"/>
125+
<group since-version="6">
126+
<enum-type name="QVideoFrame::HandleType"/>
127+
<enum-type name="QVideoFrame::MapMode"/>
128+
<enum-type name="QVideoFrame::RotationAngle"/>
129+
</group>
119130
<object-type name="QVideoProbe"/>
120131
<object-type name="QVideoSurfaceFormat"/>
121132
<object-type name="QCameraViewfinder"/>
@@ -176,7 +187,7 @@
176187

177188
<object-type name="QMediaServiceProviderPlugin"/>
178189

179-
<group after-verson="6">
190+
<group since-version="6">
180191
<object-type name="QAudioDevice"/>
181192
<object-type name="QAudioSink"/>
182193
<object-type name="QAudioSource"/>
@@ -187,9 +198,16 @@
187198
<object-type name="QMediaCaptureSession"/>
188199
<object-type name="QMediaDevices"/>
189200
<object-type name="QMediaFormat"/>
201+
<enum-type name="QMediaFormat::ResolveFlags"/>
190202
<object-type name="QMediaTimeRange::Interval"/>
191203
<object-type name="QScreenCapture"/>
192204
<object-type name="QVideoFrameFormat"/>
205+
<enum-type name="QVideoFrameFormat::ColorSpace"/>
206+
<enum-type name="QVideoFrameFormat::ColorRange"/>
207+
<enum-type name="QVideoFrameFormat::Direction"/>
208+
<enum-type name="QVideoFrameFormat::YCbCrColorSpace"/>
209+
<enum-type name="QVideoFrameFormat::PixelFormat"/>
210+
<enum-type name="QVideoFrameFormat::ColorTransfer"/>
193211
<object-type name="QVideoSink"/>
194212
<object-type name="QWindowCapture"/>
195213
</group>

generator/typesystem_network.xml

+6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
<rejection class="QSslConfiguration" function-name="setDefaultDtlsConfiguration"/>
1111
<rejection class="QSslConfiguration" function-name="setDtlsCookieVerificationEnabled"/>
1212

13+
<enum-type name="QSsl::AlertLevel" since-version="6"/>
14+
<enum-type name="QSsl::AlertType" since-version="6"/>
1315
<enum-type name="QSsl::AlternativeNameEntryType"/>
16+
<enum-type name="QSsl::ImplementedClass" since-version="6.1"/>
17+
<enum-type name="QSsl::SupportedFeature" since-version="6.1"/>
1418
<enum-type name="QSslConfiguration::NextProtocolNegotiationStatus"/>
1519
<enum-type name="QNetworkProxy::Capability" flags="QNetworkProxy::Capabilities"/>
1620
<enum-type name="QAbstractSocket::NetworkLayerProtocol"/>
@@ -42,6 +46,7 @@
4246
<enum-type name="QSsl::SslOption" flags="QSsl::SslOptions"/>
4347
<enum-type name="QLocalSocket::LocalSocketError"/>
4448
<enum-type name="QLocalSocket::LocalSocketState"/>
49+
<enum-type name="QLocalSocket::SocketOption" flags="QLocalSocket::SocketOptions" since-version="6.2"/>
4550
<enum-type name="QNetworkAccessManager::Operation"/>
4651
<enum-type name="QNetworkAccessManager::NetworkAccessibility"/>
4752
<enum-type name="QNetworkAddressEntry::DnsEligibilityStatus"/>
@@ -172,6 +177,7 @@
172177
</value-type>
173178

174179
<enum-type name="QSslError::SslError"/>
180+
<enum-type name="QSslCertificate::PatternSyntax"/>
175181
<enum-type name="QSslCertificate::SubjectInfo"/>
176182
<enum-type name="QSslSocket::SslMode"/>
177183
<enum-type name="QSslSocket::PeerVerifyMode"/>

generator/typesystem_svg.xml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
<object-type name="QSvgGenerator">
2626
</object-type>
27+
<enum-type name="QSvgGenerator::SvgVersion" since-version="6.5"/>
2728

2829
<object-type name="QGraphicsSvgItem">
2930
<extra-includes>

generator/typesystem_webenginewidgets.xml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<object-type name="QWebEngineFullScreenRequest"/>
1313
<object-type name="QWebEngineHistory"/>
1414
<object-type name="QWebEngineHistoryItem"/>
15+
<object-type name="QWebEngineHistoryModel" since-version="6.2"/>
16+
<enum-type name="QWebEngineHistoryModel::Roles" since-version="6.2"/>
1517
<object-type name="QWebEngineProfile"/>
1618
<object-type name="QWebEngineScript"/>
1719
<object-type name="QWebEngineScriptCollection"/>
@@ -38,6 +40,7 @@
3840
<enum-type name="QWebEngineScript::ScriptWorldId"/>
3941
<enum-type name="QWebEngineSettings::FontFamily"/>
4042
<enum-type name="QWebEngineSettings::FontSize"/>
43+
<enum-type name="QWebEngineSettings::UnknownUrlSchemePolicy" since-version="5.11"/>
4144
<enum-type name="QWebEngineSettings::WebAttribute"/>
4245
<enum-type name="QWebEngineUrlRequestInfo::NavigationType"/>
4346
<enum-type name="QWebEngineUrlRequestInfo::ResourceType"/>

generator/typesystem_xml.xml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<modify-function signature="nodeType()const" remove="all"/>
3636
<modify-function signature="operator=(QDomDocument)" remove="all"/>
3737
</value-type>
38+
<enum-type name="QDomDocument::ParseOption" flags="QDomDocument::ParseOptions" since-version="6.5"/>
3839

3940
<value-type name="QDomDocumentFragment">
4041
<modify-function signature="nodeType()const" remove="all"/>

0 commit comments

Comments
 (0)