| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
| |
Otherwise, for example QQmlAbstractUrlInterceptor locks up.
Pick-to: 6.5
Change-Id: I4f1b3e1829b00c16cbf983d6f297304c0e99023f
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Use Any instead of "any". Amends
3c2117c6ce31ff403fc2f17a181763057cd2e1bc.
Pick-to: 6.5
Task-number: PYSIDE-2285
Fixes: PYSIDE-2364
Change-Id: I1adc6c2e8e4d12516c42ba09b9431638423af1d3
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- For Python/Shiboken types not known to Qt that requires wrapping
around a QVariant, we use the PyObjectWrapper type. This patch
registers a toInt() QMetaType converter for PyObjectWrapper, which
enables automatic conversion to int for a QVariant(PyObjectWrapper)
within C++ i.e. QVariant(PyObjectWrapper).toInt() will work
- This means that cases like QAbstractItemModel::data() that calls
QtPrivate::legacyEnumValueFromModelData(const QVariant &data) would
work without explicit conversion from QVariant(PyObjectWrapper) to
QVariant(int). But for cases like QMetaProperty::write() explcit
handling is still required.
- This would also work for cases where the QVariant(PyObjectWrapper) is
simply channeled from Python to C++, and from C++ back to Python
without performing any operations on it.
- Incase, the wrapped object is not a PyEnum/ShibokenEnum object, then
toInt() would return a -1.
Pick-to: 6.5
Task-number: PYSIDE-1930
Task-number: PYSIDE-2339
Change-Id: I983351f2ff88c79c29399c257e38421116efc7a3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix QCoreApplication::translate(), SIGNAL(), SLOT()
and QMetaObject.indexOf*().
Fixes: PYSIDE-2357
Fixes: PYSIDE-2331
Task-number: PYSIDE-2340
Change-Id: I5198b1159ede06536bfc36287be8b3178f54d036
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
Change (gadget) QScxmlEvent to be a value type.
Refactor the test to check for events as well.
Pick-to: 6.5
Fixes: PYSIDE-2340
Change-Id: I0e37de05740f17d41794ebc74c81e49c49753495
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Some modules pull in QtNetwork/QtQml via their Depends headers
although it is only a private/link dependency.
Suppress warnings about the enums.
Pick-to: 6.5
Change-Id: I35d75ca538bb770294e434b83233600462805e99
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
List the loaded (dependent) type systems as the reason mostly
is a missing dependent type system.
Pick-to: 6.5
Change-Id: Iaefd39b3097357402292b2520ae410a7fd6a8911
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
| |
This reduces noise in the log files.
Pick-to: 6.5
Change-Id: I0c8c98859058d9bbef26f71da83918490099a318
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Remove obsolete enumerations and classes.
Add a few new enums.
Pick-to: 6.5
Change-Id: I8283cb7b20000839b2c9f4ba16b9a69ffab9f2c6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
This reverts commit 87eb93ea934774bab6e8359ce3c80ae818fa9b7e.
The functions are reject (cannot find base operand
class) and cause warnings.
Pick-to: 6.5
Change-Id: I6a99405e41720a748dda2c7156e4effccbdab189
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The default type of numpy is int64 on Linux and long in Windows
these days. As numpy is still based on the old long/long long
scheme for the types, add some mapping.
[ChangeLog][shiboken6] numpy support has been extended to handle
short/long long integer types.
Fixes: PYSIDE-2313
Pick-to: 6.5
Change-Id: I75d9277ae0867401c2c188efb3a50f4c53c4fc24
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
resolution
Add a flag to AbstractMetaBuilderPrivate::findTypeEntriesHelper()
to suppress the class scope look in case scope resolution.
Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I04a4810d03845fb48393c5efed3641220bd12d87
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
Introduced by qtbase/1fe7144a0746353ea629cd91b5c0d04a8434159b.
Task-number: QTBUG-103932
Pick-to: 6.5
Change-Id: I5455d22a71e917f469e2789ae38b08199efa8c09
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'QT_CONFIG(opengl)' doesn't necessarily mean all of the
qopenglfunctions_* headers are present.
That's not the case when QT_FEATURE_opengles2 is enabled. Only
qopenglfunctions_es2.h is installed in this configuration.
Amends: 6d6f614fdd7510a1b8a00a51bb6232a3d151523b
Fixes: QTBUG-112708
Pick-to: 6.5
Change-Id: I00219554caf25e48236724c150f8bcd7fc9dc46c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Complements 4106f1420119f77b41246836f1829431a1c58395.
Fixes: PYSIDE-2302
Task-number: PYSIDE-803
Pick-to: 6.5
Change-Id: I48af4f9ca364cc742f2ad69f9d604147f4c5cd0e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
The function was removed by qtbase/2ca30440835ef99d8b5f720866fc163a9629bed7.
Bring it back with a FIXME for Qt 7.
Pick-to: 6.5
Task-number: QTBUG-105048
Fixes: PYSIDE-2300
Change-Id: I4c1fb0d8a87bcbc1cd3d8068500cf5ec9e047dde
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Fixes: PYSIDE-2298
Pick-to: 6.5
Change-Id: Idcfe91d1f2be5c3591b66977c8c7cc5e3275b4dc
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Fixes: PYSIDE-2285
Change-Id: I525ffea2f79bf54de43dc02c31a41994fe3004d5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: I6776abea0eebda9f736ae77c6c3f395bde7afe93
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: I6ebb82b93df4dc31083adc209190fab4dcc4299b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2272
Change-Id: I8f67505875178c007de2c141a524e9bc1e76169a
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: I3bbbc063525d6cb2b4a30281915578b36fbe6bbb
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Amends ed68eec67393338d1019ad9babb03aa7d3e1bc1c.
Pick-to: 6.5
Change-Id: I4bf74558562ac4dc1cd9cbc09328fa218415426a
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
| |
Pick-to: 6.5
Change-Id: Ic3b1df1afaf96af8118fda7efa4e7b76fc201e73
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
Fold in outdated version conditions, sort code module.
Pick-to: 6.5
Change-Id: I63fe4c687d2487f28fb9781612ac63ec6ef1a5c7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Qt 6.6 deprecates qSetGlobalQHashSeed() in favor of the class
QHashSeed introduced in 6.2
(qtbase/4ef99b8fbb3ba32df5591ac306fe8a7baa31c92c,
7ac0621ad1a649254e7d6175205e7ea22290b4d0).
[ChangeLog][PySide6] Class QHashSeed has been added.
Pick-to: 6.2
Change-Id: Ie87a945c217e5717b4068ef50303ef96319bb8e1
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
[ChangeLog][shiboken6] The generated code no longer contains `goto`.
Change-Id: I3b90abafd8dbe2c19b4fffb7880322451d1ed068
Fixes: PYSIDE-2256
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
| |
Declare QFunctionPointer as a PyLong type.
Fixes: PYSIDE-971
Change-Id: I617216b169f1e161b2f80eab311f1f979d35f370
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Extend the QRasterWindowTest to test it.
Fixes: PYSIDE-2252
Change-Id: If36253d00edab4dc9026ccd483485b2ba6d3f69e
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
Remove non-existent functions and move stuff to QtWidgets.
Task-number: PYSIDE-2252
Change-Id: Id2c73698a138b0e6a28dfd531ac7d7de9a1df3de
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- by default, it can be assumed that Qt for Android has opengles
enabled.
- Basically amends 486168a83d29ea8d59fbb7dc45163ee61805423e
Change-Id: I3e9493834958fcd306dad9ba28bdd13884146353
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This manifests in QtDataVisualization's
const QBarDataArray *QBarDataProxy::array() const
where QBarDataArray is handled as a primitive type.
This required adapting a code snippet which was relying
on the argument QString* being treated as QString.
Task-number: PYSIDE-2206
Change-Id: Ib05f01d7b54e103cf5bb71be86ffa9b5067ca3fb
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
| |
Adapt to qtbase/817e47fbcde21ab54d353efd647685159cb437a9.
Change-Id: I066ee378b4b5cc6f3dc19a4d95a6e07a202d95b8
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
It has been re-added to 6.5.
Change-Id: I2a8b7889d1179c173a9c8d81b04e0a224c9cf0a7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Starting with 6.5, we only install the required headers for each
platform - See QTBUG-103196. This means that the QOpenGLFunctions_*
headers are now not included with Qt Android installations as it is
not relevant anymore. Nevertheless, shiboken would try to generate
the wrapper files for the missing classes, whose headers are now
not present. This patch instructs shiboken to skip checking those
headers.
Task-number: PYSIDE-1612
Change-Id: Ib71b8cd6e2b583b56119791a8cf027f866bdf27e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Pass an allocated array to the function, similar to
00228b7605f63c58ab979362ecaa2bef96c7dc67 for QSurfaceDataProxy.
A specific code snippet is used since it needs to operate
on a pointer (QList* instead of the custom type for the 2-dimensional
types of surface/bar).
Task-number: PYSIDE-1438
Task-number: PYSIDE-2206
Pick-to: 6.4 6.2
Change-Id: I20b0f67ace4090e21c13995f94e22e37fb5fa940
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Pass an allocated array to the functions, similar to
00228b7605f63c58ab979362ecaa2bef96c7dc67 for QSurfaceDataProxy.
Task-number: PYSIDE-1438
Task-number: PYSIDE-2206
Pick-to: 6.4 6.2
Change-Id: Ic3dd05b014b04425846889feb5e4df6cbe9d7675
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Fixes: PYSIDE-2234
Change-Id: I3fc1c669c3985a8aad57785927fb4e48e69431a4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
| |
Fixes: PYSIDE-2236
Change-Id: Ibf516529799b35982c8c210f657983d511b622a0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Add entries for classes not present in WebAssembly for QtCore.
Task-number: PYSIDE-962
Change-Id: I0b69ce4cfbbb1172893ccd2e87620b1d7ebb3872
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Sorting of items can be achieved by overriding virtual
QStandardItem::operator<(), similar to QTreeWidgetItem::operator<().
For unknown reasons, the QStandardItem operator was removed in the
initial Qt 5 commit.
Fixes: PYSIDE-1014
Pick-to: 6.4
Change-Id: I027dd4f0340e81bbbd6d453378e3aca62c420b1d
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
| |
Adapt to qtbase/32749c913b32e89e2027227233794f2296166cc6
Change-Id: Ie1336621baa94cfa94f4a595808023592fe96df8
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
CMakeLists.txt and .cmake files of significant size
(more than 2 lines according to our check in tst_license.pl)
now have the copyright and license header.
Task-number: QTBUG-105718
Task-number: QTBUG-88621
Change-Id: I98bd2e80f182d8bf7aef6b633f37a428e2dac69b
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Added by qtsvg/5019037adf38f7b7fd299949af3f8f46c07e574d.
Amends a1f368a504f1c465cdf85dbc137db4880a09738a.
Change-Id: I6f24fbf3c39a71e823858abcdcabb87b4a187ef3
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add new enums
- Hide field QMetaMethod::mobj made protected by
qtbase/0b701ec0cd86afbf6bb0d0abb361cfb6500c2e1b
- Adapt to PDF qtwebengine/6769bd1544c56a514fe35bf16d05614605a49bea
- Adapt to qhttpserver/55d10201dc7a47b239825548e053c1fb0de61115,
adding a virtual method with rvalue reference to QAbstractHttpServer
- create_wheels.py: Adapt to changed location of the metatypes directory
in Qt after qtbase/4234ce12dc819b9ca76c8dc4c251f5bd4fe0bc9c.
- Adapt error column in QDomDocument test
- Fix QMetaObject::invoke() to work after
qtbase/fe92b080658f0d8609e2a2a69e5ec2b51dd7bf9d by making the
cast of the helper types to Q(Generic)ReturnArgument explicit
in the snippets
Change-Id: Ifb514878e999ad4c9ef00ff83172626eff112a3d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
In a few old patches, we had not updated ob_refcnt to
Py_REFCNT. This will now be necessary when we try the nogil
branch.
Thanks to Jim Kring for providing this initial patch.
Task-number: PYSIDE-2221
Change-Id: I2085407e44d93faf4929aac24facef167f09ac52
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QPainter draw methods are highly performance sensitive operations, and
it can be the case that users want to draw data that is already
structured in a continuous numpy array. Instead of creating numpy
specific draw methods (such as drawPointsNp) instead we can use the
pointer based methods that are already in the C++ API.
In this case it would go something along the lines of.
size = 10_000 # number of lines
memory = np.empty((size, 4), dtype=np.float64)
lines = shiboken6.wrapInstance(memory.ctypes.data, QtCore.QLineF)
rng = np.random.default_rng()
x = rng.random(size) * size
y = rng.random(size) * size
arr = np.empty((size, 4), dtype=np.float64)
arr[:, 0] = x # x coordinates
arr[:, 1] = y # y coordinates
arr[:, 2] = x + 2
arr[:, 3] = y + 2
memory[:] = arr
qimg = QtGui.QImage(1_024, 1_024, QtGui.QImage.Format.Format_RGB32)
qimg.fill(QtCore.Qt.GlobalColor.transparent)
painter = QtGui.QPainter(qimg)
painter.setPen(QtCore.Qt.GlobalColor.cyan)
painter.drawLines(lines, size)
painter.end()
This method was tested against QPainter.drawPointsNp and was found to
outperform it by a significant margin.
This commit exposes the following method signatures
QPainter.drawPoints(const QPointF*,int)
QPainter.drawLines(const QLineF*, int)
QPainter.drawRects(const QRectF*, int)
Pick-to: 6.4
Fixes: PYSIDE-1924
Change-Id: I844a7bc5fec33673b47228896cb63e4245552a94
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- The argument 'ok' for both the functions in Python is removed
- Instead, we create the passed argument 'ok' in CPython wrapper
- The modified value of 'ok' and the original result are now returned
as PyTuple
Pick-to: 6.4
Task-number: PYSIDE-2194
Change-Id: If947129f90dda9aedb392a1cbb3822fa04c87415
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
An explicit support dir had to be added.
Change-Id: Id43b8a01988fd2ee949b8b80b269c3a6a0bdbb9d
Fixes: PYSIDE-2183
Pick-to: 6.4
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Add an element enabling adding opaque containers to existing
container-type entries (including builtins).
Task-number: PYSIDE-1605
Task-number: PYSIDE-2174
Change-Id: I1b4a94331b264dc5e9503ab795edf882dfaa070f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|