aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* type hints: Make the error messages more verboseChristian Tismer2025-02-271-1/+1
| | | | | | | | | | | | | | The --pretty switch shows a little context. If that does not help, we will have to send the whole PYI file back from CI. Task-number: PYSIDE-2846 Task-number: PYSIDE-3012 Change-Id: I45a4111c6ea78bf6c487077c43eb37b946602ec8 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 3b7a6766ccef2696bc0f4debbc5f849bea64d021) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve type annotations, first stepEce Cinucen2025-02-279-31/+34
| | | | | | | | | | | Import Callable, Iterable and Sequence from collections.abc, since using them from typing is deprecated. Task-number: PYSIDE-3012 Change-Id: I131c00005df410fdaa40b338a2a728512269aaa0 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 00a5b350ec3d6f552ad0753d9c8fdbde4464d9ad) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve type annotations, fixing old Python versionsEce Cinucen2025-02-272-2/+30
| | | | | | | | | | | | | | | | | When trying to change typing.Sequence to collections.abc.Sequence the remarkable incompatibilities with certain Python versions came up: Python < 3.10.1 or Python 3.9.8 produces wrong annotations. Solution: The inspect module needed patching. Change-Id: Ifdf4990477ea7478c0027c899d21d1848a83c807 Task-number: PYSIDE-3012 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f351f1e572d2712c735a361b08e45eeb4149f25f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* type hints: Fix Slot() type annotationEce Cinucen2025-02-261-1/+1
| | | | | | | | | | The restricting type annotation for call function in Slot class is updated to more flexible one. Task-number: PYSIDE-2846 Change-Id: Ic26ebb42bb6bfe4f4d0455125ac92b3552c62d06 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 34b812b6495681d088ce3294a709f25085f6ed87) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* type hints: Print erroneous PYI files for COIN supportChristian Tismer2025-02-251-1/+21
| | | | | | | | | | Reason: We cannot find an error which happens in CI on Windows 11, only Task-number: PYSIDE-3012 Change-Id: I8f2e4c56ee8c81e8d3b348c624be5df80d5df275 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit b6952b833e1ec336607fd909320d35c5ca74a2a5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* libshiboken: Fix a Windows warning about inconsistent linkage of ↵Friedemann Kleint2025-02-252-28/+0
| | | | | | | | | | | | PyImport_GetModule() Remove libshiboken's copy of PyImport_GetModule() since it has been added to the stable API as of Python 3.8. Change-Id: I176e755814f85aef5febe69ca1dba5e39f68a43b Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 35d6756f07cd529f2a3672dd6787e03affc3bb6f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Remove obsolete rejectionsFriedemann Kleint2025-02-242-4/+0
| | | | | | | Change-Id: I0780ee2f7f5f42a9281f4add3818109628df8332 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit b8fcad197ca245dc63914f7ab743599ac9bf97c0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Fix compiler warningFriedemann Kleint2025-02-241-1/+1
| | | | | | | | | Amends f07b4bbf23417cd6e92e99a2a480575c4cf6d0ab. Change-Id: Ib4d8c1431157fad199a396134c1f7bc648fba871 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 0e69d59054a239a34ea91ced897dce622c7c0a88) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken tests: Move more injected code into snippetsFriedemann Kleint2025-02-242-321/+316
| | | | | | | | In the remaining code, use nullptr and streamline. Change-Id: I3c58aaef3a6cdd332ba2e32e0bcb2c17e32f0244 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 796449242bec9640b8475fbef9f85a521b501b3d)
* shiboken6: Shortcut the meta type comparisonFriedemann Kleint2025-02-211-2/+2
| | | | | | | | Task-number: PYSIDE-2701 Change-Id: Ie678829aade1182f3de94de56cb82508b64c385e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 12b28a5275906b4b8c24a865f1317584d2ad12c7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Add a file cache for the type system snippet readerFriedemann Kleint2025-02-2113-159/+265
| | | | | | | | | | | | | Add a file cache caching a small number of files with a convenience API for retrieving lines and regexp-delimited snippets. This avoids re-opening snippet files several hundreds times during building. As a drive-by, fix a broken doc snippet. Change-Id: Ic468dbff755285456034a176e4d3eae348dcbf15 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit f07b4bbf23417cd6e92e99a2a480575c4cf6d0ab) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Change some templates to be snippetsFriedemann Kleint2025-02-217-117/+112
| | | | | | | | Brush up the code and remove unused templates. Change-Id: Ic9a0a6fb941e0d110124df7f02b2fc3c91664656 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 6cf2051c7cab923e7acd47901917480e92feec4e)
* Fix QCanDbcFileParser parse function overloadsEce Cinucen2025-02-205-1/+60
| | | | | | | | | | | | Add the overload-number attribute to parse function to execute first QString check and then QStringList. Test for parser added. Fixes: PYSIDE-3017 Change-Id: I7e5a02fec50405bc3d71c5662a7909d34f4d20df Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 4cc90374fca5cacc0d85cac937cfa29b7e70ed44) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Remove some unused templatesFriedemann Kleint2025-02-203-59/+0
| | | | | | | Change-Id: I9530a1b3f2b315a91fbc8d0885a46640c73c4f2a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 73a83e3247ca26bc26e23f2a8de9cfed3998e7d2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtWidgets: Use the new sequence templatesFriedemann Kleint2025-02-202-19/+8
| | | | | | | | | | Use templates introduced by e3631c3322d28447068de3a874055ff937b237c4. Task-number: PYSIDE-3002 Change-Id: I5b7948c83768fa0c03c6b360717d202270ebbc9e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit d7021af1b27177a38f72fa0b2febd5233309d786) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix the type of the "result" parameter of the native event filtersFriedemann Kleint2025-02-201-4/+4
| | | | | | | | | | | | It has been widened to qintptr in Qt 6 (qtbase/3b38c)3c7ffa71c00c172cf0e05742835a304300). Pick-to: 6.5 Task-number: QTBUG-72968 Change-Id: I17846607108b29527415c97bbaabe2acecf9bac0 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit ad264fec1a8d345fc5e6e8f8d4e1c4ebbf815a6c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix disconnecting a string-based connection by passing a callableFriedemann Kleint2025-02-202-10/+69
| | | | | | | | | | | | | Amends cab304e70cce68bbdaa70d7f7b2bf6e95e85e6d2. Restructure the test. Fixes: PYSIDE-3020 Task-number: PYSIDE-1057 Change-Id: I8954a534648ded5d476fec608d0699132a026461 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 96e016d95d8e37eb76492ab45dc454767ccb21b6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove XML template typesystem file opengl_common.xmlFriedemann Kleint2025-02-205-40/+3
| | | | | | | | | | Use the existing code snippet for glGetString. callArrayFunction appears to be unused. Change-Id: I7eeff9866bc7b4eb6e0f9bb409ae0382723c96c4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit b59ccba17fd448b679936db70ba026f898e5554c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Silence some shiboken warnings about internal QtQml/QtQuick typesFriedemann Kleint2025-02-192-0/+2
| | | | | | | | Task-number: PYSIDE-3011 Change-Id: I92fde30427d6fc8572f1d65e267809c1255b0d31 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit cab7ca5fd2d5966d1d8f8b8057bd71da19ca7777) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix overriding QPaintEngine virtual functions taking a C-style array of ↵Friedemann Kleint2025-02-194-10/+296
| | | | | | | | | | | | | | | | | | | geometry primitives Add argument conversions PySequence<->C-style array, modelled after QGraphicsView::drawItems(). Move some templates around to the common template file and add generic conversions for lists of value types. [ChangeLog][PySide6] The virtual functions of QPaintEngine taking a C-style array of geometry primitives have been fixed. Fixes: PYSIDE-3002 Change-Id: Ife8fed0e17c79091f25f57bf97bcca438452e177 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit e3631c3322d28447068de3a874055ff937b237c4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Improve documentation on modifying argumentsFriedemann Kleint2025-02-192-11/+38
| | | | | | | | | | Describe where the conversions are used. Task-number: PYSIDE-3002 Change-Id: Ib11669aadec9ab6c711cd36183e68d6fcd324122 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit c72a3dc83eb88831748caa0ba2ce234b20d0efe0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Improve message about being unable to generate binding callsFriedemann Kleint2025-02-183-5/+21
| | | | | | | | | | Make the message more verbose and print some reasons. Task-number: PYSIDE-3002 Change-Id: I7b617395f562ad52d3621e8890f0742c36eb94b5 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 42f5dc1b56322b946d6cf87a07d67452f91d2231) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* binary size: Improve the benchmark toolChristian Tismer2025-02-171-18/+29
| | | | | | | | | | | | | | | | | | | The benchmark tool now uses per default the limited API but is becoming more flexible. This will take some more checkins until it comes to convergence. The starting point stays 2025-01-27 right before a substantial change which is otherwise not measurable. The switchable size reductions will slowly vanish. The difference approach makes then no longer sense, and the --absolute switch will become the default and vanish. Task-number: PYSIDE-2701 Change-Id: I990ef26860924c10784a70ec74a2a318b4be7d41 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f4127d19b3fa4235c9f4780a8379864f5fdb9f0e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* libshiboken: Fix some clang-tidy warningsFriedemann Kleint2025-02-147-44/+39
| | | | | | | | | | | | - Use auto* for pointers - Remove duplicate includes - Use rang-based for - Remove superfluous inline - Use of std::string_view::data() (may not be null-terminated) Change-Id: I663d630ad151526ad13546ad079d70635ff1e43d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit aa9b918153a1414a10c48e996e8a36eccd94140b)
* shiboken6: Fix crash when looking for base classesFriedemann Kleint2025-02-131-2/+3
| | | | | | | | Task-number: PYSIDE-3011 Change-Id: I531c7fe0a5f79aa1fee8039a4c438c70cfa7fda2 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 75fbea983e04cff477716d9cb119b1638c22d719) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Add QFont.Tag(str), QFont.Tag.fromString(), QFont.Tag.fromValue()Friedemann Kleint2025-02-133-1/+61
| | | | | | | | | | | The constructor is a non-type template that checks the string length. Add a function for it. Fixes: PYSIDE-3013 Change-Id: I35626c29edddf38c04c5b913a35b36c540c45d6a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 8f34aaf4df4648de59d74b1b6fe72302f63d89a4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix flake8 warnings in shiboken6 scriptsFriedemann Kleint2025-02-134-21/+18
| | | | | | | | | Task-number: PYSIDE-3010 Change-Id: I2897848ba9001fe996047dbb88ec83c51834b0a8 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit f9736b9c50f69f2c7089d7dd9dccec8284577323) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix flake8 warnings in tutorialsFriedemann Kleint2025-02-1317-56/+55
| | | | | | | | Change-Id: I90fe3e854af90618cc2e450a473110306d651b4f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> (cherry picked from commit 4b6390ae3919e5e24e4b48c127c3af41bd827b9c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* type hints: Fix the removal heuristic in case of QMessageBoxChristian Tismer2025-02-131-14/+20
| | | | | | | | | | | | | | QMessageBox has a little unnormality by the header parser. By fine-tuning the algorithm for removal of ambiguous overloads (positional-only), this error vanished nicely. Change-Id: Ic14973eafc0053696a0302842693c8d4d618269a Fixes: PYSIDE-2997 Task-number: PYSIDE-2846 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 315a7c85a4831c8f9025465fa2e799c2f12a4cd0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* type hints: Replace removal of inconsistent overloads by error ignoreChristian Tismer2025-02-133-15/+23
| | | | | | | | | | | | | | | | | | | When switching to positional-only parameters, a few new errors popped up when overloads had inconsistent methods and staticmethod. This was not perfectly solved by removal. Instead, we keep this inconsistency and disable the MyPy errors. This is not only a misc error, but an overload-cannot-match error follows immediately. Hopefully Qt will drop these mixed cases, soon. Change-Id: If8e9c2cf57f1a44ae7db9985532c191c22d1a64e Fixes: PYSIDE-3003 Task-number: PYSIDE-2846 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit afc83313381817b75c4907755131bc2fc892e828) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix QAbstractSpinBox.fixup() behaviorFriedemann Kleint2025-02-111-0/+3
| | | | | | | | | | | | Add the missing native return value conversion. Complements 6c0a0d70305cd6e12260a352099e74d34f3c239e. Fixes: PYSIDE-3014 Task-number: PYSIDE-106 Change-Id: I7cce422512175dcbf15ca0e9c0a0a3be5dfb93d6 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit af7a0c68c2b008527871ccf4135e29dba502b6b0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* binary size: Move a virtual method optimization out of foldingChristian Tismer2025-02-106-36/+51
| | | | | | | | | | | This latest patch to virtual methods simplifies the handling of overloads significantly and brings the size improvements on macOS from 13.56% to 15.96% (Limited API off). Change-Id: Id8aa20eab3c80c3171a5c1a1b0937315517b7ab9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 6f558a0a515a332bd3f53f0a2481b4b64cd03b13) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* binary size: Move the first example of folding into ShibokenChristian Tismer2025-02-103-6/+36
| | | | | | | | | | | | | | | | | The first example of the folding effort was extracting the end sequences of wrappers into three functions. This gives about 2.6 percent of savings. Since size measurement is now absolute, there is no reason to keep this in folding any longer. This brings size improvement on macOS to 13.561305% Task-number: PYSIDE-2701 Change-Id: Iec958f95a7b0b6f341001d306301fe52fedefa29 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 9fdca2340a6bf6eade9add9cdbf971fa292ee822) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* binary size: Update the benchmark tool to absolute measurementChristian Tismer2025-02-071-9/+26
| | | | | | | | | | | | | | | | | | | After sizebench.py was used successfully on relative changes (with a disable switch in the code), we now add an absolute mode. This way, we can stop to support switching. The starting point is 2025-01-27 right before a substantial change which is otherwise not measurable. The new mode is activated with --absolute / -a It works much faster since it compares against a constant. Task-number: PYSIDE-2701 Change-Id: I341a23722a304473e92f8ef38c6d16b3b69a8a92 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d7756f432f86b9e28addcce017dfcb141fd8a30a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove old example address bookEce Cinucen2025-02-0510-1855/+0
| | | | | | | | | Removed because it was one of the very old tutorials and currently there are many other examples that covers what this tutorial shows. Also there is not a corresponding example on the qt docs. Change-Id: I4be1ef3e27827a19d13d6cbe168fda5e7f8a01c5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 7d5e988428550041ae8194a1830ddafa2166a946) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* snippets_translate: Qualify enumerationsFriedemann Kleint2025-02-044-1/+77
| | | | | | | | | | | | Qualify common enumerations. Add a separate file for this which can be re-used in a migration tool. Task-number: PYSIDE-1735 Change-Id: Ieb30d68de82a509a92e39c40e5c7014afe3aeeb6 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 1ab54625f5e7909b459bfece38023d564a773ac9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Fix some clang-tidy warningsFriedemann Kleint2025-02-0434-151/+142
| | | | | | | | | | | | - Fix invocation of static functions - Use std::any, range-based for where applicable - Use std::make_shared instead of new - Replace QByteArrayLiteral() by literal - Use const-ref to avoid copies Change-Id: Iec864bd6eee8fb06f5afd122084a9e0f551ff8f1 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 96b6c9b816f04e5eb7c34c3c7345a9adbd5d85ea)
* shiboken6: Reduce clang-tidy warnings about #ifdefery in reporthandler.cppFriedemann Kleint2025-02-031-16/+19
| | | | | | | | | Use QByteArrays instead. Change-Id: Iffcc27da2625a3872b8a0a6a16d45997858b1204 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit ecc05e2c3ddd821eb02d3b0bc70fb3e2eced1372) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* libpyside: Fix some clang-tidy warningsFriedemann Kleint2025-02-036-11/+9
| | | | | | | | | - Remove superfluous casts Change-Id: I8dd7cdd1e9d3f30103fc6d87bf04d7f0d0182603 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit e03a1552a701838cc616bcddaa64c8f3509c1753) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation: Various fixesFriedemann Kleint2025-02-033-3/+4
| | | | | | | | | | - Fix spelling and a misplaced anchor - Add note about enumerations Change-Id: Iafb8eaff6140381aeaa705c0d164b72708a00154 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit a5ecb36c75723b9e82de13d712db9060ed6a3753) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* CI: Use COIN_UNIQUE_JOB_ID variable to detect if build is in COINSimo Fält2025-02-032-1/+22
| | | | | | | | | | | The old variable is not exported anymore by CI. Pick-to: 6.8.2 6.5 6.2 5.15 Fixes: PYSIDE-3000 Change-Id: Ide0248348c08bf94dfb5b7fbc2964274e45f7cb7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 8af8424776bb39e7c78fa2075c896f48906b601f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Example: Update simplebrowserEce Cinucen2025-01-307-9/+517
| | | | | | | Change-Id: Iaa596cb568f39cd9395f1a68030fa598b16c0787 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit eb80f8e29a06559c5b2d9c5dbded017a3f1e7039) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Example: Add imageviewer exampleEce Cinucen2025-01-305-2/+188
| | | | | | | | | | Add missing example from c++ (ported qtdoc/09bc4a6861b3a4d0ad1e7dc214b3fe1b6b423504). Zoom out icon for pdfviewer corrected Change-Id: I1633a564e565d8f49892d7b6703d92a556c654f7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 78aedfbbc900f008e02ff73517f4c2b5e07cec30) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Refactor ShibokenGenerator::functionSignature()Friedemann Kleint2025-01-293-13/+15
| | | | | | | | | | | The "prepend" argument is only ever used for class names, make that clear by renaming it and move the writing of "::" into the function. Task-number: PYSIDE-2701 Change-Id: Ic4650692f9b975c885e2bed15541240495c60cc4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 511d1b3ecb0e494239477d02726453a1572b3551) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Use upper case header guards consistentlyFriedemann Kleint2025-01-292-9/+14
| | | | | | | | | | Introduce a function for the guard. Remove superfluous newline. Task-number: PYSIDE-2701 Change-Id: I3167233473ceb012e97b92bc8bd09075f0c3c2c6 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 5ea21774572972ac72821e0bbb7e3ec130b3c3a2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/Documentation: Display "None" enumeration values correctlyFriedemann Kleint2025-01-281-0/+1
| | | | | | | | | | Add a hack to the QtDocParser to modify the value. Task-number: PYSIDE-1106 Change-Id: If09eb7b63ee55b8a8185293f48b41df721d8b560 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 4b7170959008619a2c0c7ba6207478d0c4e746b2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside6-deploy: 5. Add Design Studio project example and testsJaime Resano2025-01-2315-0/+361
| | | | | | | | | | | - Add an example of a mock Design Studio project - Add tests for pyside6-project CLI tool Task-number: PYSIDE-1612 Change-Id: Ida3e469a4d2dab2fa4d8a2e473242faf1716b075 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit d3b2898e196e84d0c170a6c2606b8738804774b3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Yocto: allow LLVM 14 for building PySideCristián Maureira-Fredes2025-01-231-2/+12
| | | | | | | | | | | After the minimum version bump to 18 due to Windows problems, Yocto builds were failing on kirkstone due to LLVM 14 being available. Change-Id: Icf81a91b37d8a4f0dcf0e201e1998a9f22ad6d2d Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> (cherry picked from commit b887919ea244a057f15be9c1cdc652538e3fe9a0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside6-project: 4. Enable building Design Studio projectsJaime Resano2025-01-234-43/+121
| | | | | | | | | | | | | | pyside6-project tool needs to be more flexible to build Design Studio projects. The path where a .qrc compilation output is stored has to be configurable. In addition, a check is performed to see whether the .qrc file needs to be rebuild by looking at the files that are referenced. This avoids unnecesary rebuilds. Task-number: PYSIDE-1612 Change-Id: I8aafd5e66e477bbb360f3cf691d43e12c8866ec4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 658724013cd177123e97bad8fd7c24e639ce2b66) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside6-deploy: 3. Rename project folder to project_libJaime Resano2025-01-2212-14/+14
| | | | | | | | | | | | | | This is a refactor in order to improve the code clarity. In the testing of the pyside6-project command, importlib.import_module is used to import the project_lib folder. Currently, importlib.import_module("project") is ambiguous because it may refer to both the file and the folder. It chooses the folder over the file. Task-number: PYSIDE-1612 Change-Id: I8903ea9d2112cf2eb7a68d0e302d3c74edcf2c22 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 23b7ff61fb899ef8ae305df134d2c0968dce1fa2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>