| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
| |
Change-Id: If52e8d2cc1f59c1793bc9edee798a2ec5c5a8fad
Fixes: PYSIDE-2576
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
| |
Store the source location in the clang parser so that it appears
in the message. Also add the access level.
Change-Id: I9a9ca414a41a3fa4584dd55d580aa01bb252f9c7
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Check on the exit code, not on the presence of warnings
on stderr to determine failures.
Amends 9bbbb29809ec7552698680a40e20ec271d929c67,
cb4d09368dd3719e3e17afa07020c4d41fb03100
Pick-to: 6.6
Task-number: PYSIDE-1106
Change-Id: I092b5f991c1bb114a1d51f73bd833da5aedaeda8
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Do not use the %S-formatting directive when an error is already set,
since that will invoke str() and thus cause an error.
Amends d7aa15abe25bd71ea19180743ce9b41e0b788520.
Task-number: PYSIDE-1275
Change-Id: I1125ca254efdeeb3652d6171d71f3e22fb686a7a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Amends f2db4487f5902d47496bc9c00896f81566d3b59a.
Task-number: PYSIDE-1106
Change-Id: Ibcc229d28e797235b7d62a471d1ff51917c59d80
Pick-to: 6.6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
This modifies our requirements in order to use a forked
version, including the option 'collapse_navbar' for the theme
in order to avoid long build times.
Change-Id: Id0f144d19927f481f254397babb95693c131bdc3
Pick-to: 6.6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This introduces a new python script that will spawn
many qdoc processes to improve the performance of the
current sequential, single-process, qdoc call.
To avoid problems with the references, two calls
are required, one with '-prepare -no-link-errors'
and one with '-single-exec'.
Pick-to: 6.6
Task-number: PYSIDE-1106
Change-Id: Ia6e7e937b9db886c1150bd1e804cc9f06563687d
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
When developing difficult stuff like Lazy Initialization,
it is convenient to have an option that ignores PYI generation.
This way, translation can be successful, and pyi generation
can then be debugged.
Task-number: PYSIDE-2404
Change-Id: I68bd10af3754de3988556c4558d1331564f5dadb
Pick-to: 6.6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
With the use 'py:class' sphinx directive for the
API reference page, the page title is styled differently.
This makes the title smaller than the section that
follows after the title. This change bumps the font-size
of the title and the theme selector icon.
Change-Id: I35f387044564776b74f500cc8e8c04801ea82abf
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
[ChangeLog][PySide6] QObject.disconnect() now returns False instead
of raising an exception for non-fatal cases.
Fixes: PYSIDE-1275
Change-Id: I860b69e1a7055c38f903ffafd7f816575c0d1f7a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
Using PepType_GetSlot() as is requires adding ugly casts. To work
around, add a new file with convenience helper functions in C++
linkage. This also allows for using templates for tp_alloc.
Task-number: PYSIDE-560
Change-Id: Ia50a226f5b545861f885d600445b91b4e11713c5
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
snippets
PyTypeObject is not exposed in the stable API; accessor functions
should be used to retrieve the slots.
Task-number: PYSIDE-560
Change-Id: Ic6573f16929b9e88fcff0c37134ba7c08d072eb9
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
The test is crashing on Windows due to a missing import.
Pick-to: 6.6 6.5
Change-Id: Iec366a236c72185b2768c4d08a4eb2b7c982e237
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Examples that work on Android are tagged Android.
- Clicking the tag lists all PySide6 examples supported in Android.
- sphinx-tags package added to add blog like tags to examples.
[ChangeLog][PySide6] Examples supported on Android are tagged `Android`
in documentation
Pick-to: 6.6
Task-number: PYSIDE-1612
Change-Id: Ic4ea2c63756d060aeea85b0088da9ae248eda24e
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
[ChangeLog][PySide6] QQmlEgine.singletonInstance() has been added.
Pick-to: 6.6
Change-Id: Ib1b48df49ca8a183dba415a04f414903f58e435c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Pick-to: 6.6
Fixes: PYSIDE-2574
Change-Id: Ifa583c9a8ce13f1bdafe4621cb8d1cf5f8d35f79
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
It is needed For the QIcon::ThemeIcon fields.
Task-number: PYSIDE-2497
Task-number: PYSIDE-2537
Change-Id: I11d94c150dfa614797038e56cd37128bf3e88cff
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Checking the local rst files, we had some issues
related to repeated links, bad syntax of code-blocks,
invalid levels, etc.
Pick-to: 6.6
Change-Id: I94d64d9cca5142833640f30299d1ad32b568f7ad
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
The shutdown_default_executor function was updated with 3.12 to include
an optional timeout parameter. Update the function to handle this
timeout parameter.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: I48b94d640e9940dee84097010fdf1505c82855af
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Most QtAsyncio tests are slow because they sleeps. Shorten their
durations across the board by using shorter sleeps. E.g., this reduces
the duration of the queue test from about 16 seconds to less than 6.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: I5072bb71fbe28509427fb92390584ec1a4d1a128
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Tasks are supposed to be awaitable objects. Fix a leftover from an old
misunderstanding of tasks vs futures very early in the development
process.
Pick-to: 6.6
Fixes: PYSIDE-2561
Task-number: PYSIDE-769
Change-Id: I916d6e235c5e67ea0d03f1df3b1bf8dfd8cb9c83
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
A task that is awaiting a future must also cancel this future in order
for the cancellation to be successful.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: I22a9132fc8506e7a007fe625bc9217f0760bdc6b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add implementations in QAsyncioEventLoopPolicy for get_child_watcher()
and set_child_watcher(). Child watchers are deprecated since 3.12 so we
don't need to bother with their logic, we just don't want the linter
warning.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: I5178e9f6e8d5915741ed3cb65b3432699cba86d0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Programs started with QtAsyncio.run() were not terminating correctly in
some scenarios. Add a keep_running argument to distinguish cases where
the program is supposed to end after a coroutine finished and those
where we want to keep the event loop active.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: I87857bac7c55aa68c0e273fb0ecf94848d8c2bae
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
| |
Change-Id: If35518869590758df52c2ee6b334336aa864ffa7
Pick-to: 6.6 6.5 6.2
Task-number: PYSIDE-1586
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Just a few minor mypy fixes.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: I4d67270c779606ea2f352a3fddd82941c9118bec
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a documentation page for QtAsyncio. As a pure Python module, the
build process is different from the other modules, as we don't want
shiboken to run for it - all we need is a simple rst compilation.
The "Copying docs..." step of "ninja apidoc" (see
sources/pyside6/doc/CMakeLists.txt) copies the entire
sources/pyside6/doc directory recursively into the build directory.
We can tap into this to make sure the rst will be in the correct
location for the sphinx compilation step.
Pick-to: 6.6
Task-number: PYSIDE-769
Task-number: PYSIDE-1112
Change-Id: Ia03a2a4505d745ca052f0edb529e85a8bfb9d552
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The overloads taking a uchar * data argument were generated using the
converter for uchar, causing warnings:
qbytearray.h:639: There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive type 'const uchar *' of argument 1 in function 'qCompress(const uchar * data, qsizetype nbytes, int compressionLevel)'.
qbytearray.h:640: There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive type 'const uchar *' of argument 1 in function 'qUncompress(const uchar * data, qsizetype nbytes)'.
This was never noticed since we have a conversion from PyBuffer
to QByteArray and the overload decisor checks only whether the minimum
argument is satifisfied, so, so qCompress(data,len,level) it called
qCompress(bytearry,len), passing the length as level.
To fix this, modify the argument to PyBuffer as is done for QImage and
give it overload-number 0, so that PyBuffer is checked first without
conversion to QByteArray. Add a test for both cases.
Amends ae51319fa8a7c02642f5d35f5d613c22e9ce8ecb.
Task-number: PYSIDE-838
Change-Id: Ib9b22a24257fcf93ce3458d8514cdda2e4843f64
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
Mention the use cases (most prominently DBus), give some
instructions on how to obtain the signature and link it.
Pick-to: 6.6
Task-number: PYSIDE-2547
Task-number: PYSIDE-2563
Change-Id: I303ef09b26a5fc2c0ab14828aa4996e2055f8b95
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Doc modifications for added constructors were not generated at all.
Extract a helper function writeFunctionDocumentation() for this and
use that from writeFunction() and writeConstructors().
This requires making some methods const.
Task-number: PYSIDE-1106
Pick-to: 6.6
Change-Id: I5c13891d51a4a3011c30cfccc5b5a3ea925e6d9d
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Exclude qshaderversion_wrapper.cpp, fixing:
specialization of ‘PyTypeObject* Shiboken::SbkType() [with T = QShaderVersion; PyTypeObject = _typeobject]’ after instantiation
(apparently due to it being a private class).
Amends 277783b47e704505f19d00dd80f26239082974d6.
Pick-to: 6.6
Task-number: PYSIDE-2155
Change-Id: Iac2f9b151a44a0ef272f35d099c421e437313bf6
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current sphinx setup uses `-j auto`, which spawns
16 different python process running at the same time,
consuming most of the memory. This leads to crashing
the publishing setup as the system runs out-of-memory.
Limiting the parallel jobs to certain no. like in this
change, avoids this situation.
Change-Id: I0b00e563114f56e78a026dd1833435c02e9bc325
Pick-to: 6.6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The function `isolate_warnings` has a problem
when called on a external module.
Seen in `existence_test.py`.
Improve the function to not touch irrelevant modules.
Change-Id: Icb661717b111bd400abb30799fb97f630fdc3297
Pick-to: 6.6
Task-number: PYSIDE-535
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
[ChangeLog][PySide6] QtQuickTest has been added.
Fixes: PYSIDE-2543
Change-Id: I949a0e50a2e522589863ade1e2b2335be580a0d7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-535
Change-Id: I9dc87afba17ceed9bd24c54e468e634155877e61
Pick-to: 6.6
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
| |
Address a fixme-comment in the typesystem file.
Change-Id: I9242a04cab75229480efa81a98dc0bbef9bb4e61
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Replace the extra documents (which get generated into the class list)
by function documentation snippets, so that they
show up correctly under "Global functions".
Task-number: PYSIDE-1106
Change-Id: I6a5c457669f7f1db1f572f131721dc443a7d5c70
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.6 6.5
Change-Id: If89021aa6da7253bbd61a33c1792d0262159e088
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Change-Id: Idd19498383f3a785a6a393ff8e9d07b6d45bb14e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
| |
Fixes: PYSIDE-2558
Pick-to: 6.2 6.5 6.6
Change-Id: Ia606fe3b5734927c296ca89df674ef9cd1615b22
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a QtAsyncio.run() function as the new recommended method to launch
QtAsyncio programs. This abstracts the event loop policy and reduces the
API to one single call. Additionally, this will allow to transparently
replace the event loop policy with a loop factory when event loop
policies are removed in Python 3.15 following their deprecation in 3.12.
More information:
https://discuss.python.org/t/removing-the-asyncio-policy-system-asyncio-set-event-loop-policy-in-python-3-15/37553
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: I59d7eeb81debe92315351995f041caead4f51d8b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Catch keyboard interrupts by catching the SIGINT signal and handling
it with the default handler. Register the handler with the
QAsyncioEventLoopPolicy so that this is always done when using
QtAsyncio.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: I7b35367a50ab03eb014faabf6b6a3b21a6a3cd6c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
For these classes, the qHash() function should be found by
the code model after 9c37876d6f649b3c9bd1411d3c7ffe620786f1a8.
This leaves QLine, for which no qHash() exists in Qt.
Task-number: PYSIDE-1906
Change-Id: If6bd7ebbf015d9b140684bf3b1f4b0a141d3879b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Partially revert bf8a60db4cdbfc3e7c9c98778b219e9c83746d44, which
introduced a helper function converting to QString for Q(Date)(Time)
and QUrl. For these classes, the qHash() function should be found by
the code model after 9c37876d6f649b3c9bd1411d3c7ffe620786f1a8.
Extend the test accordingly.
Deprecate the QString-helper.
Task-number: PYSIDE-1906
Change-Id: Ia210a2210bc6a43991d5b26374039f4e86d0e71e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Use qHashMulti, noexcept and make them inline friends.
As a drive-by, also make comparison for Clang structures noexcept.
Pick-to: 6.6
Change-Id: Ibdcbf3bde90af0fc419bd1640d3f45602f772f9a
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-1106
Change-Id: I28b3fa16f37d0d689956b55caa949307472efda6
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- option USE_PYTHON_VERSION can be removed as an option since it does
not need to be cached. Also, the default value of empty string did
not really work and instead the default value was always set to OFF.
- ensure that Python_EXECUTABLE is found during super build.
- Related d5b56ebb1534a3359f03534a967bbe3cf2a5eb51
Pick-to: 6.6
Change-Id: I2a90a17a738c91117bcd62ff5e25e4ac7b1d2be4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
A number of examples have been removed and the Qt Quick Controls 2
module has been renamed.
Pick-to: 6.6
Task-number: PYSIDE-1106
Task-number: PYSIDE-2206
Change-Id: I63f392c93d9f09edf60aeb3399d239ec995555c3
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using the QTimer.singleShot(msec, context, functor) overload in
QAsyncioHandle already turned call_soon() threadsafe, as that allowed
callbacks to be scheduled from other threads. In order to follow the
API and distinguish call_soon() and call_soon_threadsafe(), the former
is reverted to using the old overload without the context argument,
while the latter keeps the new overload.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: Ib2591f994d082b46fe4ec747e590e4d8eb6ff24e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Add allow-thread.
Pick-to: 6.6 6.5 6.2
Task-number: PYSIDE-2547
Change-Id: I6cb6db502e7dfa72e7b1e9f4eaa5fef0761686e7
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|