| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
|
| |
- Add indentation
- Use refs for classes and decorators
- Fix method/parameter listings
Pick-to: 6.8
Change-Id: Iaada9d40e734935d5e56d75fc2a9b1a72da58e33
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Introduce references. Add a note pointing to the Qt.ConnectionType
parameter.
Pick-to: 6.8
Task-number: PYSIDE-2901
Change-Id: Ibed6d439ef536053dc00c1b941b6d0b02f626b95
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Turn it into a proper class documentation, which can be referenced.
Fix the tutorial link.
Pick-to: 6.8
Task-number: PYSIDE-2901
Change-Id: Id09946fc8598ccc0eb9658ae1a8a5cbef102a2e5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Adapt to qtbase/482287debbecf0c4ee9057faed2c17f0e1126b56.
Task-number: QTBUG-69988
Pick-to: 6.8
Change-Id: I9277b74fa9d7cb2029921432cda96bf552d7ccca
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When trying to write a module.__all__ variable without
interference with different runtime folders, this version
uses the __getattr__ support that Python 3.7 has introduced.
This creates the __all__ variable on demand, when someone
accesses that variable, for instance by "from PySide6 import *"
which is the intended use.
amends 703d975f16aff95bc9014a2689a3ae824b5a552f.
Task-number: PYSIDE-1890
Change-Id: Ia4ead5bc7e499573d534ec7237b27ee737590a91
Fixes: PYSIDE-2895
Pick-to: 6.8 6.8.0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This was a misunderstanding.
Instead of invalidating the comment by "##", it should be fully
qualified with module name because it gets really resolved.
Pick-to: 6.8 6.8.0
Task-number: PYSIDE-2846
Fixes: PYSIDE-2903
Change-Id: I2251878123924082de7aea19f31f45a95ffac178
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: Idd43e3263d27217f142b9f484d3053fb0b832677
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
After addition of subtypes support, filtering is necessary
to exclude subtypes from resolving.
Deleting the subtype was a bad idea with an unordered_map.
Better is to use a list of names to resolve.
Task-number: PYSIDE-2404
Change-Id: Ide5b13fbd37bab44881a25d4466ec30c89cd9918
Fixes: PYSIDE-2898
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Extract the error handling code which existed duplicated in
GlobalReceiverV2::qt_metacall() and
SignalManagerPrivate::handleMetaCallError() as a static helper of
SignalManager and call that from the DynamicSlot functions.
Amends 33bd61d13d8d9e3794b6049891be62f3351313d9.
Pick-to: 6.8 6.8.0
Task-number: PYSIDE-2810
Fixes: PYSIDE-2900
Change-Id: Ife9f156e6752dde7002218d36d369ba68ad595b0
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
| |
It breaks checks for reproducible builds.
Fixes: PYSIDE-2895
Pick-to: 6.8
Change-Id: Id9a8c00dd7319b6f30c06e30f796e7ee11edc593
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: I03fd38ffbae1a9a38b8d7efc130c0460da45534f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
download
They should be present when building with -DQT_DEPLOY_FFMPEG=TRUE
or from the Online installer.
Change-Id: Ief39e6825968cba7cf3d4b95d013ee0ab6f0150e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Remove the binaries from the list of filters retrieved from the .7z file.
- Rename copy_qt_dependency_dlls() to download_qt_dependency_dlls()
for clarity.
- Split the artifact list into one containing the Multimedia libraries
and a helper function qt_rhi_artifacts_permanent() for RHI/rendering
related libraries.
- Add a helper function returning whether it is running in COIN
Complements 36f62dd5d45b8b84bd80064ceb43bab74a89321e.
Pick-to: 6.8
Change-Id: I47518c2f1f9abe601c57c85bd1ec30e5ec5d13c2
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
The buildings part was omitted as it requires a license key.
Task-number: PYSIDE-2206
Pick-to: 6.8
Change-Id: I561fb098786d9e894e5102073db3e7d02f66d8f9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-2751
Pick-to: 6.8
Change-Id: Iaf6e914bf798371faf5066f4a2d70fe3e2c124e5
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Testing Mypy on the whole project costs some time,
about 33 s on a Mac Studio Max M1 in debug mode.
On CI with release Windows, this is about 8 sec.
An option "--skip-mypy-test" is added to save time.
The mypy tool is only enforced to exist in COIN.
Otherwise it is optional.
Task-number: PYSIDE-2846
Change-Id: Ibbabbf6b893537ac923fbbaba9ff832ebd675a21
Fixes: PYSIDE-2672
Fixes: PYSIDE-2886
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The augmented assignments are sometimes inconsistent and
flagged as [misc] error.
We are not aiming to fix these, but check and disable the
error cases when they occur.
Also fixed
* two errors by filtering inspect.getmembers (unwanted subclasses)
* two errors by ignoring a QDesigner quirk.
With the help of Friedemann, now all mypy errors are gone.
Task-number: PYSIDE-2846
Change-Id: Ifba8d4ea6dab891cdb0dddae1fec5b5ba774e9e0
Fixes: PYSIDE-2211
Pick-to: 6.8
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are multi-signature functions with identical parameters
which differ in parameter name or result type.
Fix them by removal of the most likely mistake.
As a drive-by, the old fixup_multilines function of parser.py
became obsolete.
Result is from 30 down to 16.
Task-number: PYSIDE-2846
Change-Id: I6777b1f241b4c5e2d7e51af9b19b0e0223f23171
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The multiple signatures suffer from the problem that
many are reported as error, because one larger type
is evaluated before another type.
An Example: PySide6.QtCore.QCborSimpleType is shadowed by int
when int is listed first. That is due to the mro:
int.mro() [<class 'int'>, <class 'object'>]
QCborSimpleType.mro() [<enum 'QCborSimpleType'>, <enum 'IntEnum'>,
<class 'int'>, <enum 'ReprEnum'>,
<enum 'Enum'>, <class 'object'>]
We are implementing a topological sort by mro length that
puts the list into the right order.
Result is from 226 down to 30.
Change-Id: I155e2169c3c8ab4afd5b7bb8f3411ccf6467d440
Task-number: PYSIDE-2846
Fixes: PYSIDE-2687
Fixes: PYSIDE-2886
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
All callables have now arguments.
Task-number: PYSIDE-2846
Fixes: PYSIDE-2884
Change-Id: Ibf6b1d93350304550addbc459c1440bd5cefc057
Pick-to: 6.8
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Under some circumstances, a type 'NoneType' is generated when
calling eval() on a string. This is correct, but is generally
to be simplified to 'None'.
This is extracted from the type hint chain as it is not
related to mypy errors.
Task-number: PYSIDE-2846
Change-Id: Ib705b32a82c46c597c2724092a38a1861319ca16
Pick-to: 6.8
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
PyArg_ParseTupleAndKeywords() can return Py_None for invalid
types in the property decorator, for which getTypeName()
returns "void". Set an error in this case.
Pick-to: 6.8
Task-number: PYSIDE-2840
Change-Id: I98a497df445d9b543dddaa495d85042e00673e78
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
Amends b55e221464c18053fa44f18132071ebdaee8f432.
Task-number: PYSIDE-1106
Fixes: PYSIDE-2893
Pick-to: 6.8
Change-Id: I4a2688bfb5fcdddc5c6baea49d2fdc9c0f2381f1
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
This makes installing them easier.
Amends b55e221464c18053fa44f18132071ebdaee8f432.
Task-number: PYSIDE-2893
Task-number: PYSIDE-1106
Pick-to: 6.8
Change-Id: Ic93a1db34ca778ba1df8065c87e51e64e01c5900
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use PyLong_FromVoidPtr()/PyLong_AsVoidPtr() to pass addresses
instead of converting to size_t, which can cause signedness
issues when using it with the 'n' format of Py_BuildValue().
Split off a helper function taking an address from
address_ptr_to_stringlist(), avoiding a conversion.
Fixes: PYSIDE-2891
Change-Id: I375311fa910a66b776e6355b0664bb5364fbdab7
Reviewed-by: Fabian Vogt <fabian@ritter-vogt.de>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use --include-data-dir to include the QML modules. This would
reduce the command length significantly.
- Additionally, package all the subdirectories of the application
directory. The user may have other relevant resources required
by the application eg: images, fonts, etc.
- Add two new directories for directories to be ignored - docs and
examples. These directories are not required for the application
to run.
Pick-to: 6.8
Task-number: PYSIDE-1612
Change-Id: I6269f77c0fd94a54e3b7a44f317bc144bd68e5ec
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The addition of nested types made it necessary to filter
subtypes out of resolveLazyClasses because incarnateType
should be called for toplevel types, only.
Added a star test to pyenum_relax_options_test.py to
test this case without using extra time.
Task-number: PYSIDE-2404
Change-Id: I4b95c0f65c055376defb6a8e9ea888285c82a8e2
Fixes: PYSIDE-2888
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: Ib753505c12a489ad0db8c941817b6fb0d196ec7d
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
| |
Instead of defining our own instructions use ones from qtbase.
Pick-to: 6.5 6.8
Change-Id: I043a237df497ddebc59921c8e61fa57adc065108
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
- Fix for full documentation build by adding a new cli option
for the output directory.
Pick-to: 6.8
Task-number: PYSIDE-2853
Change-Id: I06d76567364a4fbc37cb3f8d03a2020d93b9e513
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Callables wrapping C-function and their objects (as returned by
"qobject.deleteLater()") may be temporary objects like methods.
For the connection cache key, use self and the actual C-function
as so that a disconnect succeeds.
This did not show in the old design since the disconnect code
did expensive checks to retrieve the slot index of the function
and used the index code path.
Amends 33bd61d13d8d9e3794b6049891be62f3351313d9.
Pick-to: 6.8
Task-number: PYSIDE-2810
Task-number: PYSIDE-2221
Change-Id: Ic33af0d5da60589df16ca35c17824da592910a4d
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Make binaries writeable before patching.
No care is taken to preserve the mode as installing the wheels
creates rwxrwxrwx files when unpacking regardless of the mode set
when bundling.
Fixes: PYSIDE-2885
Pick-to: 6.8 6.5
Change-Id: I5cbb02667c3a195ac369bb83ea42e3ba0ea85367
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Add instructions to download Android SDK and NDK.
- Add instructions to download the wheels.
- Modified 'How to Use' section to include the new instructions.
Pick-to: 6.8
Task-number: PYSIDE-1612
Task-number: PYSIDE-2620
Change-Id: I4d5e4ec634e149288a1f923fe506611dcd09af27
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Add option to only download SDK and NDK which is used for users
of pyside6-android-deploy.
- The download code will eventually be also copied into
pyside6-android-deploy.
Pick-to: 6.8
Task-number: PYSIDE-1612
Change-Id: Ife9738f2a10868a639e3a4949db6101b8e4a553c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- pyside6-android-deploy does not work with Python 3.12+ due to the
a restriction from the 'buildozer' package. This should be fixed in
their next release and we can remove this RuntimeError.
- Additonally modify the help message for --ndk-path.
Pick-to: 6.8
Task-number: PYSIDE-1612
Change-Id: I94e677a6845f31d71f5a008ce7beda53d25ed0e1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.8
Task-number: PYSIDE-2620
Change-Id: I96cffe4dc3b13b495f04875b3e82f99ff7d09288
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Amends 008853632d48752ff4604f6ac2f13fe351ff7139,
bc87b5d3319d758827edcdff2798777bcf36ae6b.
Pick-to: 6.8
Change-Id: Ic1d2cb5dc2b19995cd9dfab2311d761d411837e5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
QWebEngineFrame is used like a value type (stored in QList, etc), but
does not have a default-constructor. Hack around by by adding a
function returning a default-constructed instance using a struct with
the same data members.
Task-number: PYSIDE-2620
Pick-to: 6.8
Change-Id: Id792a47fa9cc3f3c55eb1e52c06d01e03a104a74
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
It somehow got lost in the Qt 5 to 6 transition.
Pick-to: 6.8
Change-Id: I53eb13b516d51a907cf9dd247a735103ec91375d
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The algorithm did not pad table rows below the column count,
which caused the table to be truncated if this happened for the
first row. Rewrite the algorithm to determine the maximum column
count first and always pad.
Task-number: PYSIDE-1106
Pick-to: 6.8
Change-Id: I4000082fe179cb248c1f82bf68944bd521d3bbef
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-2620
Change-Id: I815941a65c9b96c21f98eab4ef671124d8f410bc
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Fixes: PYSIDE-2883
Change-Id: I56733c7b2bb3e573084ba0b281ad48e7fc6da5f7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adapt them to C++, where:
void QWebEnginePage::runJavaScript(QString scriptSource,
std::function<void (QVariant)> resultCallback)
and
void QWebEnginePage::runJavaScript(QString scriptSource,
quint32 worldId = 0,
std::function<void (QVariant)> =resultCallback = {})
exist.
Introduce a functor as static source to be able to share code with other
classes to be added.
Task-number: PYSIDE-2883
Change-Id: I61f913a38e761df18ce5a5f3ea43478b7dceace2
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
The class has been moved in Qt 6.
Task-number: PYSIDE-2883
Task-number: PYSIDE-946
Change-Id: I81ededa9d4eb1fb1a03249266f48cc65c84a6b02
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
As a drive-by, change the callbacks to PyCallable* and remove the
parameter checks from the snippets.
Task-number: PYSIDE-2883
Task-number: PYSIDE-946
Change-Id: I3986d2eced9606c71a3071755dce935b30cd67a5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- new class 'DesignStudio' to handle Design Studio projects.
- Currently uses a way of monkey patching to override the 'main.py'
to use 'main_patch.py' which has the same content but with
'app_dir' set to the parent of `main.py``. The reason for doing this
is that Nuitka requires the `main.py` to be in the same directory
as other resources required for the project.
Once the corresponding patch, to alternate between evaluating
'app_dir' based on whether the application is deployed or called
through the Python interpreter, is merged then this temporary fix
of creating 'main_patch.py' can be removed.
- Add tests.
Pick-to: 6.7
Change-Id: I79e6572bdbbf4576fbdd9039a4922997a22139f8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- There was an issue where if you run pyside6-deploy from a folder
different from the project directory, it creates a new
'pysidedeploy.spec' every time unless you run
'pyside6-deploy -c <config_file>'. This patches fixes this issue by
always creating the pysidedeploy.spec in the main project directory
i.e. the parent directory of the main Python file.
- Additionally, the function 'create_config_file()' can be simplified
since it can never accept an empty 'main_file' argument and the
parameter 'config_file' can be removed.
Pick-to: 6.7
Task-number: PYSIDE-1612
Change-Id: I435f79e7222a55831cddcfbc50e07bc214e24cee
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The warning was printed for each module including the class;
print it only when code is to be generated.
Amends c512b506b565578770c671b11afb78427ca8d012 .
Change-Id: Ie5e3683a646a9634caaaa0a5e90a6f147174485e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-2882
Change-Id: Id3c5e0d934b36b0a1f43069022f7be9060f0ea8b
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Generate "var += 1" instead of "var = var + 1".
Change-Id: Ia9b3b3e4135156ebac8b7d5b1f47c735e2be1458
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|