| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Change-Id: Iea443b9e541935bb904b6ad9d533909c313a7b81
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
QInputDialog.get* methods should accept None as parent
Fixes: PYSIDE-3078
Pick-to: 6.8 6.9
Change-Id: I5e6889800040a44649f99e1e7f95ab07e127c550
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the default-superclass specification QGraphicsItem for
QGraphicsObject since it causes the type discovery to directly cast
from QGraphicsObject* to QGraphicsItem*. This crashes
since QGraphicsObject inherits from QObject as first base class.
The intention of the class attribute was to ensure that any
QGraphicsObject class is stored as a QGraphicsItem. To preserve this,
hardcode it in QVariant_resolveMetaType().
Pick-to: 6.9
Fixes: PYSIDE-3069
Task-number: PYSIDE-86
Task-number: PYSIDE-1887
Change-Id: I3704988f105b118b1e4ef8d078b68c01ba89386c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
It encapsulates fetching/restoring errors and uses the old or new
exception API depending on version.
Task-number: PYSIDE-3067
Change-Id: I6e39d92c7e79fed864b364a90c5bd5b474a41ed6
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Amends caa9d339c3ba96879ae5972b08787506ec36d92b.
Task-number: PYSIDE-3084
Change-Id: I17c70441e050b713edca8f3f31ebc8c6bf251bba
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
| |
Pick-to: 6.9
Change-Id: I184a939af6814a04f76f1047217bc9736143bd74
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Make sure to store QtEnums in QVariant when the enum has a metatype.
Fixes: PYSIDE-3084
Change-Id: I94b89f89e6fb3c58560325f2a6843a5260d86557
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Stash and restore the Python errors in the message handler.
Fixes: PYSIDE-3067
Pick-to: 6.9 6.8 6.5
Change-Id: If0d8ec08f939dae6c4d6bd33a0b15f9a21d740af
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Port an incomprehensible list comprehension to pathlib and strip the
"_d" debug prefix from the file name.
Amends 3d9e42f33fad5b2eeee62d3eced1c69aa7f35fff.
Fixes: PYSIDE-3061
Task-number: PYSIDE-1890
Task-number: PYSIDE-2895
Pick-to: 6.9 6.8
Change-Id: I2989ec411ae73790515ac282a2c3eccc7d222c97
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
These operators were missing.
Change based on QPolygon fix
Change-Id: I8d0a4846f91aac1e2dfa1817ec6d15903519e819
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Also add documentation with a minimal example showing the use
case of QMessageLogger in Python.
[ChangeLog][PySide6] Added QMessageLogger class to handle debug, info,
warning, critical, and fatal messages, including support for
QLoggingCategory.
Task-number: PYSIDE-3052
Pick-to: 6.9 6.8
Change-Id: Iaaf586288de4aaccf01d1e6547df9a2f478a7c8c
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
A few places were still using the double negation on a couple of
Qt configuration options.
Pick-to: 6.9
Change-Id: Id182e7a3958af21368cb890e645dc4a2902f8260
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Considering we still support old Python versions,
we cannot have the same quotation mark for f-string and for
variables within the f-string.
Fixes: PYSIDE-3068
Pick-to: 6.8 6.9 6.9.0
Change-Id: Ie9f1ed91f1a1965631bc71f35600780bb4f00603
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
| |
parent parameter of about, aboutQt, critical, information, question, and warning changed to Optional[QWidget].
Fixes: PYSIDE-3021
Pick-to: 6.8 6.9
Change-Id: I31e556933f25f6c21e18debb274db6a13ffbe2ed
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Fixes: PYSIDE-3057
Pick-to: 6.8 6.9
Change-Id: Iceced6c84fbfabfb484663a71ccdf13c2f69ab0a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
| |
Fixes: PYSIDE-3050
Pick-to: 6.8 6.9
Change-Id: Ic200e75717518b2363e0aca6fe4cfc31e5fe6256
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
| |
Fixes: PYSIDE-3055
Pick-to: 6.8 6.9
Change-Id: I5b3ee124b57643991afcb70cd9293f0cd30ff83d
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Introduced by qtnetworkauth/58c92af6e870fde2718a2aa9a6631a9c7ab40fad.
Complements 2c3c5c0db5f1dbaafd23befc07633382b86e890d.
Task-number: QTBUG-124332
Task-number: PYSIDE-2862
Pick-to: 6.9
Change-Id: I9857e2ee5cabde02469f8c3a32d8a12ba05971a3
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The PlaceholderType is needed to make the type parameter
concrete. This led to further generalization of the
supported constructs in the XML specs.
Change-Id: Ic5ae4416a187f7f8527c86349f731e1b4e36b964
Fixes: PYSIDE-3045
Pick-to: 6.8 6.9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of typing.Iterable, typing.List must be used in
the return type of QtCore.findchildren.
As a drive-by, the name "PlaceholderType" was corrected
because "placeholder" is only one word.
The new calculation of Optional replacement was also
fixed to handle return types.
Note: The Optional[PlaholderType] is special, and typing
refuses to use "|" here.
Change-Id: I9f7d89027496f3cae58710595d7bcaafb0e51915
Fixes: PYSIDE-3045
Pick-to: 6.8 6.9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
This is matched by a fallback mechanism at the moment.
Pick-to: 6.9 6.8
Change-Id: I9247fc512eb26007a88172d9c2a66b10e916d423
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
| |
Change-Id: I0565751f0189fea3e59cea7aa953d205527dd8b2
Pick-to: 6.8
Fixes: PYSIDE-3041
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Change-Id: I9d14b23d9fe2e084ffdacd66560c84c8c0d54764
Fixes: PYSIDE-3042
Pick-to: 6.8
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
| |
Change-Id: I204fe9a3716de359a5d75629c6757d2045e78f43
Fixes: PYSIDE-3036
Pick-to: 6.8
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
While present, the Qt Remote Objects bindings to Python have not been
very useful. The only usable components were those based on
QAbstractItemModel, due to the lack of a way to interpret .rep files
from Python. This addresses that limitation.
Fixes: PYSIDE-862
Change-Id: Ice57c0c64f11c3c7e74d50ce3c48617bd9b422a3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Brett Stottlemyer <brett.stottlemyer@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
All classes are in a namespace Qt3DAnimation, which produces an overly
long page. Fixes an oversight in a8b0954cae4b4322ee8a206875f942977174b826.
Pick-to: 6.8
Change-Id: I61b7d703f260ac9cbe09170a32580ef5ba635720
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
When an exception occurs in a task, the logging is not helpful since it prints out nothing specific about the error that occurred. Catching the traceback and printing it out with the task in which it happened brings a lot of details to resolve the exception faster.
Task-number: PYSIDE-3001
Pick-to: 6.8
Change-Id: If199da28a37406779ac5bec178fe756d1757b08c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
parameter
When retrieving the function groups, check if there overloads that
differ in one parameter and remove them based on rules specified in
the type system. For example, when QByteArray::number(qint64) and
QByteArray::number(int) exist, it does not make sense to generate an
overload for int with parameter checking.
[ChangeLog][shiboken6] It is now possible to specify rules
to remove redundant overloads that differ in one parameter.
Task-number: PYSIDE-2701
Change-Id: I8e1ccbccfe7b5ad76486dc197e8d9c36f1809fbe
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
| |
Add it as an integer-type. A follow-up change is needed to remove the
resulting redundant overloads with int.
Change-Id: Iba6eb399d218d5116c8030144c1e4984d11218a7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
| |
Pick-to: 6.8
Change-Id: I0780ee2f7f5f42a9281f4add3818109628df8332
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a file cache caching a small number of files with a convenience
API for retrieving lines and regexp-delimited snippets. This avoids
re-opening snippet files several hundreds times during building.
As a drive-by, fix a broken doc snippet.
Pick-to: 6.8
Change-Id: Ic468dbff755285456034a176e4d3eae348dcbf15
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Add the overload-number attribute to parse function to execute first
QString check and then QStringList.
Test for parser added.
Fixes: PYSIDE-3017
Pick-to: 6.8
Change-Id: I7e5a02fec50405bc3d71c5662a7909d34f4d20df
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
| |
Brush up the code and remove unused templates.
Pick-to: 6.8
Change-Id: Ic9a0a6fb941e0d110124df7f02b2fc3c91664656
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Prototypically move some template code from QtGui into
snippets.
[ChangeLog][shiboken6] It is now possible to use
file snippets for XML template content.
Change-Id: Ifb23407819c843e9059225a5bd269d954f837ee3
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
The old name was modeled after std::auto_ptr, which has
been deprecated for quite a while.
[ChangeLog][shiboken6] Helper class AutoArrayPointer has been renamed
to ArrayPointer. A convenience typedef is provided.
Change-Id: I067b22a102961348067a131fcc6e6b5fc42d3f76
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
| |
Pick-to: 6.8
Change-Id: I9530a1b3f2b315a91fbc8d0885a46640c73c4f2a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Use templates introduced by e3631c3322d28447068de3a874055ff937b237c4.
Pick-to: 6.8
Task-number: PYSIDE-3002
Change-Id: I5b7948c83768fa0c03c6b360717d202270ebbc9e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
It has been widened to qintptr in Qt 6
(qtbase/3b38c)3c7ffa71c00c172cf0e05742835a304300).
Pick-to: 6.8 6.5
Task-number: QTBUG-72968
Change-Id: I17846607108b29527415c97bbaabe2acecf9bac0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Use the existing code snippet for glGetString.
callArrayFunction appears to be unused.
Pick-to: 6.8
Change-Id: I7eeff9866bc7b4eb6e0f9bb409ae0382723c96c4
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
| |
Pick-to: 6.8
Task-number: PYSIDE-3011
Change-Id: I92fde30427d6fc8572f1d65e267809c1255b0d31
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
geometry primitives
Add argument conversions PySequence<->C-style array, modelled after
QGraphicsView::drawItems().
Move some templates around to the common template file and add generic
conversions for lists of value types.
[ChangeLog][PySide6] The virtual functions of QPaintEngine taking a
C-style array of geometry primitives have been fixed.
Fixes: PYSIDE-3002
Pick-to: 6.8
Change-Id: Ife8fed0e17c79091f25f57bf97bcca438452e177
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
The constructor is a non-type template that checks the string length.
Add a function for it.
Pick-to: 6.8
Fixes: PYSIDE-3013
Change-Id: I35626c29edddf38c04c5b913a35b36c540c45d6a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
Add the missing native return value conversion. Complements
6c0a0d70305cd6e12260a352099e74d34f3c239e.
Pick-to: 6.8
Fixes: PYSIDE-3014
Task-number: PYSIDE-106
Change-Id: I7cce422512175dcbf15ca0e9c0a0a3be5dfb93d6
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Use string literals instead of str(version), which causes
6.10 to be returned as "6.1".
Task-number: PYSIDE-3011
Change-Id: I2c5a295c6f283d1efb92dabcb05c3baed8b20b9e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This enables removing a duplicate modification for
QGraphicsWidget::getContentsMargins() which is inherited from class
QGraphicsLayout, QGraphicsLayoutItem (2nd base class) and activates
other base modifications for QGraphicsObject-derived classes.
Also add a flag indicating whether the modification is inherited
from a base class or directly specified for later use
in size reduction.
[ChangeLog][shiboken6] Modifications from base classes in multiple
inheritance will now be correctly applied.
Task-number: PYSIDE-2701
Change-Id: I190764a673fb6b7ad44aea5ed90ff64c57eda324
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
| |
Fixes: PYSIDE-2862
Change-Id: I7cef186d1fb1e1b23cb62daa659db6fab2f460d9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is arguably a bug, but would only be noticed in testing. It was
preventing proper garbage collection in tests using QSignalSpy.
I can see an argument it should keep the target object alive while
running, but I don't see a good way to DECREF on close, so not holding
a reference seems like the best option.
Change-Id: I730d8b0a6efd3fef63dfd224917c2e5927d144c4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
| |
Fixes: PYSIDE-2988
Pick-to: 6.8
Change-Id: I29f5fcbcafdf240a8cb6f91f6c4b8d7fce47ec72
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Add a custom admonition for modified functions
to highlight Python-specific aspects.
Pick-to: 6.8
Task-number: PYSIDE-1106
Change-Id: I3fd32151b0786b6225970a7a05df56953d999fb1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
| |
Pick-to: 6.8
Task-number: PYSIDE-487
Change-Id: I8aea7a1e0e6a11a44728c7c4a402576d27ad4790
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|