aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Deployment: New pyside6-android-deploy toolShyamnath Premnadh2023-03-3113-12/+674
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Preliminary support for PySide6 Android deployment - Uses jinja2 to create PySide6 and shiboken6 recipes, to be used by buildozer when python_for_android builds the app distribution - Classes for Buildozer config interaction - Run deployment to android. Typical command looks like: """ pyside6-android-deploy --wheel-pyside=./PySide6-6.5.0a1-6.5.0-cp37-abi3-android_x86_64.whl --wheel-shiboken=./shiboken6-6.5.0a1-6.5.0-cp37-abi3-android_x86_64.whl --name=stringlistmodel """ - New entrypoint for pyside6-android-deploy - Helper functinos for Android Deployment - Remove unused function main_py_exists() - Added the new files to deploy.pyproject - Remove dry_run argument from install_python_dependencies() - new Python packages added in requirements.txt to enable the deploy and cross compile tool Note: python-for-android uses my local fork. This will be changed once it is merged into python-for-android dev. Task-number: PYSIDE-1612 Pick-to: 6.5 Change-Id: I7eb96fa5507a476b4e86ec0195a5e9869f0f85fd Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Deployment: Fix Nuitka Qml IssueShyamnath Premnadh2023-03-301-1/+1
| | | | | | | | | | | | | | | | | - Nuitka tries to do patchelf on all files in the 'Qt/qml' plugins folder. Although this is a Nuitka bug, the file qtquickcontrols2.conf that cause patchelf errors comes from the newly added MaterialEditor Qml plugin, which has no relevance to PySide6. Hence, removing it. - Some of the Qml issues were fixed by upgrading Nuitka to 1.5.4 - Adapt test Fixes: PYSIDE-2260 Task-number: PYSIDE-1612 Pick-to: 6.5 Change-Id: Ibc274769251e0533d960346a9d8271b2f65dcae9 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Deployment: Change "desktop_packages" back to "packages"Shyamnath Premnadh2023-03-302-2/+2
| | | | | | | | | | - breaks source compatibility otherwise Task-number: PYSIDE-1612 Pick-to: 6.5 Change-Id: Ie0fd353872b7a93c94b650b09aa0fa53692e2455 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Deployment: Refactor to enable Android supportShyamnath Premnadh2023-03-297-163/+264
| | | | | | | | | | | | | | | | | | - moving code into functions so that Android can re-use them - new file "deploy_util.py" to store all the common utility functions that can be reused for Android deployment tool - new option "--name" to set the application name - Change some print statements to log statements - Adapt depoyment tests - In default.spec, rename "packages" to "desktop_packages" - Fix relative Qml file error in config.py i.e. it errors when the path is already relative Task-number: PYSIDE-1612 Pick-to: 6.5 Change-Id: Iaaea8837cc362b3cc8035b96247194c4a9679579 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@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>
* Deployment: log string fixShyamnath Premnadh2023-03-281-4/+4
| | | | | | | | | | wrap the warning in quotes and remove '/' Task-number: PYSIDE-1612 Pick-to: 6.5 Change-Id: Idf49066c21bb73b48ca370ae32e962c195c19a49 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Deployment Tool: Remove create_venv + fix --dry-run/--initShyamnath Premnadh2023-03-273-40/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | - As the deployment tool's code base grows larger, I realized that the ability to create a venv using pyside6-deploy was a bit of over engineering. There are instances where I have to use the current Python interpreter to fetch some information from the newly created venv Python, which results in weird code. Note: The tool would still work even if the user is using a globally installed Python interpreter with PySide6 installed. - Now, the user is warned if he is not in a virtual environment and prompted the requirement to install further Python packages. If the user input's "no", then the tool exits. - dry_run used to create an empty 'pysidedeploy.spec' which can wreck the normal deployment process. This is fixed by pyside6-deploy using the 'default.spec' instead of creating a new 'pysidedeploy.spec'. Fixes: PYSIDE-2258 Task-number: PYSIDE-1612 Pick-to: 6.4 6.5 Change-Id: I376d2a6aea9f93582eab7a904a81f48426bfee18 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@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>
* importlib: Avoid installation of metadata moduleChristian Tismer2023-03-211-1/+4
| | | | | | | | | | | Since Python 3.8 there is a submodule for metadata, which makes a pip installation of import_metadata unnecessary. Task-number: PYSIDE-1564 Change-Id: I93ed8aa36e617f7c6c756cb6d750d858e983f82d Pick-to: 6.4 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix deploy.pyprojectFriedemann Kleint2023-03-161-3/+3
| | | | | | | | | | Adapt to 0b1361f4d70ef00e3a10a390f6b87b756f012838. Task-number: PYSIDE-1612 Change-Id: I5ccb8dec374bb4dd390d154dc3372aa84e8ef146 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Deployment: Specify Package VersionShyamnath Premnadh2023-03-162-11/+30
| | | | | | | | | | | | | | | - Specific package versions can be specified as {package_name}=={version} - Nuitka 1.5.1 breaks with PySide6, so use version 1.4.8 - new package "importlib_metadata" required to find a python package's version at run time. This is added to Python from 3.8, but since we support 3.7 the package "importlib_metadata" is required - modify test accordingly Task-number: PYSIDE-1612 Pick-to: 6.4 Change-Id: Ie74273ba2a116f0f94f3a3e10120b2de78482724 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* pyside6-designer: Prepend virtual env path on WindowsFriedemann Kleint2023-03-131-5/+6
| | | | | | | | Task-number: PYSIDE-2251 Pick-to: 6.4 Change-Id: I0efe24e5b92bae82c122d156b7dc4e7aca07c957 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* pyside6-designer: Fix Python plugins to work with non-activated virtual ↵Friedemann Kleint2023-03-101-1/+18
| | | | | | | | | | | environment Set the VIRTUAL_ENV variable in case it is missing. Fixes: PYSIDE-2251 Pick-to: 6.4 Change-Id: Iecd6c8d71d99987f0f4c03c5f974d2229ddbea40 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Android Deployment: jar files in wheelsShyamnath Premnadh2023-03-102-48/+116
| | | | | | | | | | | - Create Qt6AndroidBindings.jar from all the main entrypoint Android Qt classes. - Add Qt6AndroidBindings.jar and other relevant Qt Android jar files added to PySide6 wheel Task-number: PYSIDE-1612 Change-Id: Ie212dd65a844b7c174acc33c43108d0b5fc3cbb7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add license headers to cmake filesFriedemann Kleint2023-02-163-0/+9
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Task-number: QTBUG-105718 Task-number: QTBUG-88621 Change-Id: I98bd2e80f182d8bf7aef6b633f37a428e2dac69b Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Adapt to Qt 6.5Friedemann Kleint2023-02-091-2/+2
| | | | | | | | | | | | | | | | | | | | - Add new enums - Hide field QMetaMethod::mobj made protected by qtbase/0b701ec0cd86afbf6bb0d0abb361cfb6500c2e1b - Adapt to PDF qtwebengine/6769bd1544c56a514fe35bf16d05614605a49bea - Adapt to qhttpserver/55d10201dc7a47b239825548e053c1fb0de61115, adding a virtual method with rvalue reference to QAbstractHttpServer - create_wheels.py: Adapt to changed location of the metatypes directory in Qt after qtbase/4234ce12dc819b9ca76c8dc4c251f5bd4fe0bc9c. - Adapt error column in QDomDocument test - Fix QMetaObject::invoke() to work after qtbase/fe92b080658f0d8609e2a2a69e5ec2b51dd7bf9d by making the cast of the helper types to Q(Generic)ReturnArgument explicit in the snippets Change-Id: Ifb514878e999ad4c9ef00ff83172626eff112a3d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> 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>
* pyside6-rcc: Fix --binary optionFriedemann Kleint2023-01-201-1/+6
| | | | | | | | | Do not add -g Python, then. Pick-to: 6.4 6.2 Fixes: PYSIDE-2199 Change-Id: I7d9a361d5a4e1a4c01d2aa9e0d25bdc4012cbb10 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Deploy tool: Reduce QML executable size + testsShyamnath Premnadh2022-12-298-22/+95
| | | | | | | | | | | | | | - Added more Nuitka options to reduce the size of QML executable. Some binaries which cause the QML executable to become heavy eg: QtWebEngine are removed, if they are not used - Add new log messages for --verbose option - Add deploy.pyproject file - Modifies pyside6-deploy tests to consider the QML options, by mocking pyside6-qmlimportscanner Task-number: PYSIDE-1612 Change-Id: Id2e94217e99eedbf41ecfc8de1a37e94c7edaa52 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* deploy tool: return Nuitka command for --dry-runShyamnath Premnadh2022-12-294-12/+20
| | | | | | | | | - In the case of dry_run==True, the initial call returns the Nuitka command being run to the main function Task-number: PYSIDE-1612 Change-Id: I48a6d686346dee691f01911c07901fac7f3af4c2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Rename folder: deploy to deploy_libShyamnath Premnadh2022-12-229-2/+2
| | | | | | | | | | - to distinguish between deploy.py and deploy folder, since both are Python modules. This is especially useful when testing since our tests are located in sources/pyside6/tests/tools. Task-number: PYSIDE-1612 Change-Id: Ideb35b23f454ec64415421e00464cfb1f7055401 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* pyside6-deploy: split main()Shyamnath Premnadh2022-12-211-50/+57
| | | | | | | | | | | - This enables better testing of the tool, without requiring to to use the subprocess module - This also enables to mock functions and classes involved Pick-to: 6.4 Task-number: PYSIDE-1612 Change-Id: Ic2fb387e3f49c770f5ade05279ed1639e473d64b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* deploy tool: add error when running on a non-project directoryShyamnath Premnadh2022-12-201-3/+16
| | | | | | | | | | | | | | - Before this patch one could run pyside6-deploy on a non-project directory, which would eventually fail because there is no main python file or a config file - This patch adds an error message when neither the config file nor the main python file is given (or found, incase the file is named main.py) with the pyside6-deploy command Pick-to: 6.4 Change-Id: I5e44efecfcdf50f48b5393fbbbd0e1fb721c0409 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Project Tool: Fix QML issues on WindowsFriedemann Kleint2022-12-153-3/+6
| | | | | | | | | | - Adapt the glob pattern for metatypes to Windows (no build indicator) - Fix qtpaths6 evaluation (split on ':' only once to prevent it from splitting on drive letters) Pick-to: 6.4 Change-Id: I234ce2d462cca67ed0b142edb3a6e8420e4cb125 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* pyside6-project: Suppress passing an empty option --foreign-typesFriedemann Kleint2022-12-131-2/+3
| | | | | | | Pick-to: 6.4 Change-Id: I45c211db9289277b5b1f9fce176ac2351791bdf3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Fix pyside6-project not finding the Qt meta typesFriedemann Kleint2022-12-131-1/+1
| | | | | | | | | Adapt the package directory to the subdirectory created by the tool split 10715102f01bfee9c0122f21680f05414a947357. Pick-to: 6.4 Change-Id: I5065d1bcccf9b32cc414903e7cf405cc6f4956c9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Refactoring: deploy toolShyamnath Premnadh2022-11-295-90/+126
| | | | | | | | | | | | | - Move code sections from deploy.py into config.py - Add check to find .pyproject file and use the files within it to identify project files eg: QML files, Python files - Remove redundant colon in the log messages Pick-to: 6.4 Task-number: PYSIDE-1612 Change-Id: Id92b6caa15da446196196192d117de00518e5cb9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Use 'typing' modules to support Python 3.8Shyamnath Premnadh2022-11-221-2/+2
| | | | | | | | - List instead of list, Tuple instead of tuple Pick-to: 6.4 Change-Id: I128cc8549a1269ffe9c9c8b37e18509d0ace8c65 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySideTools: install tool only if corresponding Qt tool existsShyamnath Premnadh2022-11-162-6/+12
| | | | | | | | | | | | | | | | | | | | | | | - PySide tools which are wrappers around Qt tools are now only installed if the corresponding Qt tool exists. - PySide6 entry points for the Qt tool are now only created if the Qt tool exists in the corresponding Qt installation. - Incase the console entrypoint still exists and the corresponding Qt tool does not exist, the tool would exit stating that the Qt tool does not exist. eg: 'pyside6-uic' is run and 'uic' does not exist. The the tool outputs that the 'uic' does not exist. Ideally as per this change, PySide6 entrypoints for missing Qt tools should not exist at all. - versions.py deleted and contents moved to __init__.py. - Adds warning from Python incase if the tool does not exist. This is in addition to the CMake warning. Fixes: PYSIDE-2097 Pick-to: 6.4 6.2 Change-Id: I3f1b26d103679f7425d9ad85dfed8d9ad17f6fbf Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Qt Designer: Fix loading the custom widgets in virtual env on Windows when ↵Friedemann Kleint2022-11-021-0/+4
| | | | | | | | | | base Python is not in path Add sys._base_executable to the path. Pick-to: 6.4 6.2 Change-Id: I08154453d6a0b4565e9aff8d46bf6950b20ef5ce Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Deploy: Use type hints from typingShyamnath Premnadh2022-10-311-1/+3
| | | | | | | | | - list[Path] to List[Path] Pick-to: 6.4 Change-Id: Ie8c9d8699ded5759763ec1c6ef643a873f6b3977 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Deploy Tool Fix: Correct importShyamnath Premnadh2022-10-251-1/+1
| | | | | | | | | | | - utils.py was renamed to commands.py - __init__.py import run_command anyway, so replacing with relative import Pick-to: 6.4 6.4.0 Change-Id: Ic24228a8e754e39bec5a16436e8dea24669c8dee Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Deploy Tool Fix: os.fspath instead of pathlibShyamnath Premnadh2022-10-252-2/+3
| | | | | | | | | - for subprocess calls use os.fspath instead of pathlib Pick-to: 6.4 6.4.0 Change-Id: I7f0a47d4c8a0d9daa55d6b432f9bac9ed2019a91 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySideTools: Add qmlimportscannerShyamnath Premnadh2022-10-252-0/+5
| | | | | | | | | | | - qmlimportscanner tool helps the deployment tools to identify all the imported QML modules in the QML files associated with the project Pick-to: 6.4 Change-Id: Id708e9de618d2cf277f67973f5474d05aa2a0c41 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Build system: Bump versionsFriedemann Kleint2022-10-251-1/+1
| | | | | | | | | | | | State CMake 3.18+ and Python >= 3.7 Task-number: PYSIDE-2091 Pick-to: 6.4 Change-Id: Iad906a48bf4378ceeeebe5a55aeaa3f27ea0a61f Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Project Tool: SplitShyamnath Premnadh2022-10-207-340/+387
| | | | | | | | | | | - Split classes into separate Python files - utils and project_data - Project operation still inside project.py - Created class ProjectData out of class Project to store the data of the project Pick-to: 6.4.0 Change-Id: I542b74b90b7a4a01cf415d6d2080cbd6ea914e1d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Deploy Tool: Split classes and functionsShyamnath Premnadh2022-10-206-307/+347
| | | | | | | | | | | - As deploy.py was getting bigger, each class is split into respective modules inside psyide-tools/deploy/ Pick-to: 6.4.0 Task-number: PYSIDE-1912 Change-Id: I465a25773343cb842cbfd603941476ed6d575321 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Project tool: fix attribute errorShyamnath Premnadh2022-10-181-2/+6
| | | | | | | | | - there was no setter for self.main_file. This is now added. Pick-to: 6.4 Change-Id: Iebb131e36f5bdc29dc7eff44b98e3defceda4416 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Deploy Tool : Remove PySide6 from dependenciesShyamnath Premnadh2022-10-171-1/+1
| | | | | | | | | | | | | - The tool is anyway shipped with PySide6, hence it can be assumed that PySide6 is installed - The dependency is removed so that it does not upgrade PySide6 while the tools runs. This can cause upgrading an LTS branch that the user uses. Pick-to: 6.4 Task-number: PYSIDE-1912 Change-Id: Id89f17dab20e6853ba5aa39e9e4016c987e65447 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add project generation to pyside6-projectFriedemann Kleint2022-10-144-8/+196
| | | | | | | | | | | Add mode keywords "new-quick", "new-ui" and "new-widget" that create simple applications. [ChangeLog][PySide6] pyside6-project can now generate simple project templates. Change-Id: Id4e457ab3592bd9ac4c8c7f45667e8c166ec4754 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* pyside6-project: Fix invalid resource imports in Qt Designer formsFriedemann Kleint2022-10-131-1/+1
| | | | | | | | | Pass --rc-prefix to uic to get the correct name (see qtbase/5a84483bbfffe57a2b544680c297821ebbb65124). Pick-to: 6.4 Change-Id: I3980c70250e458e52a38d7f238e4860cc2d90693 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add deployment to pyside6-projectShyamnath Premnadh2022-10-101-27/+61
| | | | | | | | | | - new mode 'deploy' which calls the pyside6-deploy tool - simplified run() for code reuse Task-number: PYSIDE-1612 Change-Id: I3a6c762a0df8a480d08ee3575e9898e3abdb7aa1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Desktop DeploymentShyamnath Premnadh2022-10-105-2/+542
| | | | | | | | | | | | | | | - One step solution to deploy PySide6 applications using nuitka without worrying about the plethora of cli options provided by nuitka, at the same time retaining the option to specify advanced nuitka options. - Target: Windows, Linux, Mac - All options are specified through a config file. This makes it easier for expansion to android deployment - Tested for projects with QML files, ui files and rc files Task-number: PYSIDE-1612 Change-Id: Iefbdb55fa1c999295fac2a86b1f6d9b9ec45a0b1 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add an entry point for qtpy2cppFriedemann Kleint2022-09-022-1/+9
| | | | | | | | | [ChangeLog][pyside6] pyside6-qtpy2cpp.py, a Qt-specific, simple tool for converting Python code to C++ has been added. Fixes: PYSIDE-1945 Change-Id: I77659ec6b49c0d3f657b4d19e5866f3057561771 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Move qtpy2cpp to sources/pyside-toolsFriedemann Kleint2022-09-0211-0/+1209
| | | | | | | | Preparing the entry point. Task-number: PYSIDE-1945 Change-Id: I4a2fbe6d35b4f97bf0ab7cfc2085b86a40bc2558 Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySideTools: Add qmllsShyamnath Premnadh2022-08-112-1/+6
| | | | | | | | | - added qml language server Task-number: PYSIDE-2004 Change-Id: I79c44588c7db42c87914162a5babd4e390ff9a88 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* PySideTools: Add qmlformatShyamnath Premnadh2022-08-032-1/+6
| | | | | | | | - adds qmlformat Task-number: PYSIDE-2004 Change-Id: I6b5fb160d3f832317b41504184dd27586279c802 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* tools: add pyside6-qmlShyamnath Premnadh2022-06-143-1/+253
| | | | | | | | | | | | | | | | | - pyside6-qml is a tool that mimics the capabilities of qml utility and enables quick prototyping for qml files. Most cli options of the qml tool are carried forward to this tool. example-usage: pyside6-qml -a gui examples/declarative/editingmodel/main.qml To see all the cli options available with this tool, do: pyside6-qml --help Task-number: PYSIDE-1878 Pick-to: 6.3 Change-Id: I98bd77ccf6a0a286bb54da264312e81bf2964dc7 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Use SPDX license identifiersLucie Gérard2022-05-273-115/+6
| | | | | | | | | | | 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>