aboutsummaryrefslogtreecommitdiffstats
path: root/sources
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'v5.15.7-lts' into tqtc/lts-5.15-opensourcev5.15.7-lts-lgplSimo Fält2023-05-2521-76/+120
|\ | | | | | | | | | | Qt For Python Release 5.15.7 Change-Id: I49808098e3ba42be4be438cb3536fc25672c7127
| * Pin qt5#lts-5.15.7 sha1 and update version stringsSimo Fält2021-10-292-2/+2
| | | | | | | | | | Change-Id: I88e86001ba76945e34cf6aed1faf4f0fc1b6f3fb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| * PySide6: Fix QFlags comparison to selfFriedemann Kleint2021-10-282-4/+33
| | | | | | | | | | | | | | | | | | | | The result was set to true unconditionally when self == other. Fix and rearrange the code. Fixes: PYSIDE-1696 Change-Id: I8892d0f6439186d8629c5a24347fc1ce700ecb58 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 9399408fd1e7e12215389a5bf96ae5e4ec38905b)
| * shiboken6: Adapt to LLVM 12.01Friedemann Kleint2021-10-151-1/+3
| | | | | | | | | | | | | | | | | | | | The identifier for anonymous enums has been changed, causing shiboken to no longer recognize them. Task-number: PYSIDE-1686 Change-Id: I4d463132b8bd3fffa0b57f03be6c58ecbae94a49 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1948a1b6f9a3547ba9fba9b8c525eb6e1c6b4f13)
| * PySide2: Fix flaky test feature_with_uic_test.pyFriedemann Kleint2021-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add missing import, fixing: Traceback (most recent call last): File "C:/Users/qt/work/pyside/tqtc-pyside-setup/sources/pyside2/tests/QtCore/feature_with_uic_test.py", line 72, in testFeaturesWorkWithUIC QCoreApplication.process_events() NameError: name 'QCoreApplication' is not defined Amends d57e16a89fb963c7416f6a9875773ac0edbcb032. Task-number: PYSIDE-1626 Change-Id: I25508996c0aa4a12afb6be25bf92e35442c04864 Reviewed-by: Christian Tismer <tismer@stackless.com>
| * PySide6: Fix hang in QQmlApplicationEngine functions with message handlerFriedemann Kleint2021-10-081-1/+8
| | | | | | | | | | | | | | | | | | Add allow-thread. Fixes: PYSIDE-1681 Change-Id: I624979c5845a3366bcd9d7827ff2c77438ec54f3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit b8dadf54c3736b52a770d7715c8320a4dd016427)
| * Documentation: Fix missing signal/slot lists in class documentationFriedemann Kleint2021-10-067-22/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shiboken needs to run with pyside extensions to parse the Qt annoations correctly. Change 62c21af778b7bff6c86e7f89ef03a87efa6c51cb moved the compiler defines from the pyside global header into shiboken. This caused the function type detection to fail in the doc generator since it did not pyside extensions and thus signals/slots were listed as normal functions. To fix this, move the --enable-pyside-extensions option to the base class Generator and add it to documentation's CMakeLists.txt. Change-Id: I70142367ee01839d8e44cbf31e894991cf941197 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 614787bfc8f0210e30beecc0f03c9fe772f9c139)
| * remove QBackingStore from qrasterwindow_test.pyChristian Tismer2021-10-061-26/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The QBackingStore part of qrasterwindow_test.py does not work on macOS. We remove this part of the test that should not even reside in PySide but is a Qt matter. This was first done in Qt 6, but is now also needed in 5.15 since apparently a relevant change in Qt was cherry-picked. Change-Id: I520a5fd1336850d3e3883bcccb9b6a4b2cdafeda Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 35f0aa7be658c6dc5887aad6c38e098e3466ec5f)
| * shiboken6: Fix an invalid static_castFriedemann Kleint2021-09-211-5/+5
| | | | | | | | | | | | | | | | | | | | The argument type is not necessarily a PrimitiveTypeEntry. Task-number: PYSIDE-1660 Change-Id: I312f20e24cfe888d10c218db596d29c3ab318bd6 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit f6e8ba7e9861e29dbd995d984accc79e96a10388)
| * PySide6: Document QUiLoader restriction wrt signal/slot connectionsFriedemann Kleint2021-09-161-0/+8
| | | | | | | | | | | | | | Fixes: PYSIDE-1659 Change-Id: I9025e8454d7153faec8b49f0ae02bf175dae3fd8 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 650d22e26ce4543aa62169c99a0753de7f6891ed)
| * cmake: Fix option --sanitize-address, take twoChristian Tismer2021-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix the macro name, amending 4d63dfffb661115f58cca60c80c4649ba982e01b. This was actually discovered by PyPy bug hunting. Change-Id: Ic71ecf07dc3e03d23fa505d8a3fad3f7b933c354 Task-number: PYSIDE-1655 Task-number: PYSIDE-1033 Task-number: PYSIDE-535 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit df81513945fd40c3ce6b28605ba656f35c814602)
| * cmake: Fix option --sanitize-addressFriedemann Kleint2021-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | Fix the macro name, amending 4d63dfffb661115f58cca60c80c4649ba982e01b. Task-number: PYSIDE-1655 Task-number: PYSIDE-1033 Change-Id: I2d86806dda51091cecebfa4b90ce7d5582b7b197 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit cc7da649aff335ad86c669e3ccb0185738e9d9ae)
| * shiboken6: Fix stack-use-after-scope ASAN issues in TypeSystemParserFriedemann Kleint2021-09-061-11/+22
| | | | | | | | | | | | | | | | | | | | | | Remove stream attributes from the attributes list after the stringview has been dealt with. Fixes: PYSIDE-1655 Change-Id: Ib50b661e93ca164d68981fc3572cc132412f3302 Reviewed-by: Milian Wolff <milian.wolff@kdab.com> (cherry picked from commit f0425d31701d96e8c048b889c9ca8b59e910e043) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| * Fix crash when constructing a QApplication in an embedded applicationFriedemann Kleint2021-08-301-1/+2
| | | | | | | | | | | | | | | | | | | | The check code itself crashed when qApp_last == nullptr. Fixes: PYSIDE-1647 Change-Id: Id8839bf551ad63f6ef2a1a997dabf455d3588c11 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 2c41d10a6a1f6fb7b496fc8c4c59e377b819f634) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | Merge tag 'v5.15.6-lts' into tqtc/lts-5.15-opensourcev5.15.6-lts-lgplSimo Fält2023-05-2526-82/+543
|\| | | | | | | | | | | Qt For Python Release 5.15.6 Change-Id: I7a6874dfca79fbc46f5a6101e713b0c1dde9a640
| * Allow threads for QInputDialog templatesCristián Maureira-Fredes2021-08-171-5/+22
| | | | | | | | | | | | | | | | Fixes: PYSIDE-1639 Change-Id: I14ed08de3ba883650c32b4c2242c54c57624e087 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 9a54b25b35539e0710e0dd00c95267ae7d5c8954) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| * Allow threads in QAbstractSocket methodsCristián Maureira-Fredes2021-08-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | This allows threads in the methods: - waitForBytesWritten(int) - waitForReadyRead(int) Fixes: PYSIDE-1640 Change-Id: I391feb7b5c834574c12e378318d5a39c49a4a75e Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit c7c0d1527085b4038ee39c66910285a83a110735) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| * Bump versin numbers to lts-5.15.6Simo Fält2021-08-172-2/+2
| | | | | | | | | | Change-Id: Ie100f89b542580dfe88e8488c92572f71aa26526 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| * Add fallback case for QSettings.valueCristián Maureira-Fredes2021-08-122-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes a case where the passed type is not a Python type, so we fallback to a QVariant type as Qt/C++ does. A 'TypeError' is raised if the Python type used is not considered. Added a couple of tests too. Fixes: PYSIDE-1619 Change-Id: I5f2e277bb6ccbf9c3a1b23e79717c11ff7635ce5 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 07b93a82afc22760f87a68fa9926dd316c4a0815)
| * feature: fix the UIC switching problemChristian Tismer2021-08-059-3/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The BindingManager::getOverride function computes the current switch state from information of a type object. But the type object must first be updated in case a switch has happened. The solution was an extra update call at the beginning of the function. This solution _always_ works, with or without inheritance, for Python >= 3.7. [ChangeLog][shiboken6] Coexistence of different feature selections works now, especially for UIC files and inheritance. Fixes: PYSIDE-1626 Change-Id: I577331cfb2d7511110d1e16e729bed80985340a0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 9b5fa60d1fed5025e97c393ba1bab80f81ba833a) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
| * signature: make zip file access totally virtualChristian Tismer2021-07-233-23/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the new implementation of an importer for virtual zipfiles, there is no longer a problem with traces of files in the file system. Especially, cx_freeze should have no longer any signature related problem. This version cannot be backported to Python 2.7, but it will work for Python 3 and PySide 5.15 . [ChangeLog][shiboken6] Embedding of supporting Python files is now completely virtual. No FS files are involved any longer. Change-Id: Ifa0942b4476bff95e823505897b867735418ca69 Fixes: PYSIDE-1621 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f7db16f3e9e7a567a3f8993507b701b20addb627)
| * signature: update and make embedding awareChristian Tismer2021-07-212-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The signature scripts needed an update to make them work even when no source files are available. * Access to the license text should avoid source files * Some loader simplifications are possible since Python 2 is gone * The import list for PySide is incomplete * Enforce embedding in COIN mode for better testing This is a preparational step before the zip file access becomes totally virtual. Change-Id: I85e750bb718855f140edac6de34955adbd7843bc Task-number: PYSIDE-1621 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a9de26109fca55154511f5d074c7d9e135b397f6)
| * shiboken6: Fix crashes when insufficient arguments are givenFriedemann Kleint2021-07-211-1/+1
| | | | | | | | | | | | | | | | Checks for the number of arguments were not generated in some cases. Change-Id: If414cdd2eb4190966e847232128600d61a4769f6 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 947a7f5f5d55b6f72b449578d905e9a4b5feb6ea)
| * PySide6: Fix crashes in QObject.findChild()Friedemann Kleint2021-06-303-22/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For all objects encountered in findChild(), a wrapper was created just to be able to retrieve its type object and check against it. As there is a name lookup involved, it happens that non-QObject wrappers are created for this (in the specific case, an enum wrapper), which leads to crashes later on. Refactor the code, extracting a helper function to PySide which finds the best-matching type object for a QObject to check on that. Rearrange the check so that the name is checked first. Fixes: PYSIDE-1609 Change-Id: I026854201f3f6eca9e5905105127f0a4b4588fa9 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 98aef951920641dcdf4c217a0c51626cdf82caf8)
| * PySide6: Add a test for QObject.findChildren() by typeFriedemann Kleint2021-06-301-0/+30
| | | | | | | | | | | | | | | | | | Also test Python-derived types. Task-number: PYSIDE-1609 Change-Id: Ia85a64ffc713c8cbbca0506dd9390f601e206e15 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit ba819888cad86b0cacb2a992f01287b476b29a04)
| * translate: Fix translation for derived typesChristian Tismer2021-06-292-12/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][PySide6] The `tr` function now works also for PySide derived Python class instances with the right context. Qt has a translation feature that works fine on strings that are directly parsed from a Python class. For derived classes, the correct context could not be found. This problem could have been solved by obtaining the calling function name from the frame stack, walking the mro and examining in which class dict the calling function can be found, but this works for Python functions, only. For any function, simply probing the translation result is even easier and always works. We walk the mro, too, but simply use each class name in turn as context and probe by comparison if a translation was done. Change-Id: Ibca9dc0098a3aa26a674b3d5e24ea14e651fe6de Fixes: PYSIDE-131 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit c61141d43fd6e56a52449cbfe6cc13d07f9156bb)
| * shiboken: Provide the correct inheritance for enum types, FixChristian Tismer2021-06-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a missing Py_INCREF on the base class `Shiboken.Enum` when a new type is created. This is _not_ automatically provided (but it _is_ for the meta type...). The error was visible in a debug build, only. Change-Id: I213713535acd1dde71bd8e3a0efe6122119d43b5 Fixes: PYSIDE-1487 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit ddb03b40f311a9c34b599136ac1cb0324f6b2b42) Reviewed-by: Christian Tismer <tismer@stackless.com>
* | Merge tag 'v5.15.5-lts' into tqtc/lts-5.15-opensourcev5.15.5-lts-lgplSimo Fält2023-05-259-15/+40
|\| | | | | | | | | | | Qt For Python Release 5.15.5 Change-Id: Id8648afb982e4f1354257a0b523bc9c6f1acce2a
| * Update version strings to 5.15.5Simo Fält2021-06-162-2/+2
| | | | | | | | | | Change-Id: I36a805bb033ac4fbcad8f1062a5612a803b448a1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| * Add QOpenGLPaintDeviceFriedemann Kleint2021-06-112-3/+1
| | | | | | | | | | | | | | | | [ChangeLog][PySide2] QOpenGLPaintDevice has been added. Fixes: PYSIDE-1090 Change-Id: Ia476a810f65956b73c28b1bed41da87bc28443f3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| * Fix error about not holding the GIL when releasing QImage memoryFriedemann Kleint2021-06-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix: "Fatal Python error: Python memory allocator called without holding the GIL" when running sources/pyside6/tests/QtWidgets/qimage_test.py Acquire the GIL for releasing. Amends a97698f0a5d011fd206db94cf73dba6353f39b29. Task-number: PYSIDE-1563 Change-Id: Idf8dbf857f6dde76f80a78f581dacb3cf5fea16b Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 039776b1af905ab90ab49f6986214450e8099882)
| * Fix crashes when using the QImage(uchar *) data constructors, take 2Friedemann Kleint2021-05-253-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The constructors expect a range of memory that remains valid through the lifetime of the image and may also modify it. Crashes occurred since apparently the Py_Buffer was released before it. To fix this, inject code to increase the reference count and decrease it in the cleanup function. Fixes: PYSIDE-1563 Change-Id: Ic4a47e0f458ed5b59b88813139102a9f1490a9df Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 7079bc4ffc63dd42054014b4b78bff78abed962b)
| * Revert "Fix crashes when using the QImage(uchar *) data constructors"Friedemann Kleint2021-05-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It breaks a use case in pyqtgraph, which expects to be able to manipulate the image by modifying the data. This reverts commit cc011c8980cc4ce02e3d9cceb74ee028c204214e. The helper Shiboken::Buffer::copyData() is left in place since it can be useful for other cases. Task-number: PYSIDE-1563 Change-Id: Ib0d58662a4257a315865436a32e99d9ee6369e03 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 4daaa2edd881865172f19c007c69113bf4afc8cd)
| * __feature__: Ensure that features are not affected by other importsChristian Tismer2021-05-223-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Imports should not touch the feature dict unless they are feature imports. This was a small error in the import logic. (also fixed a const_cast glitch) Change-Id: I16045fffb4b770861ff2efba674667894e0798e5 Fixes: PYSIDE-1548 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 39ba36db0fb8a3c722cb23e02f38abab9c67592c) Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com>
| * PySide6/QtGui: Fix crashes in functions returning internally owned classes ↵Friedemann Kleint2021-05-191-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by pointer Indicate Default ownership, for QClipboard.mimeData(), QTextCursor.currentList(), QTextCursor.currentTable(), fixing: RuntimeError: Internal C++ object (PySide6.QtCore.QMimeData) already deleted. RuntimeError: Internal C++ object (PySide6.QtGui.QTextList) already deleted. [ChangeLog][PySide6] Crashes in QClipboard.mimeData(), QTextCursor.currentList() and QTextCursor.currentTable() have been fixed. Change-Id: I1e4f55856bce8bf951edd8579331f0242e904ae6 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 8cd50636102be2e1178c8c602a3e374891398e3e)
* | Merge tag 'v5.15.4-lts' into tqtc/lts-5.15-opensourcev5.15.4-lts-lgplSimo Fält2023-05-2543-210/+655
|\| | | | | | | | | | | Qt For Python Release 5.15.4 Change-Id: I8457501ba90fc481fb9de686eb8a2f880ecc06cd
| * Bump version string for 5.15.4 LTS releaseSimo Fält2021-05-162-2/+2
| | | | | | | | | | Change-Id: I751fef7ad1f19416313cbd565a02fd5a52723b79 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| * Fix crashes when using the QImage(uchar *) data constructorsFriedemann Kleint2021-05-143-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The constructors expect a range of memory that remains valid through the lifetime of the image and may also modify it. Crashes occurred since apparently the Py_Buffer was released before it. To fix this, add a new buffer helper, copyData() that makes a copy of the data and pass that along with std::free() as cleanup function. Fixes: PYSIDE-1563 Change-Id: Idb09eadea658f02968f75c6bdfc6cc3f467111d5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit cc011c8980cc4ce02e3d9cceb74ee028c204214e) Reviewed-by: Christian Tismer <tismer@stackless.com>
| * Fix crash in QCustom3DVolume::setTextureData()Friedemann Kleint2021-05-142-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | Similar to 3a18da91353a71e801658329c55b170c18bcd824, pass an allocated list to the function. [ChangeLog][PySide2] A crash in QCustom3DVolume::setTextureData() has been fixed. Fixes: PYSIDE-1362 Change-Id: I7dddaf7be33b84b89d66378ec61f6a065f6d71be Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a6dfbb2a72235ecabc7b1d61c085a7d7de3df8d0)
| * doc: make sure '--skip-docs' skip the docsCristian Maureira-Fredes2021-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Even when using the code, some portions of the cmake file in sources/pyside6/doc/ was still being executed. This makes sure everything is skipped if we use the '--skip-docs' option when building. Change-Id: If78b19b9650b61b642e447b8c96b814e82994d7c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit fbbae556c9bf060be366fd578986cae85ff8caec) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| * Property: provide some hopefully exact documentationChristian Tismer2021-05-031-3/+70
| | | | | | | | | | | | | | | | Task-number: PYSIDE-1513 Change-Id: I5817869aaf495f4005c4fda92d15fceafb15600a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 6a06abd970bc55ae3439897a7399c3acbfd5d0a7) Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| * Test bug_686.py: Fix warning about destroying a locked QReadWriteLockFriedemann Kleint2021-04-281-0/+2
| | | | | | | | | | | | | | | | | | | | Unlock in the threads, fixing warnings: QReadWriteLock: destroying locked QReadWriteLock QReadWriteLock: destroying locked QReadWriteLock Change-Id: I484b7947fdcf241fca069c02ecd9e0ff7c20c151 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 8245dd6356dbb0124a7477b16f19e5f031074f85)
| * shiboken6: Fix XML errors when injecting target format (RST) documentationFriedemann Kleint2021-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | In writeInjectDocumentation(), pass class Documentation (including format) instead of just the string to writeFormattedText() to prevent it from running through XMLToSphinx. Change-Id: I6116552fc3ea8f7ddc1cc07d51370f868de97bb3 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit d9b11bb733e3a3e2546634f6792691aaa473be65)
| * signature: silence a compiler warningChristian Tismer2021-04-221-1/+1
| | | | | | | | | | | | | | Change-Id: I648dfaa0049e7ca9bba0b90f6e06ea6e0bda1bd3 Fixes: PYSIDE-1524 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 2f18ab9c93d4fae8d8d7e4d84bd9cd2e7fd22c3d)
| * cmake: add dependencies to rebuild libshiboken embedded filesChristian Tismer2021-04-224-34/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was often a pain to handle embedded files correctly. Often, when embedding was used, one could not see any effect after re-compiling when --reuse-build was specified. This rendered the --reuse-build option often quite useless. The new approach adds dependencies for all involved Python files, and at the same time reduces them to a single list. Fixes: PYSIDE-1536 Change-Id: I6ef36c9ffccd2cd1ac290bb8e879b050f633eaf4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit e641c225d2954cfc5c85e00eda83f5319c84b3c8) Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| * signature: Refine the decision heuristics of result tuplesChristian Tismer2021-04-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Result tuples do not (yet) get information from XML. Instead, they fetch their info solely from the embedded signature strings and information encoded in mapping.py . When a variable is determined as a result variable, it is removed from the arg list and normally appended to the return tuple. It turned out that a special rule is needed: A variable that comes first in the variable list should also be first in the result tuple. This heuristics should be replaced by more introspection. Right now, this suffices as a working fix. Fixes: PYSIDE-1409 Change-Id: Ib65682439e2f678380e0f58a42a36506d0766ddf Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 3506158551488788450498f9b4ffe86375172fea) Reviewed-by: Christian Tismer <tismer@stackless.com>
| * shiboken6: Refactor handling of the brief class documentationFriedemann Kleint2021-04-204-34/+41
| | | | | | | | | | | | | | | | | | | | | | | | Move the extraction of the brief text from the QtDocGenerator to the QtDocParser and store the brief text in class Documentation, allowing for later extraction. The handling for qdoc and doxygen should then be consistent. Change-Id: I86b37ae1c4a92f96508a03f5dbcfb6dc56014382 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 1c4b7ddb0f879909f5d2f9f6207c06dfd2493340)
| * shiboken6: Prevent crashes when registering static fieldsFriedemann Kleint2021-04-154-12/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Registering static fields invokes converters, which can cause crashes for uninitialized types (see also 2ac1870053370e017567ae53e62cd1155a01c88f). To solve this problem, move the static field initialization to the end of the module initialization function to ensure all converters are available. Fixes: PYSIDE-1529 Change-Id: If40c6faf049077db8afcdee2069f4441c21beaa4 Reviewed-by: Renato Araujo Oliveira Filho <renato.araujo@kdab.com> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit af1bdd8447771728321984f87447187f0284db6b) Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
| * PySide6: Fix performance of QPainter::drawPoints(QPolygon)Friedemann Kleint2021-04-141-2/+7
| | | | | | | | | | | | | | | | | | | | | | Reorder the overloads so that the QPolygon overload is checked first before the costly sequence type check of the QPoint list. Speeds up the example from 1800ms to 80ms. Fixes: PYSIDE-1540 Change-Id: I108b0e98c82540703ee80345026ecdc3b55dfd4e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit ef707d2077862933b767bccf17ca0c54f9475de0)
| * TestQSettings: Do not clutter the current directoryFriedemann Kleint2021-04-141-3/+7
| | | | | | | | | | | | | | | | | | | | | | Put the settings file into a temporary directory, which ensures it is cleaned up. Pick-to: 6.0 5.15 Change-Id: Iacab066e1b1da20a8771a844e20751d1e5fb90d2 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 5109bcc49ee907d15c7e9735f8642f15bef90eb9) Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>