aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* replace sprintf by snprintf6.3Friedemann Kleint2022-11-142-4/+4
| | | | | | | | | | | The function sprintf is deprecated and easily replaced by the secure snprintf version. Change-Id: I6b97d71ae179f9a6627fd5e39451e7a2f2322497 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 15436a08f9cde34f2594b192314ad842906f9ed1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* _PepUnicode_AsString: Fix a broken promiseFriedemann Kleint2022-11-103-11/+16
| | | | | | | | | | | | | | | | | | | | This function was optimized in an incompatible way. It does not work when the string argument is short-lived. But: It was found that the equivalent function without Limited API does not survive short-lived arguments, either. So the broken promise was still there, but in a different way than assumed ;-) Fortunately, the replacement function PyUnicode_AsUTF8 is part of the Limited API since Python 3.10 and we can avoid this hack. Unfortunately, there is no way to know which runtime-version this will be, and we must wait until Python 3.10 becomes the minimum version :( Change-Id: Id2b1ea3212984a69bef8d71a578825978c59947e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit a8004df5a920e02a783d896af33bb83619492b02) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyEnum: Update list of IntEnum to keep compatibility in 6.4, completionChristian Tismer2022-11-073-2/+4
| | | | | | | | | | | | | | | | | | | | | The list of IntEnum was not including the extra modules. We now installed and checked PyQt6 PyQt6-3D PyQt6-Charts PyQt6-DataVisualization PyQt6-NetworkAuth PyQt6-WebEngine and found two omissions by that. Change-Id: I891d1771bdab6f53b6bd61de09109465fbb31735 Task-number: PYSIDE-1735 Fixes: PYSIDE-2110 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 0cb568acc65e31a050db9121ba9d9e908d5a8855) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyEnum: Update list of IntEnum to keep compatibility in 6.4, additionChristian Tismer2022-11-042-1/+2
| | | | | | | | | | The list of IntEnum overrides has been updated a bit. We adjust this list accordingly to keep compatibility. Task-number: PYSIDE-1735 Change-Id: I20ee82637020d5b26f5acedf5b98b8831e3b7f73 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 7fde6c515363864f0f16edd0f447a61369d09935)
* Fix duplication of values in QML properties of type QVariantListFriedemann Kleint2022-11-011-1/+3
| | | | | | | | | | | Clear the containers before filling them in the standard converter templates. Fixes: PYSIDE-2106 Change-Id: I0e16b1c98cfc5c3c96424cea5ba3f646ccd958dd Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit bacbf691b33a7c3dcc8a6b37a1786f7c9555b9a0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyEnum: Update list of IntEnum to keep compatibility in 6.4Christian Tismer2022-10-312-1/+2
| | | | | | | | | | | | The list of IntEnum overrides has been updated a bit. We adjust this list accordingly to keep compatibility. Change-Id: I253ba37328516bf31cbb086f7ed177f8c7b03109 Fixes: PYSIDE-2104 Task-number: PYSIDE-1735 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f9bdba5135f26ba5862793e84ba495a529a14639) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add basic VS Code configurationAdrian Herrmann2022-10-261-0/+16
| | | | | | | | | | | | Add a settings.json for VS Code with a basic configuration helpful for developing for/with PySide on VS Code. This includes editor rulers and settings to configure automatic unit test discovery. Task-number: PYSIDE-2000 Change-Id: Iefb635d0643ae58d25d4ccc3962e966953a21bd8 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 5055eface884271590464284d23ad55f117d0a5d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* signals: Fix a bug when wrong keyword args are passedFriedemann Kleint2022-10-251-3/+5
| | | | | | | | | | | | | When a wrong argument is passed, the signalTpInit function is left early, leaving self.data uninitialized in the signal structure. The function signalFree then crashes. Task-number: PYSIDE-1603 Change-Id: I97549092198fab206d37643716af3db2d8201cde Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 9a4dc0d17c7f8eef7ed3e34751d8d519fad3c69b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* signals: Prepare upgrades and fixes by re-formattingFriedemann Kleint2022-10-251-47/+53
| | | | | | | | Task-number: PYSIDE-1603 Change-Id: I90c858ed37bd270188a4ac11419fd2cc066204a0 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 9843a5178e7631866398e0c37165ab25be116549) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyEnum: Drop the Embedding of the Enum ModuleChristian Tismer2022-10-256-1154/+4
| | | | | | | | | | | | | | | Since Python 3.6 is no longer supported, there are a lot less Problems when using Python enums. It would be nicer to embed enums because of safety against tampering, but the user complaints will hopefully go away now. Task-number: PYSIDE-1735 Change-Id: If498e397704f9cc2f8cd4114ed448d576669e6fd Fixes: PYSIDE-2063 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 3609308c63ebf1fccc4c035c454977102cd47cd0) Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Finally implement the __slots__ feature in PySideChristian Tismer2022-10-201-7/+19
| | | | | | | | | | | | | | | | | | The __slots__ feature never worked for PySide at all. It was forgotten that __slots__ are implemented as descriptors which are living at the end of the type instance. This was solved for normal SbkObjects and for QApplication as well. Some slight rearrangement of type casts was necessary. [ChangeLog][PySide6] The long missing support for __slots__ was finally added. Change-Id: Ieddb92104ab10e80e564b38e053f280f90d7a6a7 Fixes: PYSIDE-1970 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d58e262b11c278764a390eb863ca6402cdbe60cd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide-doc: Create some developer doc about enum featuresChristian Tismer2022-10-181-0/+159
| | | | | | | | | | | | This is the internal documentation of the flags that can control the enum behavior at startup of a script. Task-number: PYSIDE-1735 Change-Id: Ibe9653de04edf2b73ac199e2dad6f7ddf55716da Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> (cherry picked from commit bc8add553445c94c03a80058575b315ff0fdecbb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide-doc: Move the pep384impl_doc.rst into the PySide treeChristian Tismer2022-10-131-0/+0
| | | | | | | | | | | | | | | | This document is there since a long time, but was never in the normal document tree. The moved document will reside under a "Notes for Developers" section. Please feel free to comment this old stuff, maybe something is no more true or superseded, and you will surely find some style flowers. Task-number: PYSIDE-560 Change-Id: I73c95721932d492159b81e4a2c013294de9f8c06 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 4d1c05cb04ec731893ca855d5ba08a1d3c669ca4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide-doc: Move the signature_doc.rst into the PySide treeChristian Tismer2022-10-131-0/+0
| | | | | | | | | | | | | | | | This document is there since a long time, but was never in the normal document tree. The moved document will reside under a "Notes for Developers" section. Please feel free to comment this old stuff, maybe something is no more true or superseded, and you will surely find some style flowers. Task-number: PYSIDE-510 Change-Id: I4575ada5b3ef325f706bcba54a5bf608dade1f7b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 90289a1be1735cde5fc2471bc599de30bcbefc89) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix a link to feature-why.rstChristian Tismer2022-10-131-1/+1
| | | | | | | | Change-Id: If2f73e1da0722724c83e2fac28ef87d582e3b446 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit e842ae10c2111ad5b3d8adb9c61b7521bad6f823) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix enum to QVariant conversion for the new enumsChristian Tismer2022-10-101-10/+6
| | | | | | | | | | | | | | | | | | Use the existing library function to handle new enums correctly. Amends 20eb4f94c637d20461f1fef16942841803ada909, 66e9e9e0674dff4ac0715faf17bf039eeb287df7 . Change-Id: I93b4ffe60d0386cbeb4a7e84782755e77584dc32 Task-number: PYSIDE-1930 Task-number: PYSIDE-1870 Task-number: PYSIDE-1735 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 5d65d73f2006e94006c999249d88898544850cb4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/macOS: Remove dupl. check in conditionAdrian Herrmann2022-10-071-1/+0
| | | | | | | | | Amends 92943cbb530edb4fd8b7292b3b0ea964d7a6fdde. Change-Id: I33b1ad04da02a30802c8468b24f008a6505684f1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 8e86e4812702e8dd57cac59bfc9068c92e4e25d5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* examples: Fix docstr in async/eratosthenes re:tickAdrian Herrmann2022-10-071-11/+6
| | | | | | | | | | | | In the "eratosthenes" async example, the tick is not actually coordinated between subroutines as claimed, update docstring to reflect this (and streamline code slightly in the process). Task-number: PYSIDE-769 Change-Id: I5f040b558851481355650c08ab15ac10e5b1a88c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 87a9cd7472b7da57f86299dc58f0e24fc30f4878) Reviewed-by: Christian Tismer <tismer@stackless.com>
* examples: adapt widgets examplesCristián Maureira-Fredes2022-10-078-67/+145
| | | | | | | | | | Fixing issues related to deprecated methods, Enums, and more. Change-Id: I07be29601f0ad257f5fcfb0a5bc4891cb7f9648c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 23374ffc4215c2492d52a2d3b34c1dd7af61afb2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* examples: fix errors on sql and chartsShyamnath Premnadh2022-10-072-6/+6
| | | | | | | | | | | | - examples/sql/books/bookdelegate.py - removed drawFocus(). No such attribute exists for the base classes. - examples/charts/lineandbar/lineandbar.py - setAxisX() and setAxisY() are deprecated. The example is now aligned more with the C++ example. Change-Id: Iddf4f27db06ee574e1e849c753577c43224a9dc7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit d157e66967f5749ee9bf207223566215c070217e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix the editabletreemodel exampleFriedemann Kleint2022-10-061-7/+2
| | | | | | | | | | Remove the duplicated signals and fix the signal emission. Task-number: PYSIDE-2070 Change-Id: I6020d0d3b971de699ace9da5332a5e173c1fba8f Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit c27712c48fead285a57bb0ba24186f28f21bcbe0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Fix smart pointers of type <const Pointee>Friedemann Kleint2022-10-064-1/+20
| | | | | | | | | | | | | | | | | | Use the right function to strip the qualifications from the type since <const Pointee> and <Pointee> are treated identically. Fixes a regression introduced by change a262e9bae5dbdef92d5caa0e058a1ad07fa974d3. This is in principle tested in the smart binding test, but occurs depending on the order the types are seen, so, add another test. Fixes: PYSIDE-2071 Change-Id: I838b1ae1dd607095b41018c973093a380f51ab6b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1e4cbb0b1150124943248031dad4ce27503e487d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* examples: Add async examplesAdrian Herrmann2022-10-0610-0/+484
| | | | | | | | | | | Add two examples that demonstrate how to use Qt together with an async package (Trio). Task-number: PYSIDE-769 Change-Id: I1514eecc0a2eb65c6bb493857d901cf8817b7b52 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 493afb7bef94a8c1115a200b64f1df2d3f502591) Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix coin/module_config.yamlFriedemann Kleint2022-10-051-2/+2
| | | | | | | Change-Id: I9f42a8622ebbde9d672beef992572c2dbbd7848f Reviewed-by: Toni Saario <toni.saario@qt.io> (cherry picked from commit f450ea2211fe1745af3a1f1ee1134d37638a248b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyEnum: Relax the Impact of New Enums and Make Everything OptionalChristian Tismer2022-10-016-75/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes every PyEnum feature of PySide optional. It allows to test the whole functionality. Some flags might also make sense for people who cannot use the new enums without modifications. Maybe this should be there for now for internal use, only. The flags for PYSIDE63_OPTION_PYTHON_ENUM are (hex) 1 (True) the default for PySide 6.4, full implementation 2 turn all Enum into IntEnum and Flag into IntFlag 4 re-add shortcuts for global enums 8 re-add shortcuts for scoped enums 10 don't fake shortcuts (forgiveness mode) 20 don't fake rename (forgiveness mode) 40 don't use zero default (forgiveness mode) 80 don't allow missing values in Enum A startup setting of for instance PYSIDE63_OPTION_PYTHON_ENUM=6 should work in most cases, avoiding the fall-back to old enums. Task-number: PYSIDE-1735 Change-Id: I636c4d9f8e671f5185058820605da73f688c16b0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit a4ee46632e19d9031dab36ac33bf78c3a8e7d35b)
* shiboken6: Replace pyIntT() by pyLongT()Friedemann Kleint2022-09-302-14/+12
| | | | | | | | | | | | pyIntT() is a left-over from Python2. Task-number: PYSIDE-2065 Change-Id: I07972d7f15eb5f3b3666e8ed4d9015434b4a9d26 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 4cd7024040534c08850dffd3f4cd25989302ef5f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add missing file mainwindow.ui of the serialport/terminal exampleFriedemann Kleint2022-09-301-0/+162
| | | | | | | | | | Amends ea6a6abd7266900d9b0ceae1b09ce039891ae9a8. Task-number: PYSIDE-841 Change-Id: I23f5c32ef1e9f07b6cc20d44cbb37e12850d4522 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit c431daa37d3a9684d10ba2cd1f130910b65fcc9a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* example_gallery: Switch to UTF-8 encodingAdrian Herrmann2022-09-291-4/+4
| | | | | | | | | | Switch the encoding when reading example-related files (code, rst, pyproject etc.) to UTF-8 to enable special characters and 😊. Change-Id: I6737875bc9b64d069b8adc478912f4ab4567e28e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 81d81baf0ef6c42ebdb6a2b2293d09031ce6dd5c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/macOS: Fix C++ 11 integer types (int32_t, ...) not being recognizedFriedemann Kleint2022-09-291-3/+4
| | | | | | | | | | | | | | | The system type headers were not parsed when Xcode was installed under /Applications/Xcode.app/Contents/Developer/..., causing the typedefs not to be seen and int32_t being handled as unknown primitive types. The array modifications for the OpenGL functions were then not generated correctly. Fix by using QString::contains() for checking. Change-Id: Ia4344599807a9fcc3d4de5bbe850575faace4b3e Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 92943cbb530edb4fd8b7292b3b0ea964d7a6fdde) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyEnum: Increase Compatibility by allowing any int as enum valueChristian Tismer2022-09-292-9/+110
| | | | | | | | | | | | | | | | | This patch supplies a _missing_ function to every (Int)?Enum class that creates the given integer as a nameless enum. The missing object is created on-demand and kept in the dict "_sbk_missing_" for re-use. [ChangeLog][PySide6] New Python Enum/IntEnum now allows for missing values like the Shiboken enums before, increasing compatibility. Task-number: PYSIDE-1735 Task-number: PYSIDE-841 Change-Id: I436b536e0a29337663cc3bca5db4322d9cf0de74 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 1f143f0440a32882587d4919d0855c7a3e2cd67c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Fix some compiler warningsFriedemann Kleint2022-09-291-1/+0
| | | | | | | | | - Do not inject unused functions into qmenubar_wrapper.cpp Change-Id: Iaa077406c91f52ba47ce29534ee2b12bd8c23955 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit ac472b43a0ace04c03c939bc873efb8a18b4e1e3) Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* QtQuick Example: Use QmlElement instead of qmlRegisterTypeShyamnath Premnadh2022-09-271-2/+6
| | | | | | | | | | | - The example used the old way of registering the Qml type using the qmlRegisterType(). This is now updated to use the @QmlElement decorator. This would also make it work with pyside6-qml. Change-Id: I97e5233331f01fcaa58ca8d6ffa9d978d6d31e91 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit c662c744cf91f966dbc072afc6d433dbfed380fb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add the dropsite exampleFriedemann Kleint2022-09-276-1/+319
| | | | | | | | | | It is useful for testing Drag and Drop operations. Task-number: PYSIDE-841 Change-Id: I5cd6fa20542676317223d6acfdc938d286b4347f Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 9463a8fcf78a77305e8a255e5c2f2b68d2b52b6e) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add the dirview exampleFriedemann Kleint2022-09-273-0/+105
| | | | | | | | | | This works after changing Enum to allow missing values. Task-number: PYSIDE-841 Change-Id: I29f145280a19a06a9586c4f240a22dc2a7b2fe19 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit a02fcec1bc05f6bd596be0f9409fb9cd51a18e35) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Document the argument-type attribute of the rejection typesystem elementFriedemann Kleint2022-09-261-5/+8
| | | | | | | | Fixes: PYSIDE-2015 Change-Id: Ia1dc946f03ec6bdbe92fa0ebbe4a73f3a7faafcf Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 4669e8ef08eeb4dc81df04214807e9c4da8fc965) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add the serialport/terminal exampleFriedemann Kleint2022-09-2616-0/+5494
| | | | | | | Task-number: PYSIDE-841 Change-Id: If98b9b5356b325954fde10a712877b64625cf23c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit ea6a6abd7266900d9b0ceae1b09ce039891ae9a8)
* shiboken6/tests/libsample: Fix warnings about unused parametersFriedemann Kleint2022-09-2632-153/+492
| | | | | | | | | | | De-inline most offending functions so that the parameter name is preserved in the declaration. Change-Id: I4eaf9b8691502beda5addcfd7099e3a846d5c1a2 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit b53dd90cb5aff1f47d7cedbb596af33b9cd9c82d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix warnings about unused parameters in codeFriedemann Kleint2022-09-2612-18/+17
| | | | | | | Change-Id: Ie120284b290d22f2786591955465e0334555e658 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 4ea2a8fe3625296ec2dd3037485df3a160058660) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* build system: Disable checking ICU libs for cross buildsFriedemann Kleint2022-09-264-7/+10
| | | | | | | | | | | | ldd is used to determine the location of the ICU libs, which does not work for cross builds. Fixes: PYSIDE-2060 Change-Id: Idbf8c6e9239f4623b7c11c646a616ef44e8c3ecf Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit a96676f96ae6011c26dd58567d993cebe4d9d6cf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Fix warning about not returning a value in all control pathsFriedemann Kleint2022-09-261-1/+1
| | | | | | | | | | | | Move #ifdef around in compilerFromCMake(). Amends 1db8fe5d80496be390e19d31ca9c8b87ed7579a4. Change-Id: I45b3a8fec0eeee289b2983b01d93fa8b09ded88d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 56b91d99cf975407908b9d9b19885c1a01c9a384) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/test: Fix warnings about implicitly generated assignment operatorsFriedemann Kleint2022-09-2316-56/+58
| | | | | | | | | | | | | | Fix warnings like: warning: implicitly-declared constexpr Pen& Pen::operator=(const Pen&) is deprecated [-Wdeprecated-copy] by removing definitions of copy constructors/assignment operators which are equivalent to the default generated ones or spell out the special methods were needed. Change-Id: Ie7cb335707f8bdd297b0ceea969909bc809016d7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit f419206841764323c244bf91051b2878451c17b6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* build system: Fix standalone build with --no-qt-toolsFriedemann Kleint2022-09-212-2/+4
| | | | | | | | | | Patch the binaries only when tools are enabled. Fixes: PYSIDE-2060 Change-Id: I75b2949e23a2d6cbfebcd64dfec7ab43e978881c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 3fb8c260142c1bc928de40a6d063dd91bba33b8d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation/patch_qhp.py: Strip the module from the indexFriedemann Kleint2022-09-212-1/+17
| | | | | | | | | | | | | | This makes the index actually useable since it is then possible to find a class by starting to type the name. The downside is that there is a conflict with the Qt names if the C++ documentation is installed, too. Change-Id: I231a90025b2777fe8ff23fcc9dd669722dcd922e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit fa38984e53a7a325fd317822f75551379763b810) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* snippets_translate: Fix handling of operator new, take 2Friedemann Kleint2022-09-213-3/+24
| | | | | | | | | | | Change e48dce39c1450e73f7cdef58cfeba29e1c3b8be3 introduced a bug appending "()" to member initalizer lists "m_member(new X()),". Fix that by using a regexp to loop through the expressions. Change-Id: I6ce095749bcab74e92fb6dd630f25fb9fd517cc5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 68883026da79c4f380411237731d761429760c23) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* snippets_translate: Handle more qualifiersFriedemann Kleint2022-09-211-9/+7
| | | | | | | | | | | Use a set instead of regexps. Change-Id: If9c05fffd4f5ebb880d21cd24fafc0be5698ee66 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 2a3c2d88940e44c658e1a54e9834765683c127ff) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyEnum: write about new Enums and Forgiveness ModeChristian Tismer2022-09-202-3/+165
| | | | | | | | | | | | | | | | | The new Python enums are described in detail and the similarities and problematic differences explained. Then the forgiveness mode is introduced, showing that most incompatibilities can be ignored, although this mode is not encouraged for new code. Task-number: PYSIDE-1735 Change-Id: Ib0d28745ce430a97a84e52522a5aa0cbbe3f3581 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1aeb58db3d0ee70946572ead7f0cf75537f87b78) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* snippets_translate: Handle "new" without parenthesesFriedemann Kleint2022-09-162-1/+3
| | | | | | | | | Change-Id: Ic50c175fab1f362c4c15e12f78e5ec440784e20c Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 37dcc13a8389f2f9a76376538b48007a39cf7147) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove the ported Python examples pages from additionaldocs.lstFriedemann Kleint2022-09-151-110/+0
| | | | | | | | Task-number: PYSIDE-2056 Change-Id: I934cb1d593de1d9d56e94f7335bc6c5b3da696a3 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 8b0517769f05153e2a41b1206bf3f0db7d2bcbe1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation/patch_qhp.py: Brush up scriptFriedemann Kleint2022-09-133-27/+40
| | | | | | | | | | | | - Fix flake8 warnings - Warn about errors - Move line processing into a function for further extension - Make file a positional argument Change-Id: Ice191b8b78ff3a151581066ae0fc493ecb54fb64 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 3b31a65a76de7f29f32c27201b35f5f3c17d14e5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation: Sort the modules page alphabeticallyFriedemann Kleint2022-09-131-57/+40
| | | | | | | | | | | | Remove some duplication introduced by b81f75fa027076a65747109f2d8ddd9bd904d7dda. Change-Id: Iadc1c25ed63120ef360581c5565e72e20b3a996f Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit 888b78ad9a2ddebaceda76b3d8f6cc80567b623f) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>