aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* type hints: Add some mypy explanations to developer docs6.8.0Christian Tismer2024-10-313-20/+224
| | | | | | | | | | | First attempt to explain a little how mypy errors were treated. Task-number: PYSIDE-2846 Change-Id: I13a0d2b8298d5fd1637d3bca9e2b979c7062b811 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit c37642f241fb21ae81bb7ff8721deb8a423ef0c1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 91c015fdc43bf58c829a043f54b50e3cebabce55)
* setup: fix PySide6.__all__ after the wheel split, amendment 2v6.8.0.2Christian Tismer2024-10-232-32/+16
| | | | | | | | | | | | | | | | | | 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 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a27a9bf413288cbadf64188fe9a8a3fc6a6f1b9c)
* build: Remove build-directory-dependent code from PySide's __init__.pyFriedemann Kleint2024-10-231-0/+18
| | | | | | | | | | | It breaks checks for reproducible builds. Fixes: PYSIDE-2895 Change-Id: Id9a8c00dd7319b6f30c06e30f796e7ee11edc593 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit bdd6a0d5d61aa76c202669ae1c17ef4dfe0b9bde) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 891ea6b9b4a460827f4ea69f728cff45a321ac43)
* type hints: Avoid double # for pyi type specificationCristián Maureira-Fredes2024-10-221-2/+3
| | | | | | | | | | | | | | This was a misunderstanding. Instead of invalidating the comment by "##", it should be fully qualified with module name because it gets really resolved. Task-number: PYSIDE-2846 Fixes: PYSIDE-2903 Change-Id: I2251878123924082de7aea19f31f45a95ffac178 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit d99a314f7cfe7a4572e90aa96e48a86cb4637360) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit a529e73270a46066f99edc6d080d8db3b8ea7d4f)
* Bump version numbers for 6.8.0.2 fix releaseSimo Fält2024-10-222-2/+2
| | | | | Change-Id: I70eed402ce8f27ab5e95dfbc1de19bb4dc30315c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Lazy Init: Support Lazy Subtypes in star imports, amendment 2Christian Tismer2024-10-212-14/+23
| | | | | | | | | | | | | | | | 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 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 9e2d49988876c48ece633446fa031856bd78d857) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit b0d9a41cdfd57db5b44d18f67b663e3d6e0af370)
* Fix condition to allow 3.13 for wheel creationCristián Maureira-Fredes2024-10-212-2/+2
| | | | | | | | Task-number: PYSIDE-2751 Change-Id: Iaf6e914bf798371faf5066f4a2d70fe3e2c124e5 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit a86135803fe51e5702444f8b7dcb2a4dccd3a209) Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix error handling in non-slot connection receiversFriedemann Kleint2024-10-213-0/+13
| | | | | | | | | | | | | | | | | 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. Task-number: PYSIDE-2810 Fixes: PYSIDE-2900 Change-Id: Ife9f156e6752dde7002218d36d369ba68ad595b0 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit e7c2b6ea1645065a64c2385498e7bd452e47c1ec) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit ca28f2c8255c28363f017b8d4bd29e28a12e8322)
* Bump version numbers for 6.8.0.1 fix releasev6.8.0.1Simo Fält2024-10-153-3/+3
| | | | | Change-Id: Iede722b562de713f2f113a947cc71e37321936ac Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* CI: Fix license check instructionsSimo Fält2024-10-152-32/+1
| | | | | | | | | | Instead of defining our own instructions use ones from qtbase. Change-Id: I043a237df497ddebc59921c8e61fa57adc065108 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 2f03d5ca66fc8ed8f508b1ef8795ccb87a64a393) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 56583fa6b920fe8ba3fecb38338f75a64a16537e)
* Lazy Init: Support Lazy Subtypes, amendedChristian Tismer2024-10-153-7/+15
| | | | | | | | | | | | | | | | | 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 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit a5f3828c2c3580d673c9c4f466f71fc93af6966c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 2a2d01399ad837db17cae3c2d00446b88338a627)
* Fix disconnecting from C functions (qobject_connect_notify_test flakyness)v6.8.0Friedemann Kleint2024-10-092-4/+12
| | | | | | | | | | | | | | | | | | | | 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. Task-number: PYSIDE-2810 Task-number: PYSIDE-2221 Change-Id: Ic33af0d5da60589df16ca35c17824da592910a4d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit c866be38d9c14555c897a85e5b51c5e0f8347964) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* build: Deal with read-only Qt installationsFriedemann Kleint2024-10-091-0/+6
| | | | | | | | | | | | | | 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.5 Change-Id: I5cbb02667c3a195ac369bb83ea42e3ba0ea85367 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 39b0b466bf90ff3f0e1634359fbfc9c0e528a484) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation: Fix API pageFriedemann Kleint2024-10-081-1/+1
| | | | | | | | | | Amends 008853632d48752ff4604f6ac2f13fe351ff7139, bc87b5d3319d758827edcdff2798777bcf36ae6b. Change-Id: Ic1d2cb5dc2b19995cd9dfab2311d761d411837e5 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit ab09ee5cfd6e90ae43436220ba39cd890c3d378d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/Documentation: Fix missing classes in QWebEngineCore TOCFriedemann Kleint2024-10-081-3/+14
| | | | | | | | | | | | | 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 Change-Id: I4000082fe179cb248c1f82bf68944bd521d3bbef Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit e38216aba1c4fa50eda41d5e86b9cfe4eb737d76) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Add QWebEngineFrameFriedemann Kleint2024-10-086-0/+117
| | | | | | | | | | | | | 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 Change-Id: Id792a47fa9cc3f3c55eb1e52c06d01e03a104a74 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 5b5d85509cc62f3fc4929a3eba47a2653f04cafa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Re-add QWebEnginePage::printToPdf()Friedemann Kleint2024-10-085-15/+44
| | | | | | | | | It somehow got lost in the Qt 5 to 6 transition. Change-Id: I53eb13b516d51a907cf9dd247a735103ec91375d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 072bbd5e641f0f45654d738690203c07a9b959b8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Update the documentationShyamnath Premnadh2024-10-081-9/+95
| | | | | | | | | | | | | - Add instructions to download Android SDK and NDK. - Add instructions to download the wheels. - Modified 'How to Use' section to include the new instructions. Task-number: PYSIDE-1612 Task-number: PYSIDE-2620 Change-Id: I4d5e4ec634e149288a1f923fe506611dcd09af27 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 7f22cd1d784a44809753cc1b0aba4a3b5d0ca5e4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Cross Compile: Add option to only download SDK and NDKShyamnath Premnadh2024-10-081-13/+33
| | | | | | | | | | | | | - 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. Task-number: PYSIDE-1612 Change-Id: Ife9738f2a10868a639e3a4949db6101b8e4a553c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit de524f258c3980814fbc724ed61816894403fa3f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Add error for Python 3.12+Shyamnath Premnadh2024-10-081-2/+9
| | | | | | | | | | | | | - 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. Task-number: PYSIDE-1612 Change-Id: I94e677a6845f31d71f5a008ce7beda53d25ed0e1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit e558171da3cb5c0b70827259642f4ef005d6c008) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Wheels/Windows: Use updated zip archive with latest msvc redist libsSimo Fält2024-10-081-1/+1
| | | | | | | | Task-number: PYSIDE-2620 Change-Id: I96cffe4dc3b13b495f04875b3e82f99ff7d09288 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 072c2892b7cea034c367f9c4e513b1b4218de5f1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Pin qt5#6.8.0 sha1 and clean version strings for releaseSimo Fält2024-10-083-5/+5
| | | | | Change-Id: I1b1b35c16d54b0feed54d3f1a242fb1356a94fca Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Add QWebEnginePermissionFriedemann Kleint2024-10-072-0/+6
| | | | | | Task-number: PYSIDE-2620 Change-Id: I815941a65c9b96c21f98eab4ef671124d8f410bc Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Add documentation for QWebEnginePage's added functionsFriedemann Kleint2024-10-072-0/+64
| | | | | | Fixes: PYSIDE-2883 Change-Id: I56733c7b2bb3e573084ba0b281ad48e7fc6da5f7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Fix overloads of QWebEnginePage::runJavaScript()Friedemann Kleint2024-10-075-36/+101
| | | | | | | | | | | | | | | | | | | | | | 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>
* PySide6: Move snippets of QWebEnginePage to qtwebenginecore.cppFriedemann Kleint2024-10-074-114/+117
| | | | | | | | | 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>
* PySide6: Add parameter names to QWebEnginePage's added functionsFriedemann Kleint2024-10-073-17/+5
| | | | | | | | | | 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>
* Deployment: Support Design Studio projectsShyamnath Premnadh2024-10-075-34/+200
| | | | | | | | | | | | | | | | | | - 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>
* Deployment: Create pyside6-deploy always in main project directoryShyamnath Premnadh2024-10-073-12/+12
| | | | | | | | | | | | | | | | | - 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>
* shiboken6: Restrict warning about QT6_DECL_NEW_OVERLOAD_TAIL to current moduleFriedemann Kleint2024-10-041-5/+6
| | | | | | | | | | 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>
* Documentation/examples: Show/bundle utils/pyside_config.pyFriedemann Kleint2024-10-043-4/+7
| | | | | | Task-number: PYSIDE-2882 Change-Id: Id3c5e0d934b36b0a1f43069022f7be9060f0ea8b Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* snippets_translate: Replace C++ ++/-- operators by +=/-=Friedemann Kleint2024-10-022-3/+3
| | | | | | | Generate "var += 1" instead of "var = var + 1". Change-Id: Ia9b3b3e4135156ebac8b7d5b1f47c735e2be1458 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* snippets_translate: Fix flake8-warningsFriedemann Kleint2024-10-023-18/+18
| | | | | Change-Id: I91f211639846bb119d696244060f3013c52e59ed Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Handle QT6_DECL_NEW_OVERLOAD_TAIL within shiboken6Friedemann Kleint2024-10-024-10/+52
| | | | | | | | | | | Strip parameters of type Qt::Disambiguated_t similar to QPrivateSignal (see qtbase/0a3ff697380555538a0d035b768ddf10f772b55a). As this becomes more and more common, it saves the work of declaring those functions. Change-Id: I973b47ddcfa3ac40795885da0f4001a95ad108fd Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix build with Qt 6.9Friedemann Kleint2024-10-011-1/+1
| | | | | | | | | | | Fix error: qtdocgenerator.cpp:1751: error: invalid initialization of reference of type 'const QFile&' from expression of type 'const QString' Amends ff283650bd482c2132ce3bac647e109447850cff. Task-number: PYSIDE-2862 Change-Id: Ie38f8b135d138a9d3d4d47496a9eab0f1bd4cb4a Reviewed-by: Christian Tismer <tismer@stackless.com>
* Update API (front page) module documentationFriedemann Kleint2024-10-012-18/+21
| | | | | | | | | | | | | Fix titles and wording according to qtdoc..qtmodules.qdoc (similar to bc87b5d3319d758827edcdff2798777bcf36ae6b). Add the Quick Controls module to the API page. In the Quick Controls module page, add the list of controls/QML types. Task-number: PYSIDE-1112 Change-Id: Ie68e00e8eac9194142e3d1625c72557455bc68c6 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6/Documentation: Add doc-package attribute for QtQuick Controls2Friedemann Kleint2024-10-011-1/+1
| | | | | | | | | | | | For some reason, qdoc generates the class documentation into a folder named doc/qdoc-output/qtquickcontrols. Amends 2ae76e777d7cc8305b515099b24ce5627171b5b9. Task-number: PYSIDE-2620 Task-number: PYSIDE-1106 Change-Id: I91cee9dffc53edd6cbb74953743508f82cde2d3f Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6/signature: Do not expand implicit conversions of copy constructor ↵Friedemann Kleint2024-10-012-5/+6
| | | | | | | arguments Change-Id: Idacdf249506e487e91a178b474ab66b8fe4342b1 Reviewed-by: Christian Tismer <tismer@stackless.com>
* CI: Adapt to rhel update from 8.8 to 8.10Simo Fält2024-10-011-2/+2
| | | | | Change-Id: I9a1c53770423fa9f999e1310aa3bec5682e45dd7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* shiboken6/Documentation: Extract images from the .rst module descriptionsFriedemann Kleint2024-09-302-14/+45
| | | | | | | | | | | | | | | Images referenced in our .rst module descriptions in the "extras" directory (which are usually extracts of the WebXML module documentation) so far only were shown when they were also referenced from another parsed WebXML document, causing them to be copied to the doc/base directory. Add a function to extract them from the .rst document and pass them to the image resolving functions along with the source file path. Task-number: PYSIDE-1106 Change-Id: I8efbca9f6a63e2aea6dc25596c496cb41517bc32 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6/Documentation: Add doc-package attribute for QtOpenGLWidgetsFriedemann Kleint2024-09-301-1/+1
| | | | | | | | | | | | | Amends 2ae76e777d7cc8305b515099b24ce5627171b5b9. As a drive-by, fix a syntax error in the modules list introduced by bc87b5d3319d758827edcdff2798777bcf36ae6b. Task-number: QTBUG-77650 Task-number: PYSIDE-2620 Task-number: PYSIDE-1106 Change-Id: Icfd0d68033405f00df04ab4513b636a8469df9f2 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6/Documentation: Fix a syntax error in the modules listFriedemann Kleint2024-09-301-1/+1
| | | | | | | | | | | Amends bc87b5d3319d758827edcdff2798777bcf36ae6b. Task-number: QTBUG-77650 Task-number: PYSIDE-2620 Task-number: PYSIDE-1106 Pick-to: 6.7 Change-Id: I07604e3fb281fe9441bc69d189600c22f66b44a5 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6/Documentation: Introduce a doc-package typesystem attributeFriedemann Kleint2024-09-2721-22/+101
| | | | | | | | | | | | | | | Make it possible to specify an alternate doc-package for locating the WebXML files generated by qdoc. For example the documentation of the QtMultimediaWidgets module is generated into the QtMultimedia module. This became a problem after the module split qttools/c51980bb0d9658f2ade4de1900d07b08e88cb52d. Task-number: QTBUG-77650 Task-number: PYSIDE-2620 Task-number: PYSIDE-1106 Change-Id: I09ab50f7e3b56c0a7d0f2e94e593a8d5e83b2001 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6/Documentation: Fix WebXML module documentation nameFriedemann Kleint2024-09-271-8/+9
| | | | | | | | | | Complements 752c1161d75f8c01e2c6c6b07ba02e9a62e65b10. Task-number: QTBUG-77650 Task-number: PYSIDE-2620 Task-number: PYSIDE-1106 Change-Id: If6865f2db8ebc8fb40894603c57ec13e7b26bced Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6/Documentation: Add source file to the Documentation classFriedemann Kleint2024-09-276-14/+45
| | | | | | | | | | | This is useful for resolving images. Use it for the module documentation. Task-number: QTBUG-77650 Task-number: PYSIDE-2620 Task-number: PYSIDE-1106 Change-Id: Ib7843541af75aa179ac7d862fc30351f69f550ed Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6/Documentation: Fix resolving images in the overview pagesFriedemann Kleint2024-09-279-155/+287
| | | | | | | | | | | | | | | | | | | | | | After the split of the WebXML output directories by qttools/c51980bb0d9658f2ade4de1900d07b08e88cb52d, the images of the overviews were no longer found by the previous algorithm. To fix this, move the copying of images from the WebXML output directories to doc/base from QtXmlToSphinx to QtDocGenerator. QtXmlToSphinx now merely collects image hrefs and the context and QtDocGenerator later resolves them in one go, first trying to resolve relative to the source documents. The old algorithm resolving by context/module is then only a fallback for rare cases of injected documents. Complements 752c1161d75f8c01e2c6c6b07ba02e9a62e65b10. Task-number: QTBUG-77650 Task-number: PYSIDE-2620 Task-number: PYSIDE-1106 Change-Id: Icd192bf2a9e235c923e3f90a3a5554c2314f94f2 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Documentation: Fix paths to additional documentsFriedemann Kleint2024-09-271-375/+373
| | | | | | | | | | | | | The additional documents were no longer found after qttools/c51980bb0d9658f2ade4de1900d07b08e88cb52d. Add the directories. Complements 752c1161d75f8c01e2c6c6b07ba02e9a62e65b10. Task-number: QTBUG-77650 Task-number: PYSIDE-2620 Change-Id: I57f0eb212dc8b2eae6786135e0fb85b1ac526022 Reviewed-by: Christian Tismer <tismer@stackless.com>
* type hints: Fix a bug introduced by PlaceHolderTypeChristian Tismer2024-09-261-3/+4
| | | | | | | | | | PlaceHolderType is used in QtCore, only. But it is unconditionally inserted into every module without importing which creates errors. Task-number: PYSIDE-2846 Change-Id: I86c6bdf04a089ff755399945b3fa3dee8a6e0bbe Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* type hints: Fix some simple casesChristian Tismer2024-09-262-6/+8
| | | | | | | | | | The __repr__ function should always return str. As a drive-by: Corrected a mypy complaint in layout.py Task-number: PYSIDE-2846 Change-Id: I5722e9e50b72efa4d77b6951e3271c7f536b974e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add missing entries for QtGraphsWidgetsFriedemann Kleint2024-09-262-0/+5
| | | | | | | | | | - Add QtGraphsWidgets to README.pyside6_addons.md, fixing: Warning: the following modules are not in READMEs : {'QtGraphsWidgets'} - Add to to documentation index page. Task-number: PYSIDE-2620 Change-Id: Ida8964f852ae1e9869524ac59a50595b7ee59bb9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>