aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qtpy2cpp_lib/formatter.py
Commit message (Collapse)AuthorAgeFilesLines
* Move qtpy2cpp to sources/pyside-toolsFriedemann Kleint2022-09-021-265/+0
| | | | | | | | Preparing the entry point. Task-number: PYSIDE-1945 Change-Id: I4a2fbe6d35b4f97bf0ab7cfc2085b86a40bc2558 Reviewed-by: Christian Tismer <tismer@stackless.com>
* qtpy2cpp: Further improvementsFriedemann Kleint2022-06-211-5/+3
| | | | | | | | | | | | | - Fix indentation of context manager scopes - Fix indentation of augmented assignments - Handle range based for over variable - Remove FIXME comment for function types - Write base name in header comment for testability Pick-to: 6.3 Task-number: PYSIDE-1945 Change-Id: Ib30af672e56434c30d98f8dce2cb73ef0a1512a8 Reviewed-by: Christian Tismer <tismer@stackless.com>
* qtpy2cpp: Qualify the Qt namespace with "::" instead of "->"Friedemann Kleint2022-06-101-2/+5
| | | | | | | Pick-to: 6.3 Task-number: PYSIDE-1945 Change-Id: I1be5386df81bd548a72b86dfee1474a6c8b941a2 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* qtpy2cpp: Improve function definitionsFriedemann Kleint2022-06-041-2/+40
| | | | | | | | | | | | | | | - Handle type annotations in function definitions with some heuristics how to pass typical Qt classes. - Fix the formatting of default parameters. - Handle Slot decorators. - Ignore the above elements later when the parser traverses them Introduce concenience functions for checking visitor scope. Pick-to: 6.3 Task-number: PYSIDE-1945 Change-Id: I489088025b0d6a76d43da6154af4db58b748adbe Reviewed-by: Christian Tismer <tismer@stackless.com>
* qtpy2cpp: Improve error handlingFriedemann Kleint2022-06-011-1/+1
| | | | | | | | | | | Format messages in a file:line: format. Fix an error causing an exception. Pick-to: 6.3 Task-number: PYSIDE-1945 Change-Id: I16a1fd6daa96521adfe53f23090f61fbbc581e84 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-271-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* flake8: fix styling issues in tools/Cristián Maureira-Fredes2022-04-021-2/+0
| | | | | | Change-Id: I8cbf5d521900df4f55abf8f68997f8a71437f722 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Rename PySide2 to PySide6Friedemann Kleint2020-11-021-2/+2
| | | | | | | | Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add Python to Qt/C++ conversion toolFriedemann Kleint2020-03-051-0/+264
Change-Id: I275e776248bd55c3c38f5fedd83088bf475a1cf9 Reviewed-by: Christian Tismer <tismer@stackless.com>