aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup version strings for 6.0.3 releaseAkseli Salovaara2021-04-071-2/+2
| | | | | Change-Id: Ida2f25efe7ff9d1a18f98b715ca504d55e3e4ab4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Bump version strings for next releaseAkseli Salovaara2021-04-061-1/+1
| | | | | Change-Id: Ibca65269e9debb6571b0b7bea8e5e0124167c573 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* doc: enable snippets translate toolCristian Maureira-Fredes2021-03-26518-40878/+21
| | | | | | | | | | | | | | | | | Create snippets directories in case they don't exist. Add "-q" option as the examples directory to keep the "--quiet" option from the build. Something to consider with this patch: Removing all the previous old snippets, which include not only 'cpp' files, but also '.h', '.qdoc', '.qrc', '.png', and '.qml', which might be used in the snippets, but will need to be updated in the generation tool, to not translate, and copy them over. Change-Id: Icbef9e1c93a12b90dbcfa990ef055ca6f8868407 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 9a4fb2eb72040aeadf6124ec1cad083859ac0787) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix missing doc snippetsFriedemann Kleint2021-03-261-3/+9
| | | | | | | | | | | Ensure doc snippets are copied to the build directory by creating a separate target. Amends 93ae3d9b38649e9d683a658a6a19b7623083f5a0. Change-Id: Idfd3b55e79769fdceda64ee29bffae801eb9055b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit d6611611d65ef4759eda203657300d513f118c86) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve deployment documentationFriedemann Kleint2021-03-224-0/+54
| | | | | | | | | | | | Extend the table by the Qt version. Add some chapter on Qt 6 support. Add some description for py2exe. Task-number: PYSIDE-1112 Change-Id: Ic3a9fb76d9c13017a107f083da4c7ed326d64e5c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 80aec29aca246f1f67a4f8c453b49f1eadfee6fd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Windows: Fix warning about inconsistent DLL linkage of QtQml_VolatileBoolTypeF()Friedemann Kleint2021-03-191-1/+1
| | | | | | | | | | Remove PyAPI_FUNC, which expands to export. Change-Id: Ice042b50044747bc61c6e480ad2d812ca007043b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 3777356c08258f74413187e2406679f3b0c89b07) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve Porting documentationFriedemann Kleint2021-03-191-6/+68
| | | | | | | | | Task-number: PYSIDE-1112 Task-number: PYSIDE-1482 Change-Id: Ic65d86e2567849f26cb28c480937e7fb41ad5856 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 9e02cd78a871f0e1c2dd855433ab750d6fe81c09) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: migrate qdoc approach to document examplesCristian Maureira-Fredes2021-03-1712-203/+1
| | | | | | | | | | | | | | | | | | There were two previous documented examples using the approach based on qdoc: stardelegate, and classwizard. This patch moves them into the 'doc/' directory for each example, and partially revert the changes from 308157f01260c640e21f6972619d3b380c007acb Additionally, an unrelated screenshot was moved to a new general 'images/' directory. Task-number: PYSIDE-1112 Change-Id: I239a24fa4e4f970540857ba8b33b9b13c18142b1 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit d97aedf37809c479ab409c4247b60c0cfcef35d6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: add sphinx-panels to the documentationCristian Maureira-Fredes2021-03-176-35/+124
| | | | | | | | | | | | | | | | | | | | | | | This plugin replaces sphinx-tabs, so that's removed. The panels plugin will add bootstrap responsive cards to the docs allowing us to use them instead of the ad-hoc table we had. Additionally, this changes the example gallery tool too, since the main gallery was built using our own table implementation. Since Panels also provides options to add content in tabs, with CSS instead of JS (from sphinx-tabs), we update the generated examples files. Fixing warning messages related to files that didn't exist, duplicated references, and redundant indexes. Task-number: PYSIDE-1112 Change-Id: Id19be92e72f0a18f63b76daf1898080f3e199626 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 4750fbcb8e5d1f0137a8660ffa77f595dac46504) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix broken return type conversions of QOpenGLExtraFunctions::glGetStringi()Friedemann Kleint2021-03-152-1/+6
| | | | | | | | | | | | | | | The function returns const unsigned char*, which was converted using the wrong snippet (QString conversion of parameter 1). Add a new snippet using the char *conversion of the return value at the end. Fixes warning: PySide6/QtGui/PySide6/QtGui/qopenglextrafunctions_wrapper.cpp:4630:35: warning: unused variable cppResunused-variable] const unsigned char * cppResult = cppSelf->glGetStringi(cppArg0, cppArg1); Change-Id: Iae3f0abd4a34fb3b6a41534508fb5d64a3eae224 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 7cd7141e43e98d4862de3aadf128b0d0080090c9)
* PySide6: Add QOpenGLFunctions.glShaderSource()/glGetShaderSource()Friedemann Kleint2021-03-122-0/+30
| | | | | | | | | | Add a simple signature taking and returning a string. Fixes: PYSIDE-1511 Change-Id: Ie52d5f55f168075ee6ee71fdb35463895f768c04 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit adf0babe9b006034ae10ac2df0fc45df6acb8478) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Add QOpenGLVersionFunctionsFactoryFriedemann Kleint2021-03-124-1/+109
| | | | | | | | | | | Make it possible to obtain versioned OpenGL functions. Task-number: PYSIDE-1482 Fixes: PYSIDE-955 Change-Id: Ife315de0aa05ac83610e228389bcf55214e93e55 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 091f488479227c58fd3944d68c48fc7efe223f9e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* tests: remove old files and rewrite python 2Cristian Maureira-Fredes2021-03-0317-110/+1
| | | | | | | | | | | | Some utilities from the tests directory were still around, and are not currently used. Additionally, there were still some old non active tests with Python 2 directives; updating them in case we reactivated them. Change-Id: I24aff3396041aa780dab94e70793cb62adea2b3c Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit aeed3d2ec76a74ba98441338c235ecc02281e347) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: example gallery show code in tabsCristian Maureira-Fredes2021-03-031-1/+2
| | | | | | | | | | | | | | | | Before this patch, the auto-generated documentation page had all the files from the .pyproject listed one after the other. This uses a new sphinx extension called sphinx-tabs https://github.com/executablebooks/sphinx-tabs which allows us to easily add content in tabs. Task-number: PYSIDE-1112 Change-Id: Ibd66a8c911f05be13ae2700be6d3e95a2b98b775 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a7c7c729a388b0a4e0e104fac1130feb6e03151b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation build: Avoid re-running qdoc/shiboken every timeFriedemann Kleint2021-02-262-25/+39
| | | | | | | | | | | | | | | | | | | | | | The qdoc and shiboken steps take quite a long time when rebuilding the documentation. Similar to the generator dependency on mjb_rejected_classes.log (see CMake macro create_generator_target_library_name / sources/cmake_helpers/helpers.cmake:262)), turn the qdoc/shiboken targets into custom commands producing specific files (qtcore-index.webxml, QtCore/index.rst). This prevents the commands from being re-run as long as the files exist and are not outdated. Adapt the documentation. Change-Id: I00033e6f1034a5fdc534a0f2fee018268e2e482a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1251fb08619e030665651ea965c1ee6c283b9913) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6/Documentation: Fix QmlElement.rstFriedemann Kleint2021-02-151-2/+4
| | | | | | | | | | | Change the snippets to be Python code, fixing: QmlElement.rst:28: warning: Definition list ends without a blank line; unexpected unindent. Change-Id: I98fa640e206199a466fa9aa8b5df3363fe118f69 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a47c2618139fdb5c63e4614fe164a63d30f32fa8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation: Add the modules contained in other qddocconf filesFriedemann Kleint2021-02-151-0/+6
| | | | | | | | | | | This will fix the currently dead links to OpenGLWidgets SvgWidgets in 6.0 and handle the modules new in Qt 6.1. Task-number: PYSIDE-1482 Change-Id: If087b272b3bfd70e726c4f0b86ea679ad7241d76 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 0d43f0eae4071ceffa07ec6c89349fa7942699a8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix the example_gallery quiet option for quiet modeFriedemann Kleint2021-02-151-1/+1
| | | | | | | | | | | | Use the right quotes. Amends 9f8fc934818c3ae7473fe6258056bc7c7bf9f718. Task-number: PYSIDE-1490 Change-Id: I9e5c999747ab96056180692c34c129e399915e56 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 6f6f9495a8f18408fbc233c1d889549fbb8567f9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* fix example_gallery quiet optionCristian Maureira-Fredes2021-02-121-1/+0
| | | | | | | | | | Passing '' was generating an error, so we don't set the variable so we don't pass empty quotes to the script. Change-Id: I672117d43ccd80ca3a625f590556b25a006514c6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f23cbd1c5fd8315569440bcdcd3eee2a30fd0392) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Silence the example_gallery toolFriedemann Kleint2021-02-101-1/+5
| | | | | | | | | | Add a --quiet option and use that for quiet builds. Task-number: PYSIDE-1490 Change-Id: I6b8a3fa159acb85dee5fbc064991a09a9fa6ceda Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 9f8fc934818c3ae7473fe6258056bc7c7bf9f718)
* PySide6: Add the logo as a resource to libpysideFriedemann Kleint2021-02-102-0/+7
| | | | | | | | | Use it in prominent examples. Change-Id: Ifee67802194931bbd56fbe6e6bfa4f3c18fda781 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit ac7365aa78d78a3693c46e2177df3216d0a40628) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: fix responsiveness of the pageCristian Maureira-Fredes2021-02-101-6/+55
| | | | | | | | | | | | Adding some cases to properly show the page on mobile devices. Fixes: PYSIDE-1498 Change-Id: Ia8ee234d09e5246745706f5b6aca29fe31075c04 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io> (cherry picked from commit 19bc892133ada1ceae68eb42ce330e2599e2ec33) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix QQuickItem & co. not working as property typesMaximilian Goldstein2021-02-101-0/+5
| | | | | | | | Change-Id: I562672534124edb5485bd75f84d8f60130173310 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit ad51ac78b6675f8d485b49891d95d2e8876fdab0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: use example gallery tool in build processCristian Maureira-Fredes2021-02-102-14/+13
| | | | | | | | | | | | | | | | This enables the gallery generation tool in the CMake-based process in charge of building the documentation. The old 'index.rst' file was removed, and rules were added to the .gitignore to avoid adding the generated files. Fixes: PYSIDE-1490 Change-Id: I71a5a9e34ce18f42dbc7af8a3e4be65924a79d67 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 75a50de5787fbc14a9183e50b10cd3a57495ec1d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: add tool to generate examples galleryCristian Maureira-Fredes2021-02-091-2/+6
| | | | | | | | | | | | | | | | | | | | | | This script generates a gallery for all the example currently in pyside-setup/examples. Using this tool will overwrite the index rst file for the examples located in 'sources/pyside6/doc/examples/index.rst Additionally, to display the code of each example, this will generate one extra .rst file for each example that contains a .pyproject file, for example: 'sources/pysides6/doc/examples/example_widgets__tetrix.rst' Currently, the usage of this tool is not incorporated in the documentation building process. Task-number: PYSIDE-1490 Change-Id: I78546d4c7905fd8b521f4112457980b4d1d56860 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit e8eac85a5db8386689ffe174694f82c1e5dad854) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6/Documentation: Update the getting started page on doc buildFriedemann Kleint2021-02-091-1/+6
| | | | | | | | | | Mention ninja and how to re-run sphinx. Task-number: PYSIDE-841 Change-Id: Id169da66dcfd09640800da52661dbd842b74f15b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 13e63be261a89ed9c051028225d63a30b1f005af) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: general update and add more informationCristian Maureira-Fredes2021-02-0427-248/+839
| | | | | | | | | | | | | | | | | | | | | | | | | | Updates: * Refreshing the information on installing and building PySide * Adding hyperlinks to some files * Including PySide installation GIF (from Wiki) * Modifying the CSS to improve the code snippets, :command: role, and adding layout for two columns. New tutorials * QTableWidget * QTreeWidget New documentation * Differences between Widgets and QML * IDE information (+ QtCreator GIF from Wiki) * When to use Shiboken * file types explanation * Summary on distributing applications Change-Id: I5195cc5a4af858bb7aad7891d14562ca07b6df23 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit a6c7e9d7fd65946762766e40793ba86291bcca1a) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Bump version strings for next releaseSimo Fält2021-02-031-1/+1
| | | | | Change-Id: I3302d5e9fa42b64e60679c3c51ef5bb7aed1c55e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Fix documentation warning in qmlsqlintegration.rstFriedemann Kleint2021-02-021-1/+1
| | | | | | | | | | Fix sources/pyside6/doc/tutorials/qmlsqlintegration/qmlsqlintegration.rst.rst:65: WARNING: line number spec is out of range(1-145): '130-146' Change-Id: I66b328f03fb69048defd1e1da1dfda8d8c309d96 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 4d7c6e0ac10dc49abb7e7d4ad07503449906f459) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* feature: delete setter after creating property only if standardChristian Tismer2021-01-291-5/+9
| | | | | | | | | | | | | | | | | | | | Some features like QWidget.size are defined by Qt with a non-standard setter name. For size, the standard setter name would be setSize, and in the property creation process this setter would be deleted. We changed rules in this way: If a setter name is non-standard (like resize), the setter will not be removed but still can be used. Actually it would make more sense if "size" was a read-only property. Task-number: PYSIDE-1019 Change-Id: I9ded7e9c1dbd2932aa4c5616385b90ed673bfaee Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit e675a51ce48875800c1f9137cedd49144c62af58) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* signature: Provide fixes and improvements, Part 1Christian Tismer2021-01-226-12/+13
| | | | | | | | | | | | | | | | | | | | The signature module is modified again to be more correct when using the mypy application. This part splits some changes which occurred when working on Shiboken.Enum inheritance. There will be a number of follow-ups: - signatures for all shiboken types - test cases for signatures - signature support for different __feature__ selections Change-Id: Ifb0d92bf7641f2909ab950e3458b3c3c68c20dad Task-number: PYSIDE-510 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 123e27090e0ec4f8d32f301700c9ff9d1b49ba2a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation: Fix creating inheritance diagramsFriedemann Kleint2021-01-221-1/+1
| | | | | | | | | Amends d9f344fcef6bec04a787f9ea9f4ea94f15eaa26c. Change-Id: I14a440c8372b5d0e418161c593bf9093f9010665 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 665f3b2ba6014575185d9209229df35d2d5b9798) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* allow to use shiboken.delete() to delete Q*ApplicationChristian Tismer2021-01-112-2/+6
| | | | | | | | | | | | | | | | | | | | This function should initially not allow deleting Q*Application with a shiboken.delete() function, but unfortunately some competitor can do that, so we will as well. Deletion of qApp needs knowledge about qApp. We add a hook function that calls the pyside function `destroyQCoreApplication`. A special problem was testing interactively. See the error description for the days long journey :) Change-Id: I34862425c2cb2cc80d6cafc22d25a867f96f3e0a Fixes: PYSIDE-1470 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 98aba46414b666c27df3904d2b4313f0a16e05dc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide: write a renamer script for debuggingChristian Tismer2021-01-111-196/+0
| | | | | | | | | | | | | | | Debug output is hard to read if there are many objects with the same type but different address. This script builds simple names instead of addresses which are easy to track. See the info at the beginning of the script. Change-Id: I51e08276d8ffc6d7365ce8620957e64769d7fd8c Task-number: PYSIDE-79 Task-number: PYSIDE-1470 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 8a115fcc3719af509a1abb91805729c06ce38443) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* sources: migration from format() to f-stringsCristian Maureira-Fredes2021-01-0647-115/+112
| | | | | | | | | | This should be the last patch related the usage of f-strings from the 'sources' directory. Change-Id: I0288d720dc4930dee088ca3396a66d1b3ba18f76 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d9f344fcef6bec04a787f9ea9f4ea94f15eaa26c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* feature: Disable selection while creating a typeChristian Tismer2021-01-063-1/+15
| | | | | | | | | | | | | | | | | | | PySide 6 suddenly has problems with feature switching during subtype initialization. We introduce an enable function that can temporarily suppress switching. This problem is solved so far. It is the question whether this will break again in another constellation. It might be considerable for the future to have something like Python's PyType_Ready function. Right now this is too much effort. Change-Id: If0ed786d4761cf2356f01f7478e4a0d750e88d3c Fixes: PYSIDE-1463 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit b6d1b76b46d7b756f7cb01361037e1cb5efc990a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QSetting.value add overload documentationCristián Maureira-Fredes2021-01-051-0/+21
| | | | | | | | | | | | | | | When the new overload to specify a new "type" parameter was included, there was no documentation that could be reflected in our API docs. This adds a paragraph/example for the overload introduced by 78dad8180d797a647645b74255bfc29c46d7264a Fixes: PYSIDE-1466 Change-Id: I843e650f8eb4c32f4c67a31ed5cf9047c4f171f9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 9547dc918868470fe00fafe25d74a87b2ed35f1f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc/tests: update old style printCristian Maureira-Fredes2021-01-0434-88/+88
| | | | | | | | | | There were some leftovers from Python 2 still around our code, this patch only covers the 'print' cases. Change-Id: Icf574be6a40cdb233d3c410c2ec831d2d09bb735 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit b3a8c9898cca52b63d270a54651ec71de9b32238) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* basewrapper: clear all traces of special Q*Application treatmentChristian Tismer2021-01-041-1/+0
| | | | | | | | | | | | | | | | | | | After simplifying qApp so much, it is no longer necessary to treat Q*Application special. We now can allow garbage collection for all objects which simplifies the code quite much. Then it was easy to shrink the implementation to a single function `MakeQAppWrapper`, which made the whole "qapp_macro" files no longer necessary. This cosmetic change will probably not be back-ported to 5.15 . Task-number: PYSIDE-1447 Change-Id: I8ae3c5575e62bd7b5d6bac65c25775c712bb178f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 8998f9c1a9116151b679c61ad36fedcc74cc75a1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Remove misleading doc snippets about QSpinBox signalsFriedemann Kleint2021-01-011-30/+1
| | | | | | | | | | | | The doc snippets were apparently meant to demonstrate how to disambiguate overloaded signals by specifying the type in angular brackets. It no longer applies since the signals were disambiguated in Qt 6. Change-Id: Ie696a40a07319118555fcbf1b092f761dd07befa Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 2de27981d6bf21783da56f62a1458227aa793104) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Remove obsolete enumeration QPagedPaintDevice::PageSizeFriedemann Kleint2020-12-221-1/+0
| | | | | | | Change-Id: Iccef8a419cb710ffe0ba7bb2febeb2302fa5ceef Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit f390df8f323a3a207ebbcedabd9c51c0e575e63f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Remove rejection of namespace stdFriedemann Kleint2020-12-181-1/+0
| | | | | | | | | | | It prevents usage of std::shared_ptr in combination with Qt bindings. Task-number: PYSIDE-454 Change-Id: Ie893a37d1482f12692a0198f9058c887cfa823a9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 9f7741c021e7fb06c3c4f2a1782594951362940f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Add QTestlib's QAbstractItemModelTesterFriedemann Kleint2020-12-182-0/+5
| | | | | | | | Task-number: PYSIDE-1449 Change-Id: I47eab35af461ae8b3bd6fffbb6b882bb0c74d186 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 28ff3f8edc873a993b8f83b1c7789ce17c2778ed) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Adapt to recent changes on Qt 6Friedemann Kleint2020-12-171-2/+1
| | | | | | | | | | | | - Adapt QPersistentModelIndex to qtbase/6bc1a1ec2f630d38d87ff14c8ab4c3fa5eba35be - Remove QList method from QXmlStreamAttributes which is no longer found. Change-Id: I81c7b825b4a6028292b672476908c4317191580d Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 868b3cce85dd07149be5dd416c71d3c700a4f4dc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix building of Qt 3DFriedemann Kleint2020-12-172-4/+3
| | | | | | | | | | | | | Remove QAbstractFrontEndNodeManager, adapting to qt3d/569d0d030610269a47fe7fec9a3f4248b8d8bdea. Reject Qt enum helper functions in Qt3D namespaces. Fixes: PYSIDE-1450 Change-Id: I238010f214a6c59ac6e53dcf02d5c52c1ec51aae Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit c25840f139aeff565808d37cec07cefb60607474) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* write a leak_finder scriptChristian Tismer2020-12-171-0/+196
| | | | | | | | | | | | | | | | | PySide has a few known memory leaks and probably some unknown leaks as well. There are more or less unproblematic pseudo-leaks where only too many references are kept, but there are also the true leaks, where new objects are created all the time. This script is a first attempt to get rid of that problem. The interface is not perfect but works pretty well. Change-Id: I8e44eedde036f25adadf66ca2a7fdac8095619c4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 089d527e5a331ab83c9b365314301c39382c5b45) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* remove QBackingStore from qrasterwindow_test.pyChristian Tismer2020-12-151-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. Change-Id: I520a5fd1336850d3e3883bcccb9b6a4b2cdafeda Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 35f0aa7be658c6dc5887aad6c38e098e3466ec5f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Porting Guide: Mention classes that were movedFriedemann Kleint2020-12-151-0/+4
| | | | | | | | | Amends 592a716369d2cdacb423b8abc29045b1d1535991. Change-Id: I73c6ab49e157d16bc9e3532e33d2ec05ba541682 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 3a02acaceb36e2de4b5c61e1b607850630c82c9c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move QKeyCombination from QtGui to QtCoreFriedemann Kleint2020-12-114-2/+3
| | | | | | | | | | | It was mistakenly added to QtGui, but it lives in QtCore. Change-Id: I398eb9735b4a4d6e570b054d288b1ef7ffa0478d Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 6ccb3f64575696c8327aeb7c12f8f0ff99bdecf0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add a small PySide2 porting guideFriedemann Kleint2020-12-093-0/+34
| | | | | | Change-Id: Id030c46e56b24df02e8b946768c3deb1e09427a1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>