| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
| |
- Previously we uses a shell script to manually build and install
Python 3.11.
Pick-to: 6.10 6.10.1
Change-Id: I5bf80402bce83ffc8a09931fcb9ce9d757de94c9
Reviewed-by: Simo Fält <simo.falt@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.10
Change-Id: I9624daa7075f5dcdcf5f3103128fd43d0c1ca72b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
- `regres.in` now requires an API key for requests
- Updated the colorpaletteclient to include the API key for each request
- Additionally, remove unused imports
Pick-to: 6.10
Change-Id: Id7c648b45dfaea19b47daf980834c12c7c388920
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
The @setter decorator causes the property to be recreated with Py_None
set for the non-existent members, apparently due to a long-closed Python
bug (see_property_copy()). As a band-aid fix, check for Py_None.
Fixes: PYSIDE-3227
Pick-to: 6.10
Change-Id: Ib818e9930bd598306270377e26e625bfa9692a92
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Amends fa00d37d891d20f9080afeb2003cdd9675cb86a3.
Task-number: PYSIDE-3138
Pick-to: 6.10
Change-Id: I76a3d54f34ff705abdcb5749a0a06300fd8bd80e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
As change 6a6cf8d6c66e130b541f3d041d0da609f8b97dd0 proved, they
are apparently not used by anyone (except for the scriptable application,
which worked by coincidence using index 0).
Complements 7f69d4d562e1d19efd2c505dceea387a4a87dcfe.
Task-number: PYSIDE-2404
Task-number: PYSIDE-3155
Change-Id: I573af9ebff95f2c245caac055aeab2a5429bdaaf
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Access the type array instead of using a global variable.
Task-number: PYSIDE-3155
Change-Id: If379d4c751604c561d8531ce3fde7dcd32ea4725
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Complements 83be9f6e76b1976050a0f17cb6e1c5ebd288232c
Task-number: PYSIDE-3155
Change-Id: I7aa85b99bfeb4e4ca9a5d0dc83562a60ef94f755
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-3217
Pick-to: 6.10
Change-Id: If23e001b6b7255e02bc80ec13bbe10e1b1f4ce4e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Add a helper function that checks whether to generate the
class and adds the config scopes.
Task-number: PYSIDE-3155
Change-Id: I82aa35d9655ff51220602b9cad94c9c78e851c4e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
- With Python 3.14, the parameter kinds are more strict, meaning after the variadic posional parameter there can only be keyword parameter.
- All the debug outputs showed the correct parameter kinds however registry/existence_test.py continued to fail because of a ValueError.
- This patch works because `replace()` produces new Parameter objects, which clears any hidden internal state, satisfying Python 3.14+’s stricter Signature validation
Task-number: PYSIDE-3147
Pick-to: 6.10
Change-Id: Id10db78d7f1a3c06683a1da378640a8aada34e74
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the loop ensuring the window is mapped introduced by
918cd72f5eaebf56287a5ab0ac2e149ba1617a57, since on Wayland, the paint
event occurs there, causing a hang. This loop is usually used to
ensure a window is in a deterministic state for playing mouse events,
etc, but for paint events it should not be required.
Skip the native event test for Wayland, too.
Change-Id: I2b44dc098873614e2b8d9bc54444917fd4905e9f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Disabled lazy loading is handled in AddTypeCreationFunction().
Task-number: PYSIDE-3155
Change-Id: Iadb7acf9d680f73e7f94c5cec75a6ea926065d43
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
types only
Converters are also created for immutable, internal types.
Task-number: PYSIDE-595
Task-number: PYSIDE-3155
Change-Id: Id5569d4424cea3ff66c9269498caa5b41479e3b9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Make it possible to pass a type in the primitive type logic.
Task-number: PYSIDE-3155
Change-Id: Ib94855c82d1d3d1d18d029158015e386831ec068
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tail code folding was never implemented and being able to turn on
full name generation for member functions does not make much sense.
Split helper returnWrongArguments() into overloads for global
functions and member functions for clarity.
Remove the then usused overload callInheritedInit() taking a
const char *.
Task-number: PYSIDE-2701
Task-number: PYSIDE-3155
Change-Id: I42d70e0c8ce2d027c6f303e45f64df45ae64c796
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Replace it by CppGenerator::typeInitStruct() which returns the struct
as well, but without the field accessor. Streamline the generated
code by introducing a local variable.
Task-number: PYSIDE-3155
Change-Id: I4c7cebc5f017efbd088f0afb44633efeafbdc45f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove some superfluous parameters, fixing:
CMake Warning (dev) at doc/CMakeLists.txt:218 (add_custom_command):
The following keywords are not supported when using
add_custom_command(TARGET): DEPENDS.
CMake Warning (dev) at doc/CMakeLists.txt:252 (add_custom_command):
Keyword WORKING_DIRECTORY requires a value, but none was given.
Pick-to: 6.10
Change-Id: I8212fc29241d7843f0708bd91f79976b5890ea52
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
On Linux, it can be helpful to know whether it us using
wayland or falling back to xcb.
Pick-to: 6.10
Change-Id: I4580cc3f5f22139de316e6054818417153661469
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As of Clang 21, Qt code produces many warnings: "qchar.h:503:75:
warning: implicit conversion from 'const char16_t' to 'char32_t' may
change the meaning of the represented code unit"
Exclude them.
Upstream bug report: https://github.com/llvm/llvm-project/issues/163719
More discussion in: https://github.com/llvm/llvm-project/issues/138526
Task-number: QTBUG-141204
Pick-to: 6.10 6.8
Change-Id: I17df5aee49d71701ac55c34274cf7a62aab87d94
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.10
Change-Id: I4978039c0b974cb2f7cce492fd79b5675c7935d6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-3206
Pick-to: 6.10
Change-Id: I31995dfacc40579eb11c51129cc2caf07a201a78
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-3147
Pick-to: 6.10 6.8
Change-Id: Iafc60a785d4b8b3ef1e0fde173181600f32b9f46
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
As of 3.14, the interpreter will sometimes just borrow references and
newly created objects may have different initial reference counts.
Pick-to: 6.10 6.8
Task-number: PYSIDE-3147
Change-Id: I845460202abb95715ebf395b378b81b7790660bb
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a meta type registration for the pointer type.
Complements ad51ac78b6675f8d485b49891d95d2e8876fdab0.
Pick-to: 6.10 6.8
Fixes: PYSIDE-3213
Change-Id: I4c3cc374c1721b26f3924821f94b0c4e48a97aa5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
ShibokenGenerator::cpythonBaseName() is only ever called
for wrapped classes, so, let it take a ComplexTypeEntryCPtr
and remove the code for other types. Remove an unused overload.
Use cpythonBaseName() to get the prefix always and remove helper
chopType().
Task-number: PYSIDE-3155
Pick-to: 6.10
Change-Id: I383625f4650c70af6343f2a65cc36c9832f5e3ed
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A static helper function with postfix TypeF() was generated for each
type. Besides the usage in the generated converter and for overridden
functions, it was used to retrieve the enclosing type for enum
initialization.
The calls from the enum code are removed by adding an enclosing
parameter to the enum function and removing the logic trying to detect
invisible namespaces since the enclosing type is always the right one
even for enums collected from nested invisible namespaces.
The generation of the TypeF() can then be removed for namespace
types.
Task-number: PYSIDE-3155
Change-Id: Ia1c64594e180cf221cd0c416ae67ddab5d99a465
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Amend f73a5a291cd1a3b6f7bbd3f761435dc468771a31 and extend
it to libpyside to avoid dublicate installations.
Pick-to: 6.10
Task-number: QTBUG-141036
Change-Id: I7037c00c2fcdb4bddc51e8240a46ac689d814477
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.10 6.8
Fixes: PYSIDE-3199
Change-Id: Ie77adfb731c5ce78e2587fdb08f339784561b07c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
Fixes: PYSIDE-3208
Pick-to: 6.10 6.8
Change-Id: I9efd58bb58669acc644d9029c169eac6d34dbcf7
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generated modules with visible namespaces nested in an invisible
namespace segfaulted on import because the generated
AddTypeCreationFunction call was wrong since 7accf7c3. It used the C++
fully-qualified name instead of the target language name.
For the added test, this code was generated:
```
AddTypeCreationFunction(module, "VisibleNs", init_bindingsInvisibleNs_VisibleNs);
AddTypeCreationFunction(module, "InvisibleNs", init_InvisibleNs_VisibleNs_ValueType, "InvisibleNs.VisibleNs.ValueType");
```
instead of:
```
AddTypeCreationFunction(module, "VisibleNs", init_minimalInvisibleNs_VisibleNs);
AddTypeCreationFunction(module, "VisibleNs", init_InvisibleNs_VisibleNs_ValueType, "VisibleNs.ValueType");
```
Pick-to: 6.8 6.9 6.10
Change-Id: Ibf88488fd0b9e1fa1cca043a51b215e9791f1816
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- When cross-compiling PySide6 and shiboken6, it tries to find
FindPython which are only relevant to using the
`shiboken_generator_create_binding` macro. This change excludes
those parts when cross-compiling.
Pick-to: 6.10
Task-number: PYSIDE-3138
Change-Id: I550d4949ef2f0464e395f8beb61b9477f693ac3b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
This change updates the function signature to typing.Union[type, str]
for both types and result.
Pick-to: 6.10
Fixes: PYSIDE-3174
Change-Id: Ic034ed725d774d94513d75014499667b6d7acdce
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Put global data into a struct which in the future will exist
per interpreter as interpreters can only share immortal objects.
Task-number: PYSIDE-3155
Change-Id: I45ccaac57b41219bd4bd6a9151f820b00a787b0e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
For some reason, the zstd-compressed one does not work on ARM64.
Amends 5d800060c4b72e4caaceb380952585b5649d3e2b.
Task-number: PYSIDE-2206
Pick-to: 6.10
Change-Id: Iae0e8be64b0cb7fd261003b4884eaaefa27f3510
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 8dea7ef6d3b34cb84278e082a9dc354da0041616)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
| |
|
|
|
|
|
| |
Use the types suggested by clang-tidy.
Change-Id: I2f96d52831fd53140a1bb727e604194afd76f920
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Use the types suggested by clang-tidy without the std-prefix as the
headers are more C-ish.
Change-Id: Icc7a3cbc2133f0073463505104f33ee78d589332
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add an overload of loadLazyClassesWithName() for std::string
to a private header and use that from the converter code.
Complements f134617d69deee9e45e7ba9373b77849769aef01.
Task-number: PYSIDE-3155
Task-number: PYSIDE-2404
Pick-to: 6.10
Change-Id: Idf616ee332cca8a7257b4ab03b62f20290002a68
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Put all global enum data into a struct which in the future will exist
per interpreter as interpreters can only share immortal objects.
On this occasion, refactor and simplify the code.
The initialization sequence remains as is.
Task-number: PYSIDE-3155
Task-number: PYSIDE-1735
Change-Id: Idde868d298e04f0a235cb884d6b5948bf9735ea9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Do not call ShibokenGenerator::cppApiVariableNameOld() from
ShibokenGenerator::convertersVariableName() as the function belongs to
a deprecated code path.
Pick-to: 6.10
Task-number: PYSIDE-3155
Change-Id: I0ef3c34b63b8ce3f6a130944f80f6f11625b3680
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Use the types suggested by clang-tidy.
Change-Id: I0bc80d00e75305423caa4254b1383979e89128ec
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
function
Later, they will be used as a source for per interpreter
arrays.
Task-number: PYSIDE-3155
Change-Id: Ic667db01f3d0a5cf1c7cfa1d32db546cfe37fb70
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Put qApp and the SbkObject type into a struct which in the future will
exist per interpreter as interpreters can only share immortal objects.
Also remove storage of the function results in static variables.
Task-number: PYSIDE-3155
Change-Id: I5e1f12a80e858d2b8f7b5aa5d969f4024f8e3a2f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Later, the struct needs to exist per interpreter as interpreters
can only share immortal objects.
Task-number: PYSIDE-3155
Change-Id: I6d24a82817d91d07f27e101fb9a2b6e44ef02a9b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Set it directly instead of looking it up via converters, which
is a step towards decoupling the converters from the per-interpreter
types and saves dict lookups.
Task-number: PYSIDE-3155
Change-Id: I31a71d1a9d02f1247e04c57de2c2901746221b4f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When instantiating nested subtypes of a type like
"QTimeZone.OffsetData", incarnateHelper() used to look up "QTimeZone"
in the module dictionary to add the subtype to the dictionary. This
caused a recursion with subinterpreters fixed by
fbf59240583d85e4fbc5f66c9de597ece8759ce4.
To fix this in a better way, split the incarnateHelper() apart such that
the enclosing type can be passed as a parameter and pass the main type
from incarnateSubtypes() directly. Also remove subtypes from func map
when incarnating.
Task-number: PYSIDE-3155
Task-number: PYSIDE-2404
Change-Id: Ib578743332ac03dd120724a776c7edca4b381037
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The decision whether to create a derived meta object class parsed from
the Python type in MetaObjectBuilder was based on comparing the class
name to the base meta object (the Python parsing must not be done
when creating a meta object for a plain wrapped Qt type).
This led to mixups when base class names were identical which is
possible in Python.
To fix this, split apart the code path not requiring Python type
parsing (called from the wrapper code when initializing wrapped Qt
classes) and expand the code for Python derived classes into
initQObjectSubType().
Fixes: PYSIDE-3201
Pick-to: 6.10
Change-Id: Id62e7dc9b8af16154b161cdbf5dd0d460c55f6f1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit dd65876ece9bc8b1870a5e9cbd91eba20dfcac8a.
The error has been fixed in QtRemoteObjects.
Pick-to: 6.10
Task-number: PYSIDE-3179
Task-number: QTBUG-139845
Change-Id: I6ad0d1b67aa1372e6dc05ce84c8d0be65d37a227
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Adapt the directory structure to the C++ example with the
additional main module, splitting out the TextBalloon class
and renaming the main file to main.py
- Use QGuiApplication instead of QApplication
Pick-to: 6.10
Task-number: PYSIDE-2206
Change-Id: I39a4ba8eb580a23030144b37df91772043ccb6b9
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Remove the exposure slider, adapting to
Adapt to qtmultimedia/c32cd3c02f7eb8f98bc500f0e86c8ce1270eab8e
Pick-to: 6.10
Task-number: QTBUG-124562
Task-number: PYSIDE-2206
Change-Id: Ic3af835b87b0c937c98f7e58f8af9fb7ef531ee8
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|