aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/metaobjectdump.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix flake8 and typing issuesAdrian Herrmann2024-06-211-1/+1
| | | | | | | | | Fix a number of miscellaneous flake8 and typing issues exposed after updating to the modern typing syntax from 3.10 onwards. Task-number: PYSIDE-2786 Change-Id: I5476d1208dd1da3fa93bdec02bc6124a80b247fc Reviewed-by: Christian Tismer <tismer@stackless.com>
* Use modern typing syntaxAdrian Herrmann2024-06-201-20/+26
| | | | | | | | | | | | We can already use the modern typing syntax introduced with Python 3.10 in 3.9 via future statement definitions, even before we raise the minimum Python version to 3.10. Note that direct expressions with "|" don't work yet. Task-number: PYSIDE-2786 Change-Id: Ie36c140fc960328322502ea29cf6868805a7c558 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-201-0/+1
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* metaobjectdump.py: Handle string type specifications in @Slot, @PropertyFriedemann Kleint2024-02-081-3/+12
| | | | | | Pick-to: 6.6 6.5 Change-Id: Ia940796bd129522e703ae35ffa2963bf21d9680f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* metaobjectdump.py: Silence warning about unknown decoratorsFriedemann Kleint2024-02-081-2/+2
| | | | | | | | We are only interested in Qt decorators. Pick-to: 6.6 6.5 Change-Id: Idb9737f5151e6fe4db383e8682b0c6019c3cb61d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* metaobjectdump.py: Implement slotsFriedemann Kleint2023-05-311-10/+32
| | | | | | | | | Extract helper functions from the Signal handling code to parse @Slot. Pick-to: 6.5 Fixes: PYSIDE-2347 Change-Id: I1c12becad43e7915a63bd3068c7ec71d498c380f Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* metaobjectdump.py: Recognize item models as QObject-derivedFriedemann Kleint2023-03-281-1/+12
| | | | | | | Pick-to: 6.5 Task-number: PYSIDE-2224 Change-Id: I7e83bf9b1e4138436e159c6dbb75bfb1fe20af66 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* metaobjectdump.py: Refactor/Fix handling of module importsFriedemann Kleint2023-03-231-9/+13
| | | | | | | | | | | | | | | The code caused an error when encountering from PySide6 import QtCore since it was expecting from PySide6.QtCore Fix this to handle this case as well. Turn the module list into a set to suppress duplicated modules. Pick-to: 6.5 Change-Id: I4ec40c28f5a8cc03c7985869597bb2315500a604 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* pyside6-metaobjectdump: Skip call operators in base class specificationFriedemann Kleint2023-01-241-6/+8
| | | | | | | | Fixes: PYSIDE-2202 Pick-to: 6.4 Change-Id: I9187925491696a6ecbff9c13add787fbd5420e36 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* pyside6-metaobjectdump: Handle complex decoratorsFriedemann Kleint2023-01-241-1/+1
| | | | | | | | | | | The 'func' member of a call node can be an attribute; use the _name() helper to get the name. Fixes: PYSIDE-2203 Pick-to: 6.4 Change-Id: I931f747ae3d4251a697e2661d02dd603d467d84d Reviewed-by: Adrian Herrmann <adrian.herrmann@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>
* Add the QmlAttached decoratorFriedemann Kleint2022-02-161-0/+3
| | | | | | | | [ChangeLog][PySide6] The QmlAttached decorator has been added. Task-number: PYSIDE-1709 Change-Id: I0301ecc7a9bc7a1b798095e8972b2fe4addf2eaf Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add the QmlExtended decoratorFriedemann Kleint2022-02-161-0/+3
| | | | | | | | | [ChangeLog][PySide6] The QmlExtended decorator has been added. Task-number: PYSIDE-1709 Change-Id: I56d1c75f281f37e9d23c64362ce89c5f1f49723a Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add the @QmlForeign decoratorFriedemann Kleint2022-02-111-0/+3
| | | | | | | | [ChangeLog][PySide6] The @QmlForeign decorator has been added. Task-number: PYSIDE-1709 Change-Id: I7dbba47923efb6a1c3ac4accb2b3adcd3fb6fd9b Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add the @QmlNamedElement decoratorFriedemann Kleint2022-02-091-0/+3
| | | | | | | | | | | Add the decorator and split the registration functions in order to be able to pass a different type name. [ChangeLog][PySide6] The @QmlNamedElement decorator has been added. Task-number: PYSIDE-1709 Change-Id: I081cd33313d7b9c19cb6403ee56ac9d8b1d9e606 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Long live pyside6-metaobjectdump!Friedemann Kleint2022-01-271-0/+428
| | | | | | | | | Add a tool to print out the metatype information in JSON to be used as input for qmltyperegistrar. Task-number: PYSIDE-1709 Change-Id: Ie57feeeecc09b1a01aadcc08f7e529a16609b3a4 Reviewed-by: Christian Tismer <tismer@stackless.com>
* create pyside-tools2 with qt5 branchChristian Tismer2015-06-101-0/+0
|
* Remap examples and tools submodules from gitorious to githubRoman Lacko2013-08-011-0/+0
|
* Initial commit (copy of lck/pyside-dist repo)Roman Lacko2012-06-041-0/+0