aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup version string for 5.14.0 releasev5.14.05.14.0Simo Fält2019-12-162-4/+4
| | | | | Change-Id: I7bf2b21c384a4b882ad410e02adcca4ac1b2d91b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add changelog for 5.14.0Cristian Maureira-Fredes2019-12-161-0/+69
| | | | | Change-Id: Ib8a0571cfecd0d0a938718f385e3b89d05ca2219 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add external python modules examplesCristián Maureira-Fredes2019-12-136-0/+633
| | | | | | | | | | | | These examples will be used at the QtWS2019: - Matplotlib: Widget interacting with a 3D plot - OpenCV: Webcam pattern detection - Scikit Image: Image filters An About Qt section was added to all examples. Change-Id: I14da69c9b5ecdc8409bcdb335135a8b1fa763bb1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Doc: Document the Property function in QtCoreVenugopal Shivashankar2019-12-121-0/+62
| | | | | | | | The content for this lived on the wiki till now. Change-Id: I3e6a2cb7f97ab7021621b7c687299a3199134bb5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Finalize the Python 3.8 refcount fixChristian Tismer2019-12-121-5/+7
| | | | | | | | | | | | | This is a final optimization to the Py_TPFLAGS_METHOD_DESCRIPTOR fix. Instead of keeping the mro method alive, we are caching it's type only, because that is what we need to patch. Another effort to solve this problem completely has failed, again. This solution is good enough and has no time penalty. Task-number: PYSIDE-939 Change-Id: I98c165f9cd704b0f6ce55750189d6bda9a811f70 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Shiboken: QtDoc: Fix the fancy TOC in the module index pageVenugopal Shivashankar2019-12-121-0/+3
| | | | | | | | | | The TOC groups the classes alphabetically, ignoring the 'Q' prefix at the beginning. It did not consider classes without the 'Q' prefix, such as Signal and Slot in the QtCore module. The else block should handle that as well now. Change-Id: I0fc22ba86650299de924d22c970d6fe6e31567c3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix tools\debug_windows.py to properly display possible error snippetsAlexandru Croitor2019-12-091-1/+1
| | | | | | | | The check in find_error_like_snippets was incorrect, and thus never showed any snippets. Change-Id: Ie8d487b071e73c6f4a1352e9b10e616694b2e237 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add better error handling to debug windows python scriptAlexandru Croitor2019-12-091-9/+14
| | | | | | Change-Id: Ibc5171cf94ef819cf7926b899b83cc9de3037d07 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Doc: Fix warnings about link targets and indentationVenugopal Shivashankar2019-12-0611-33/+58
| | | | | | | | | Also ensured that all the doc entities are in the toctree so that the navigation breadcrumb is generated. Change-Id: If993cca4c7e91723fa373d3453196bcfee9f3ffa Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Remove QtScript from missing bindings scriptMariana Meireles2019-12-051-1/+0
| | | | | Change-Id: I456dbb729992146ca3d2320d0d2416d9d3b41339 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Optimize the Python 3.8 refcount fix a tiny bitChristian Tismer2019-12-051-1/+1
| | | | | | | | | | | This change uses the fact that our workaround to temporarily remove the Py_TPFLAGS_METHOD_DESCRIPTOR flag uses the "mro" function of PyType_Type, which never will change. Therefore, the static keyword makes sure that this function lookup happens only once. Change-Id: I44b74556da1fac2596c81339af30cb66218276e2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Update config.py to allow Python 3.8 in pipChristian Tismer2019-12-051-1/+1
| | | | | | | | | After Python 3.8 works with PySide, we can remove the restriction to Python 3.7 from "python_requires". Change-Id: I5be5364cda14c38aabc2bf579165efbb614969e0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix Python 3.8 problemsChristian Tismer2019-12-0519-30/+148
| | | | | | | | | | | | | | | | | | | | | | This patch fixes some refcounting problems with Python 3.8 . One incompatible change was announced in the what's new document, but actually there were two more problems which were not explicitly mentioned but took much time to sort out. The patch is compatible with the limited API changes (tested with debug build and API error disabled). It is also independent of the Python version which is full Limited API support. For more info, see the documentation mentioned below. The flag error is circumvented now! We either find a better solution or leave it as it is. For now this is ok. Fixes: PYSIDE-939 Change-Id: Iff4a9816857a6ebe86efd4b654d8921e4e464939 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* docs: Simplify the Quick Start topicKavindra Palaraja2019-12-042-23/+19
| | | | | Change-Id: I11651033783052591f38cd8eb02ec47719c91dbf Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Replace OPTION_* by a dictionaryCristián Maureira-Fredes2019-12-037-172/+171
| | | | | | | | | | | | Currently we are importing * from the options.py file, which is a problem for the linters to discover if we are properly using the options of the file. Having a dictionary provides also a better way of access these options, and it is more clean than having one variable per each option. Change-Id: Ie70bd88665357b85e2842c5df269857504ecccdf Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* New documentation structureCristián Maureira-Fredes2019-12-0322-636/+900
| | | | | | | | | | | | | | | | - New structure for the landing page, - Some rst were renamed to the new structure, - New sections "Videos", "Examples" and "Getting Started" were created, - Information from the wiki was used to create the Getting Started sections, - FAQ section was removed, - Removing pyhtml2devhelp.py since it is unused, - The new CSS modifications were copied over the Shiboken2 directory. Task-number: PYSIDE-1067 Change-Id: I1ba53cd0030d6d02449fecdfea70efb49421ad3b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Kavindra Palaraja <kpalaraja@luxoft.com>
* Take new Qt CI config into useSimo Fält2019-11-293-10/+551
| | | | | | Change-Id: I32fcdaa2df6a4bed4f3263875ab1ad272ad8ff8c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Update missing bindings scriptCristián Maureira-Fredes2019-11-281-5/+14
| | | | | Change-Id: Idb86b5ab679137f493cfa46e7d85b48c4e1b8d4b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix refcount issues with QSettings glue codeCristián Maureira-Fredes2019-11-281-4/+11
| | | | | | Task-number: PYSIDE-939 Change-Id: I5bda4e2025e31bf192bf0bf70c82aa626cd19714 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Merge remote-tracking branch 'origin/5.13' into 5.14Friedemann Kleint2019-11-285-4/+7
|\ | | | | | | Change-Id: I698090a9c9fdc995e00e39873aa35f8edda0f0b1
| * Remove QGraphicsItem::scroll from QtCharts5.13Mariana Meireles2019-11-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | Removing this method to avoid being inherit from QChart, so we don't have the problem of having two scroll methods with the same arguments and we don't call the wrong one. Change-Id: Ia98ae1fdea39bed4435869fae7e5d380a73e9d91 Fixes: PYSIDE-1101 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | docs: Propose new structure for overviewKavindra Palaraja2019-11-271-36/+4
| | | | | | | | | | Change-Id: I4a946cc0373f986db422439b1796fdddbf0ae35b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | docs: Clean up the PyInstaller topicKavindra Palaraja2019-11-271-66/+50
| | | | | | | | | | Change-Id: I0d0668fd4270d58f2ab50bd14c9d7100ff906d3c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | shiboken: Refactor metatype comparisonFriedemann Kleint2019-11-253-42/+50
| | | | | | | | | | | | | | | | | | | | Remove unused code left over from previous changes and add flags for matching value and const-ref as equivalent. Rename a few functions for improved clarity. Change-Id: Ifac1414e4977643b18d31dfc63a8e4a5f89a2ddc Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | Shiboken: QtDoc: Fix the new filename logic for the extras foundVenugopal Shivashankar2019-11-251-1/+1
| | | | | | | | | | | | | | | | | | Otherwise, the extras are never copied to the respective module directories, resulting in no HTMLs for them. Change-Id: Ibb509178bde9cf2477c3791ee56da1affbe4d74e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* | Improve code style with flake8Cristián Maureira-Fredes2019-11-2513-402/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - We agreed on 100 columns time ago, so I move around a few things, - Removing unused modules, - Fix white-spaces tabs without being multiple of 4, - Encourage the use of os.path.join when joining paths, - Using .format() for string formatting, - Remove white-spaces from default arguments, - Adjusting white-spaces before inline comments, - Adding extra newlines when expected, - Adjust spaces for lines under-indented for visual indent, - Remove white-spaces from parenthesis, and adding them for arithmetic operators. Change-Id: I9cb28cefd114d63580b584a063c452f90d3ca885 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | shiboken: Refactor target lang nameFriedemann Kleint2019-11-257-157/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Devirtualize TypeEntry::targetLangName() and replace by QString buildTargetLangName() that walks up the hierarchy and builds the name from the components. It populates a mutable variable m_cachedTargetLangName. - Implement setTargetLangName() to set m_cachedTargetLangName directly so that it works in all classes (for target-lang-name). - Implement a targetLangEntryName() that returns the last name part using the same pattern. - Remove the unused lookupName(). Fixes: PYSIDE-1133 Task-number: PYSIDE-990 Task-number: PYSIDE-1074 Change-Id: I15a6805a21584f1d7d4222e577e50907d7291841 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | shiboken: Store the unqualified entry name in TypeEntryFriedemann Kleint2019-11-259-137/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the previous change adding a parent pointer, this is working towards building the target lang name by walking up the hierarchy, prepending the names, making it possible to exclude namespaces. Pass the unqualified name from the XML parser and build the qualified name in the TypeEntry constructor. For this to work, a new ConstantValueTypeEntry is added replacing the abuse of EnumValueTypeEntry for nontype-template parameters. As a side effect, it is no longer possible to nest types by qualifying with "::" in XML: <object-type name="Class"/> <enum-type name="Class::Enum"/> This needs to be fixed in the type system files. [ChangeLog][shiboken] As a result of a code cleanup, it is no longer possible to nest types by by qualifying with "::" in the type system files. The elements need to be properly nested. Task-number: PYSIDE-990 Task-number: PYSIDE-1074 Change-Id: I8a2f93c40d59167b0ba205ef3ff3b325d242c3d3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | Merge remote-tracking branch 'origin/5.13' into 5.14Friedemann Kleint2019-11-251-2/+2
|\| | | | | | | Change-Id: I4659f593110a3c8d3fb23a3110efc1668fe0bf28
| * Add python_requires to the python setupCristián Maureira-Fredes2019-11-181-2/+2
| | | | | | | | | | | | | | | | | | This will avoid the current option of installing 5.13.x wheels on Python 3.8 environments. Task-number: PYSIDE-1140 Change-Id: Ia5e1e77dd2e48807e2f485177c2821fba5c1c76b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| * Bump version numbersSimo Fält2019-11-112-2/+2
| | | | | | | | | | Change-Id: I320da3f8bb09774db8c4e88c784a0d270eb1c932 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Replace imp by importlibCristián Maureira-Fredes2019-11-192-10/+15
| | | | | | | | | | | | | | | | Getting rid of the DeprecationWarning Change-Id: I86370c266d502fcd0fb61a9945770354b8f87142 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* | shiboken: Give the type system entries a pointer to their parentFriedemann Kleint2019-11-187-78/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helpful when building the qualified names including namepaces whose names may not appear (due to them being C++ inline namespaces or generation being disabled). With this, an accessor to the type system entry can be added, which helps to avoid ambiguities. Task-number: PYSIDE-990 Task-number: PYSIDE-1074 Change-Id: I7dce742770fbdbbc6ed0c3fce5120108dd12ffc4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Renato Araujo Oliveira Filho <renato.araujo@kdab.com>
* | shiboken: Fix crash when smartptr template class cannot be foundFriedemann Kleint2019-11-183-1/+23
| | | | | | | | | | | | | | | | | | | | shiboken currently crashes when naively trying to use std::shared_ptr since it does not see the template due to system directories being excluded from clang parsing. Add an error message and bail out. Task-number: PYSIDE-454 Change-Id: I6627e968061f8f704a90f898879f3861308e1705 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | Doc: Drop PySide prefix from the RST filenamesVenugopal Shivashankar2019-11-1820-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shiboken appends the content in these RSTs to the module index pages that it generates. In addition, - updated the snippets, extras, and additional docs passed to the Shiboken call. - moved the copy_directory command right before the shiboken call. Change-Id: I45222ba7d0798105a764d7692d466f7a2a105d77 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Move scripts to tools directoryCristián Maureira-Fredes2019-11-183-0/+0
| | | | | | | | | | | | | | | | | | | | The root of the repo should stay clean, at the moment we have too many things around. It makes more sense to move these scripts to the tools directories. Change-Id: Ieca26107dafddfffa2a8dc5b9bb41e9942e0ebfa Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | shiboken/Doc generator: Refactor the Table classFriedemann Kleint2019-11-152-42/+55
| | | | | | | | | | | | | | Use QVector and no longer inherit the container. Change-Id: I7ab9df4cefa408c01324d88737d639b80b45fc48 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | shiboken: Remove more usages of QListFriedemann Kleint2019-11-153-6/+7
| | | | | | | | | | | | | | The class will be deprecated in Qt 6. Change-Id: Iafafca43615fc8035ac532afb9dcb18f7ab6ce92 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | shiboken: Refactor the logic deciding whether headers should be parsedFriedemann Kleint2019-11-151-31/+48
| | | | | | | | | | | | | | | | | | | | | | - Use cstring and prefix by std - Split the functions into base name and comparison functions - Use a non-type template to pass the size for startsWith() - Split out visitHeader() for clarity Task-number: PYSIDE-454 Change-Id: I48e2a9ae5fead892c20d9729cb90d61ff5d7fb0a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | shiboken: Refactor TypeEntry::addExtraInclude()Friedemann Kleint2019-11-152-13/+12
| | | | | | | | | | | | | | | | | | | | Remove the QHash<QString, bool> m_includesUsed and do a linear search for existing includes instead since the number is small and repack the members. Task-number: PYSIDE-454 Change-Id: I30cb08d271b56778a6964476f66602569e5c6ce5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | create_changelog.py: Fix checks for task numbersFriedemann Kleint2019-11-141-7/+11
| | | | | | | | | | | | | | | | | | | | The script was failing on commit messages like "Fixes https://github.com/spyder-ide/qtpy/issues/195". Use a regexp to get the number and insert into the dict for convenient sorting. Change-Id: I16499a083d31b85f11d2e7325c7c2c9c6e4332a5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | shiboken: Split the headers of libsmartFriedemann Kleint2019-11-146-193/+370
| | | | | | | | | | | | | | | | | | | | | | | | Prepare for adding further tests. On this occasion, polish the code a bit, move the logging of the shared pointer into a base class to get rid of the iostream include in the header. Task-number: PYSIDE-454 Change-Id: Ifd05a7d3ceeae1c85e7193991907bf6d1e8e98ee Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | create_changelog.py: Silence flake8 and Qt Creator's checkerFriedemann Kleint2019-11-131-11/+15
| | | | | | | | | | Change-Id: If61585c69e9f73aecd8b001523165df0967721ed Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | Add 5.12.6 changelogFriedemann Kleint2019-11-131-0/+29
| | | | | | | | | | Change-Id: Ia7dee36eec9e20598627c490bf5c33fb0d7620fe Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | Fix clang parsing with update MSCV versionsFriedemann Kleint2019-11-131-0/+2
| | | | | | | | | | | | | | | | | | Turn off clang check: STL1000: Unexpected compiler version, expected Clang 7 or newer Change-Id: I30e962174dfe468d570fae56c0e1b883c622a6a0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | shiboken: Remove unused codeFriedemann Kleint2019-11-075-40/+0
| | | | | | | | | | Change-Id: Idf421747a41fbc7c58e8cc84023426bc12b47544 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | Simplify recreation of registry filesChristian Tismer2019-11-073-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The registry files were recreated when they do not exist. This was used to trigger recreation on a file. We now include a comment line on top of the files. #recreate # uncomment this to enforce generation By uncommenting this line, a NameError is provoked, which has the desired effect without creating huge deltas in the repository. Change-Id: Idcc1015abae504f111102e8c9851f8ef45dcbdff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | PySide2: Enable a build for Qt built with -no-feature-sslFriedemann Kleint2019-11-011-4/+4
| | | | | | | | | | | | | | | | | | Move QSslCertificate and QSslCertificateExtension out of the SSL branch since they are always present independently of -no-feature-ssl. Change-Id: I022d0f5e73b83f7a3c4774839e856734e17d0056 Reviewed-by: Christian Tismer <tismer@stackless.com>
* | shiboken: Refactor lookForEnumsInClassesNotToBeGenerated()Friedemann Kleint2019-11-011-9/+7
| | | | | | | | | | | | | | | | | | | | Remove the recursion to the parent class which does not seem to have any effect. Add a comment and simplify. Task-number: PYSIDE-990 Task-number: PYSIDE-1074 Change-Id: I92ddb08e051853636d154541d805a54bdc7d3a87 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* | Doc: Fix sphinx warnings about indentation and linkingVenugopal Shivashankar2019-11-0111-118/+149
| | | | | | | | | | | | Change-Id: I22fc8b60d9c9209224eddbd8255f8e2b834da0ae Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>