| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Pick-to: 6.2
Pick-to: dev
Change-Id: If53fb034ee0c62b25e9a672ff687a0e1f4c592f4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: I42086d00eb3dcede51a22db52a0878b3cc7b7434
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: Id6bd9a7a8c9b09ee2dde6a77b12146307a02826b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
| |
Change-Id: Ic854dd073a728dfba89f0a217d26c61c46ea6e0a
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit fa799cbe62587091ef5d90900b37f4ae9a34554b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix:
sources/pyside6/doc/examples/example_corelib__mimetypesbrowser.rst:4: WARNING: Unknown target name: "mime type browser example https://doc.qt.io/qt-6/qtcore-mimetypes-mimetypebrowser-example.html".
sources/pyside6/doc/examples/example_multimedia__audiosource.rst:4: WARNING: Unknown target name: "audio source example https://doc-snapshots.qt.io/qt6-dev/qtmultimedia-multimedia-audiosource-example.html".
sources/pyside6/doc/examples/example_widgets_tools_regularexpression.rst:4: WARNING: Unknown target name: "qregularexpression example https://doc.qt.io/qt-6/qtwidgets-tools-regularexpression-example.html".
sources/pyside6/doc/examples/example_widgets_tools_regularexpression.rst:: WARNING: image file not readable: examples/regularexpression.png
Task-number: PYSIDE-841
Change-Id: I541df87560227d4361823b2948890fb2bf949d8e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit c81ee3c92ac022bb5e9b3d0db72f157a1e1a6513)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Ported from C++.
Done-with: Friedemann Kleint <Friedemann.Kleint@qt.io>
Done-with: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Change-Id: I9336016daec01b0b0486fcd39fac20c6bbd08970
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 06934b80680b4cef967c7b8a87580a7d7759a01c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
| |
Change-Id: I62baa8100f3f5176f2f65c2c101be25ee5650733
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit a2700ad6f4222bbf1a302dca777f4bce986d27e7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
| |
Task-number: PYSIDE-841
Change-Id: Ia394ab350ab04281e2227dc3af950913f44c6564
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 92631a253dd1baf17d5f0b2080c4a9c80263672d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will be replaced by a context manager, soon.
Also, begin and end should not simply return a boolean
but raise an exception when something serious broke.
Task-number: PYSIDE-535
Change-Id: Ieb2f845a01105381aab539e04b964de7a551d739
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit d90d6c260bdf97c6b10e0ff58fbd422a197f9917)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
While testing the examples with PyPy, a number of examples
used QPainter without explicitly calling painter.end() and
crashed.
This works in standard Python, but leaves the painter open
in other implementations, because the implicit deletion of
objects when going out of scope does not work in the
wrapper when garbage collection is used.
Fixed by providing the missing painter.end() calls.
This problem should finally be fixed by making QPainter a
context manager. The same approach was taken by Python.org and
the file open/close functions. The context manager was needed
for implementations like IronPython, Jython and PyPy.
[ChangeLog][PySide6] The examples were adapted to PyPy's
need to close QPainter, explicitly. Eventually, we may turn
this into a context manager.
Change-Id: I18eeeff7df800bafce91a1e5c98c469aa3bcc41b
Task-number: PYSIDE-535
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 3c3595e1e196204bfaec8c5f82db7f0fc84a1702)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
allow-thread is unrelated to exception handling.
Amends 099f3f46ca9ec1362f211278df4b3e4949b0a339.
As a drive-by, rearrange the allow-thread such that "Unspecified"
is 0.
Task-number: PYSIDE-931
Change-Id: I8cea3e6428ec1feecc358042e54e5a8185ddfbfa
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 8daf85c871384db7a130415578873e73f3c04d84)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The snippets that were used to get the return from
a QFileDialog modal call was blocking, so we explicitly
allow threads around the C++ call.
Fixes: PYSIDE-1792
Change-Id: Ifb06e8726fece6a9b8248bc91e7616101a8a99a2
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 9b4d1f76128bc46a5ea85d33ce67f81029b8017e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
| |
This allows for the reverse lookup, helping with error messages
and debugging.
Task-number: PYSIDE-1766
Change-Id: I8d2a9db246e306042af34522c245fb11c151e892
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 60a797c9959a6ae3e18b68b7ff06ffad0a2c6f5e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a basic __repr__ function to QEvent that shows the type enumeration
value. For QtGui, use the debug operator from qevent.h for the relevant
events. Add a generic template for using QDebug with module name.
[ChangeLog][PySide6] __repr__ functions for some QEvent-derived
classes were added.
Task-number: PYSIDE-1788
Change-Id: I02aca4c98cf3ebd69558103c7d23660d1eb840fb
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 3706622525261e10c4f8eaeecd977de7e455b8f5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The function setUnifiedTitleAndToolBarOnMac is called
without self prefix.
Several imports were missing.
This is probably a macOS code path which was untested.
Change-Id: Idf96aea668f3822377e4deda74b53b18db150038
Task-number: PYSIDE-535
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 71e5e26e4e3379f5560ff3299122c9109a661cce)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
| |
A variable "database" had to be "QFontDatabase".
Task-number: PYSIDE-535
Change-Id: I7ccc6c51bdc071cdcfba7cb77fa93773a059f14c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 093ee507f5ea71d76fd762bec6cbced93d29399d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
| |
Task-number: PYSIDE-841
Change-Id: I2c3f9b22a3c1fdc6ddbdd7f08db38db613274cfd
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit d898e002380e2b8808592b6e0e05c689e1b37bd8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
| |
This example contained the ":=" operator which is not
allowed in Python 3.7 .
Task-number: PYSIDE-535
Change-Id: I848c16456807a7a56bdfd80f7cf74e3a86e24e94
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 935ccfefad7f78d56d61d3791ecb0a8491f72052)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds an extra check to see if __code__ is present.
As mentioned in PYSIDE-1755, Mocks are callable objects without __code__
attribute, unlike Python Method or Functions. However, a Mock also has
im_func and im_self attributes. We made the assumption __code__
would be present if im_func and im_self are present, and this makes it
fall under the category of a compiled method.
This patch makes an extra check to see if __code__ is present. If it is
not, then the Slot (here Mock) is considered as a callable method.
Task-number: PYSIDE-1755
Change-Id: If7e8f52dfb2409cd856eec0d0b41891d751d8a69
(cherry picked from commit 56f66f128566bd08f027fee46bb42a6c4f57a26e)
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A list entry was used as-is in a join expression
without converting it to a string.
This was found while testing examples with PyPy.
Task-number: PYSIDE-535
Change-Id: I4fa2f1cc10f3eb8027966a1946a940458d1526d4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 26774f8b2c07b0475dba18b14eca382715cd9789)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
| |
This was found while testing the examples with PyPy.
Task-number: PYSIDE-535
Change-Id: I75296f314c4411427cfd8bc509f242cd754dde91
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit e536b0469ffc9e834dbb6bc116feb570f930367b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add enum Loops to QMediaPlayer
(qtmultimedia/23333fb4be2293ceaf129fec134ea687a30596d9)
- Add enum RotationAngle to QVideoFrame
(qtmultimedia/7fa8e82f1dcef6e983fbf25d7c07a1bc86957fea)
- Add enum AudioChannelPosition to QAudioFormat
(qtmultimedia/83e9c2d8c3b278bae81a6060cc1657a95250f1ee)
Since the changes appear in 6.2, too (due to Multimedia
being a tech-preview), add a pick-to.
Task-number: QTBUG-95010
Change-Id: Ie91250de143e8a77c2251aa25ab4c7665e4e8843
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit d7dcd28764ab0a52f82a6ab09dd9e5337a915148)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The multimedia module in 6.2 still receives new API
(due to Multimedia being a tech-preview). This requires
checking by patch version.
Change-Id: I49e2ae746fdae10893ab4155e464a25ae8fcef6c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 7ac3b61a28c6b8decf681ce1975e7afa1f42e692)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Newline characters in conjunction with <insert-template> cause empty
snippets to be added. Add functions to purge them.
Task-number: PYSIDE-1766
Change-Id: I534de369b45c4e785a643f6539a5c7fb395909f2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 26a1b40e4fa878a11995528dcf04158b44477477)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
conversion rules
Introduce new parser states and handle it accordingly
in </native-to-target> and </target-to-native>.
Use it in the sample tests.
Fixes: PYSIDE-1766
Change-Id: Id00dd3ad65799c497b008499c02fbf7ee2e5f856
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit c1e64f5e5583ba6e9e36bf54327747018a2541bc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Value types with some protected constructors (like
QOperatingSystemVersionBase in 6.3) caused compile errors on Windows
where the protected hack is disabled since non-accessible constructors
were used.
The check for isValueTypeWithCopyConstructorOnly() needs to be fixed
to exclude protected constructors in case AvoidProtectedHack is set.
Similarly, the visibility of the minimal default constructor needs to
be checked. Add the AvoidProtectedHack setting to ApiExtractorResult
for this purpose since it influences the API in a way.
Change-Id: Ifeab320b9391aa21c5b1de4d21d2d8276fe44d3f
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit ef2223f3d712e5f66c4654f7bce2011869ef958a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce flags representing generator options and pass
AvoidProtectedHack besides UsePySideExtensions.
Move AvoidProtectedHack to the Generator base class for this
purpose.
Change-Id: I170b5ace30057c4074d73afce3f88d086eb54775
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 676c6641d1bda430876e49c92d7814b60b35f885)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce a helper returning a parser state depending on the element
stack and building on that, a helper which returns the code snippet to
append to. This is used for character handling and <insert-template>.
It also allows for removing StackElement::InjectCodeInFunction,
which was a fake element for remembering that the code injection
targets a function.
Also, add all type entry code snippets directly to the type entry
instead of temporarily storing them in StackElementContext::codeSnips.
Use the latter for conversions only and rename it accordingly.
Task-number: PYSIDE-1766
Change-Id: I291ec2db58687fdf63c124ddde26165f8eb09856
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit b4ffbed19625bbf468c660a6dcc35a1101b8791b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Returning a reference from TypeEntry::codeSnips() allows for some
simplification.
Task-number: PYSIDE-1766
Change-Id: I85bdd57ef3523083a95dbbafb36d8caf84282e03
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 2b7da99972845e11fc9506b0fe2832b65d4b3ab6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
| |
Task-number: PYSIDE-1774
Task-number: PYSIDE-1717
Change-Id: I7aa2a39e3d768fcbbec953720c8e89824df9f916
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit bb46bd69207e7ad3479d0b89750385a294144174)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
| |
Similar to ebf0259817956bf8932fb8f25e7ac90e6a7d7501.
Task-number: PYSIDE-1773
Change-Id: I93f36fc3203936d0617aa25085f3513df79ac97b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 0647cc71285d7245ceb803dfed4af24d9642277e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
| |
Remove some star imports.
Task-number: PYSIDE-1773
Change-Id: I42e3034ae91bdc5779b6ed632fe4f5d234f060b0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 2511282c895d048f7eadb633219dea6f4d4d5b14)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the ElementType enum to be a global enum class
and replace the linked list of StackElement in the parser by
a stack of the enum.
Fix a broken parent check for inject documentation.
Task-number: PYSIDE-1766
Change-Id: I0d80713bcff3f6a7077998aae91841bb0785a7e5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 197dc883975b46742cb0dc8a0e2b2028f66ceefa)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
| |
It is not needed since the parent pointer is preserved in m_current.
Task-number: PYSIDE-1766
Change-Id: Iafe1f55e413f04b59b77c3c337dd913e14d22f86
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit a4618cc05784019760800e80e816f2c70acc0ce5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
StackElementContext
The type system parser currently has 2 stacks (StackElement (per XML
element)/Context stack (per type entry, for most types except function
and smart pointer)). Aiming to change StackElement into a simple stack
of XML element enum values, move the type entry member into the
StackElementContext. This requires some changes ensuring a
StackElementContext element is pushed for all type entries.
As a drive-by, use a QSharedPointer for the context stack, removing
the need to delete entries.
Task-number: PYSIDE-1766
Change-Id: I2dce728184c1f51e4ee17bef1d77083deabccfde
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 611971d74349d1f9355f8934f079e9b54c360f5a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Declare the operator and output conversion rules of argument
modifications.
Output code snip fragments and template names.
Task-number: PYSIDE-1766
Change-Id: I56de33a2a56eee2fa357c5dda89cc391c99b76f9
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit f01e3e2bcc78222144c0279a8bfac274f8054d2f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
| |
These type system elements cannot be nested, so, there is no need
to have them in a stack.
Task-number: PYSIDE-1766
Change-Id: I4c51a4a9d5dc20eb528086a7fa6108fada6b0a9b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit ebd6f9fca7d7fd3390f48159b6c4c860ac823381)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
| |
The 'PointConfiguration' enum was missing, disabling the generation
of all the methods that were using it.
Fixes: PYSIDE-1770
Change-Id: Id64889e8058dfdf2d5b7734c767d24bad1fa8d08
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 921c72d47add58014b5d37797cff361b2dda4581)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
| |
- The 'class' attribute of the tag is made explicit on what each value it takes mean.
Task-number: PYSIDE-1766
Change-Id: Ib7ebe1cde81df09e40eafccca7bdf4d70307b90d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 4f92f707796f61466b208d2278e74c8a520d3c92)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
| |
Rename TemplateInstanceEnum to InsertTemplate.
Task-number: PYSIDE-1766
Change-Id: I3876833c56c0cda067d187444b2bd761411fce8e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit bd0e0bdec184ae9f8e82a2c5e5101faf9be1db83)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"custom-destructor"
As a drive-by, remove the union from the internal StackElement class.
Add an Unimplemented value to the Element type enumeration. which
requires making it 64bit.
Task-number: PYSIDE-1766
Change-Id: Ib869558a80b362b582427bc7cd1679bcd55d3433
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 18c5fc884ae5a93df197e9ec2abd9e949f0d2300)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There seems to be a problem with signals with object type parameters.
Change QWebEngineCertificateError and QWebEngineFullScreenRequest
(gadgets) to be value types.
Fixes: PYSIDE-1768
Fixes: PYSIDE-1769
Change-Id: I9863f9e26a9a7bf7751369057fcad6eb10798817
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit ec07828d7734f0cb8c957824c998de1b67d89a03)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
| |
- Analogous example in C++ - https://doc.qt.io/qt-6/qtwidgets-tools-regularexpression-example.html
Task-number: PYSIDE-841
Change-Id: Id88824d444b2429bc2325832c4c92fb7a2d107f6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit a9469c1c245943dfd4f14ae55e1f2282756d31fb)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generate bindings for reserve()/capacity() if the container
supports it.
[ChangeLog][shiboken6] Bindings for reserve()/capacity() were
added to contiguous opaque containers.
Task-number: PYSIDE-1605
Change-Id: I82dd2efc4a1831600aa2fae9427e5d13a67cdd11
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 683314b3491dea17f0205baa2976e71595ccb05d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix:
- sources/pyside6/doc/tutorials/debugging/qtcreator/qtcreator.rst:2: WARNING: Title underline too short.
- sources/pyside6/doc/tutorials/debugging/qtcreator/qtcreator.rst:21: WARNING: Inline interpreted text or phrase reference start-string without end-string.
Change the syntax highlighting to javascript, since json does not like
the embedded comments of the MS-extended jsonc, fixing:
sources/pyside6/doc/tutorials/debugging/vscode/vscode.rst:21: WARNING: Could not lex literal_block as "json". Highlighting skipped.
sources/pyside6/doc/tutorials/debugging/vscode/vscode.rst:47: WARNING: Could not lex literal_block as "json". Highlighting skipped.
Amends d727a69e2f58be167845b8179edf1735df6ccf1e.
Task-number: PYSIDE-841
Change-Id: I171c57e4a7f787559022fbbb14a7eb7bb9f1a91c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 4a8b8e3dc45f1067a7f75e5f7ce95d8e639d530a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use a context manager to fix warning:
c:\Python310\lib\subprocess.py:1067: ResourceWarning: subprocess 7844 is still running
_warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Change-Id: I6e3ebf584974f8a2d3776847b13fe092d3d4be4a
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 5925ccb54b818e9dfc0766480683d232f95e6965)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On macOS and a custom Python built, the "install" option
crashes with an import error.
This is a timing problem, because an import is triggered
when it is already being processed. The problem is hidden
by the use of virtualenv.
[ChangeLog][PySide6] The move from distutils to
setuptools caused a racing condition with certain
Python builds.
Change-Id: I4dcda2b083234e88c272a1794388f6d0e7b8f0e5
Fixes: PYSIDE-1760
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 981ffb345928cf740a5b751aaef43a266d077d13)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
| |
This was a wrong condition that checked for the true_property
flag, but not the actual existence.
Change-Id: I9fa4c7a9c907f23fd15405fe5d747060dddfc6d0
Fixes: PYSIDE-1757
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 159adca779f67afcbe669d298572fb0ea57a4236)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bytes)
In order to make the AudioSource example available in Python, the following functions
were properly exposed to Python.
- normalizedSampleSource(const void* data) const in QAudioFormat
Previously, Shiboken took care of exposing these functions on its own. The fix here is
to use PyBuffer as the counterpart for const char* in the Python side.
The patch also consists of the working AudioSource example. Currently only the Push Mode
works. Inorder to make the pull mode work, the function writeData(const char* data, qint64 len)
should be properly exposed from C++ to Python through typestem, without code duplication.
Task-number: PYSIDE-841
Task-number: PYSIDE-1743
Change-Id: I1cd2c28136836c9bdf1021693f74e59eb98f390b
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 0c62b3c2fc974d0c652d905a1268f3d0f74a330e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, the Tetrix example used the old camelCase style method
names. The `.setShape()` method in the code was not changed to reflect
the swap to snake_case which caused errors.
`.setShape()` has now been swapped for `.set_shape()`
Fixes: PYSIDE-1732
Change-Id: I9876ceb53043cbce2e452326fe8fdb4f47e87e79
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 68fc31e0304c3cdf33aef5ad3e13786362496c59)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|