aboutsummaryrefslogtreecommitdiffstats
path: root/sources
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup version strings for 6.0.3 releaseAkseli Salovaara2021-04-072-4/+4
| | | | | Change-Id: Ida2f25efe7ff9d1a18f98b715ca504d55e3e4ab4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Bump version strings for next releaseAkseli Salovaara2021-04-062-2/+2
| | | | | 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>
* shiboken6: Fix 32 bit buildsFriedemann Kleint2021-03-251-0/+2
| | | | | | | | | | Remove ambiguous overload of TextStream operator for this case. Change-Id: I0e2bfccf944340a83802bae77fb45e17f055ee44 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 780223e30b5909aeaee2b0beb0780a8d8ac3168c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide import: Make imports more safe against installation errorsChristian Tismer2021-03-253-15/+18
| | | | | | | | | | | | | | | | | | | | | This patch originally was "__feature__: Make imports more safe against installation errors" After applying the patch to 5.15 with errors, it became clear that not __feature__ was a problem, but the "import PySideX.support" did not work in the embedding case. This observation made the error message concerning PyInstaller pointless. Instead, the pseudo-import of PySideX.support was fixed to work correctly in all cases. Tested on 5.15 with PyInstaller, this is now going back into dev. Manually cherry-picked to 6.0 Pick-to: 5.15 Task-number: PYSIDE-1502 Change-Id: I2fd680a6a28de00f5392147b0d050deb7663dc22 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* 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>
* shiboken6: Fix crash when using enumeration types from other classesFriedemann Kleint2021-03-221-2/+5
| | | | | | | | | | | | | | qtbase/969337bcfd6af6d91b988e4b412703274a0b5877 changed QHostAddress to use enum values from QAbstractSocket which appear as fields. This caused a crash in the module initialization since QAbstractSocket was not initialized when creating the field entries. Consider this in the dependency calculation. Change-Id: Ie07dd39a373695cd604d0ebcf233be34a004c8bc Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 2ac1870053370e017567ae53e62cd1155a01c88f) 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-177-35/+142
| | | | | | | | | | | | | | | | | | | | | | | 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>
* shiboken6: Fix AbstractMetaClass::fullName() for nested classesFriedemann Kleint2021-03-161-1/+1
| | | | | | | | | | Use the fully qualified name. Task-number: PYSIDE-1520 Change-Id: I58bf8f2d3e1b95947769b725746f560947d25f06 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 3521dfcee8a800927aaf024ab2b64b1402e8256b) 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>
* libshiboken: Silence unimplemented array type warningFriedemann Kleint2021-03-111-1/+0
| | | | | | | | | | | | It is more of an annoyance than helpful since it is triggered by the implicit conversion checks already. Task-number: PYSIDE-354 Fixes: PYSIDE-979 Change-Id: I213ad607c61e0279c8cada4efa0a2cfd3cad8892 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 7d602dc46163be603e87b1ef4f8db7b1ab87c1f6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Do not hardcode libclang's build typeFriedemann Kleint2021-03-101-1/+2
| | | | | | | | | | Query and use libclang's build type instead. Fixes: PYSIDE-1515 Change-Id: If78908040be27530593a36db1bdb76649c167d82 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 8088fe1a3ab13faff3acecaa504e428a49edd58d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Mention add-conversion for conversion rulesFriedemann Kleint2021-03-101-2/+3
| | | | | | | | | Amends 4972d8cf6ea55884e501c452f32f558ad24240ae. Change-Id: I09a98e37646bb207239fc249e0a45812d3968dab Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 2701e617906bc2c00d03cb48bbb8ba319d5e389d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Brush up the code injection documentationFriedemann Kleint2021-03-103-13/+22
| | | | | | | | | | | Link from the code injection page to the type system variables. Link from conversion rule to templates. Modernize the code a bit. Change-Id: Ibc8e56a2e3313a0be50dc8bbc92f49a7afc775a2 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 4972d8cf6ea55884e501c452f32f558ad24240ae) 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>
* shiboken6: Fix parsing of project filesFriedemann Kleint2021-03-031-1/+1
| | | | | | | | | | For key/value pairs specified without space after '=', the key would be truncated. Change-Id: I154b1685ca8aab2f13fb916290cde17bc972afea Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit f726b4f406d15a9b85e5ced8bc18fb2f4da1b850) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken: Provide the correct inheritance for enum typesChristian Tismer2021-03-034-50/+88
| | | | | | | | | | | | | | | | | | | | | Originally, it was planned to follow a competitor and derive enums from int objects. But this was abandoned in favor of Python Enums. We therefore simply leave most code as it is and only insert a Shiboken::Enum class that accepts an optional integer. This class is published by shiboken with signature. Derived classes still have no signature themselves, but they all inherit from this known class Enum. This is intentional to avoid creating useless signatures for every derived Enum. A test was included. Change-Id: Ifaaea40a4ddf2337e565fb57e6a69b7cc9a6040f Fixes: PYSIDE-1347 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit e6a4a094ace43250e3ffca03a9f8d1f138de1b5a) 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>
* shiboken6/Documentation: Fix the TOC tables for modules with < 4 classes per ↵Friedemann Kleint2021-02-151-4/+1
| | | | | | | | | | | | | | | character Do not pad each table to 4 columns as this can lead to problems with trailing empty columns. Leave the normalization to QtXmlToSphinx::Table::normalize() instead. Amends e20d9db9e9dc8d599b76873d90a34acafe9fd9fe. Change-Id: I7b8b465856b58b8443f17f5c103a11b4009a0014 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 2e23681d8955b077e34ff064c242b53a0e5b9ea8) 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>
* shiboken6: Fix broken tables in the QLocale documentationFriedemann Kleint2021-02-111-1/+1
| | | | | | | | | | Add a newline before the enumeration table. Task-number: PYSIDE-841 Change-Id: I83e81983dd7139c120480cba859e1683a4721c92 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 69513c4c8bb0aed6976b1b7c884dce10b82dbdb0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Do not fail when containing template class of inner class cannot ↵Friedemann Kleint2021-02-111-7/+16
| | | | | | | | | | | | | be found Change the error about not finding containing class to a warning for templates as it can happen for weird constellations in boost. Fixes: PYSIDE-1501 Change-Id: Ie446ebb6f22edbcd1c97a89c6a50eb9fe5d1b245 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit b6ab1bb8fc44e9c3c58b9c7cc946ebf626124df2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* feature: Supply switching for newly created objectsChristian Tismer2021-02-111-0/+4
| | | | | | | | | | | | | | | Switching was quite complete, but when the module with a feature selection created a new object, no switching of the new object happens. This was a pretty hard to find bug, but the solution was trivial. Task-number: PYSIDE-79 Fixes: PYSIDE-1478 Change-Id: I663a562d4d9512b627b3add37df0908f9d785e1f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d158720ec4dd3fe8623faaf9afcb2e7f9f368e51) 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>
* signature: Provide fixes and improvements, Part 1, addendumChristian Tismer2021-02-101-5/+4
| | | | | | | | | | | | | | | | | | This patch had a way too complicated method to find out if something is a method, and this broke on Python 2 because we don't have the __qualname__ attribute everywhere. But this can be done much easier: We check the type and see if it is a function or builtin function. Everything else must be a method, no matter what it is :) Change-Id: I07e5690f36e4ed4d50ea5e203233b369dc70fa5f Task-number: PYSIDE-510 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 609bd8121b9a45846b236ecf51226da026651d51) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: fix responsiveness of the pageCristian Maureira-Fredes2021-02-102-12/+110
| | | | | | | | | | | | 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>
* shiboken6/Documentation: Fix formatting tables on QIODevicesFriedemann Kleint2021-02-103-0/+24
| | | | | | | | | | Flush the device before returning the position which is used in the AlignedField helper. Task-number: PYSIDE-841 Change-Id: Id1be81d2819f9682267930076898c79cd68c2bbf Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit da15fc958dafc51901431cf5d9b98b082c8c2690)
* shiboken6/Documentation: Fix the TOC tableFriedemann Kleint2021-02-091-30/+19
| | | | | | | | | | | Change writeFancyToc() to output a table like the Qt documentation (3 columns). Task-number: PYSIDE-841 Change-Id: I05a53e4c78ffb8022e6e3fb6db0e6387b953eafd Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit e20d9db9e9dc8d599b76873d90a34acafe9fd9fe) Reviewed-by: Christian Tismer <tismer@stackless.com>
* doc: add tool to generate examples galleryCristian Maureira-Fredes2021-02-092-9/+23
| | | | | | | | | | | | | | | | | | | | | | 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>
* shiboken6: Add more formatting tests to sphinxtable testFriedemann Kleint2021-02-092-0/+69
| | | | | | | | | Add a test using programmatically constructed tables. Change-Id: I81ede76df045e730e27c102576d86a883e141a4e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit db824ef8c01b79a60c8029061eb5c86b51dd87fc) Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6/Documentation: Fix the TOC table to appearFriedemann Kleint2021-02-091-2/+0
| | | | | | | | | | Remove the indentation, which is throwing off sphinx. Task-number: PYSIDE-841 Change-Id: I865d9ea71c052d29ac8d1796918675cb9c17b87d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit f737b174b08f029bd8ae209d3ef24137317610a8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/Documentation: Fix the extra sectionsFriedemann Kleint2021-02-091-11/+16
| | | | | | | | | | | | | | The file filter used for filtering the extra documents did not include the '.', so, the module description QtXmlPatterns.rst was added as an extra document for QtXml. Add the dot to the filter and sort the result. Use QDir::entryInfoList() since it is faster and gives the full path. Task-number: PYSIDE-841 Change-Id: I173979b9a527121b95bcb0190f603c02565bc282 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 2e43fc4cfd997de48eae352a8a42936f6e4b3785) 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>
* shiboken6/Documentation: Fix table width determinationFriedemann Kleint2021-02-081-3/+3
| | | | | | | | | | | Initialize the width/height lists to 0. As a drive-by, use the number of lines from splitting instead of counting. Change-Id: Ib17ed819684298599d3c01cf00cfc8b5c192d232 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit ad01b159e02067ba46d6433412cb1e690553e946) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/TextStream: Fix the output of empty aligned fields for width=0Friedemann Kleint2021-02-082-1/+6
| | | | | | | | | Amends 44b03e3ded688aabe8352e8bda66df8677acc8a4. Change-Id: Iab4b9bfd991098fbae261cbe29a2caf13f7ebd3d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit eca89cd04469a61b3c9ee7993122ca1ec3fe976f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/Documentation: Fix the sorting of classesFriedemann Kleint2021-02-081-5/+3
| | | | | | | | | | | Sort classes before writing the TOC. Apparently, the order was reversed by 7626f04ac855a56d4b364eac7b8350bdd561fef0. Change-Id: I76c6326df8bd6b182cf617901bb4c37a0f443897 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 95e3b2c7256c71b274be5f16e216116e5876ee87) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Fix missing images in documentationFriedemann Kleint2021-02-051-0/+1
| | | | | | | | | | The output path was not set to the sphinx parameters. Amends cddc4e975398c7c285b0dfada8a57fe997f05833. Change-Id: I35c5bf427f76792ff1b714f307bb6158bf4575a7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit e18868bfbc588e63ff4d2e821c6bce1c7cbe4fb6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>