| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Generate "var += 1" instead of "var = var + 1".
Change-Id: Ia9b3b3e4135156ebac8b7d5b1f47c735e2be1458
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
|
|
|
|
|
|
|
| |
Add a future statement to all Python source files.
Task-number: PYSIDE-2786
Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
|
|
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-1106
Change-Id: I26ef6c9631c48c1bdde852e3bb3cd222ffec1260
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Extend the matching to recognize connects for member variables
(m_ui.button), remove smart pointer accessor.
Pick-to: 6.5
Task-number: PYSIDE-1106
Change-Id: Ib68df3d9d31a8de64059832c4c60ad4b20bf78e1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use a regexp to change u"s"_s to "s".
Amends 4315cfb44eaa8abd57c685390c6b9d3aff09ba0f.
Pick-to: 6.4 6.2
Task-number: PYSIDE-2151
Task-number: PYSIDE-1106
Change-Id: Id8a2cdee5966dfc4c5fbff9df6e7b9eeb7c0e436
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Add QStringLiteral and others and handle multiple occurrences
per line better by making the patterns more discriminative.
Pick-to: 6.4 6.2
Task-number: PYSIDE-2151
Task-number: PYSIDE-1106
Change-Id: I37589dfafe27d69480db665363d5900d163014da
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
| |
Pick-to: 6.2
Change-Id: If31883998a08073ecf4ca7bfb91ee000cc2f630f
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
Change e48dce39c1450e73f7cdef58cfeba29e1c3b8be3 introduced a bug
appending "()" to member initalizer lists "m_member(new X()),". Fix
that by using a regexp to loop through the expressions.
Pick-to: 6.3
Change-Id: I6ce095749bcab74e92fb6dd630f25fb9fd517cc5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
| |
Pick-to: 6.3
Change-Id: Ie7642f45d59839a52a650abd47383e30e508b8d3
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Precompile the regular expressions and store the stripped string.
Brings down user time from 2.3s to 2s, approximately.
Pick-to: 6.3
Change-Id: If929dc0c85cbe3e797bb3ec01eff9c434a8c5527
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Use one non-greedy regexp instead of several ones.
Pick-to: 6.3
Change-Id: I192476b5f184d22227fdd0e26ec9408098114b0e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
Replace pairs of instance/pointer to member functions (PMF) by
the Python dot notation and connect statements afterwards.
Pick-to: 6.3 6.2
Task-number: PYSIDE-1721
Change-Id: I29f01d47026e3a7ab2407cf8c5b112533d5fb4dc
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Pick-to: 6.3 6.2
Task-number: PYSIDE-2030
Change-Id: Icd6f3a639449d737933d4420fbeb891224999b59
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
Adapt the regexes accordingly.
Pick-to: 6.3 6.2
Fixes: PYSIDE-2030
Change-Id: I6515b2ca0fe23c753feadeb491173b72889abba5
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Change-Id: I8cbf5d521900df4f55abf8f68997f8a71437f722
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix a fixme commment. To make this pass, make the conditions matches
more strict and add some warnings and error handling.
Remove the checking of stderr from the CMake statement as this will
produce some warnings.
Pick-to: 6.2
Task-number: PYSIDE-1721
Change-Id: I8aeefa8355144d98524a622733d82d337cd3c23b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
qtbase/0e69349f6f8e9445877ea5b2105973115ad79cf7 introduced a
multi-line emit statement, causing snippets_translate to fail.
Add a warning message which then shows:
snippets_translate: Warning "emit renderedImage(result, resultSize," does not match function call
Change-Id: Id27770eab1e60d7828e7d742e63d1de2d530ad02
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
This is not a C++ -> Python translator,
but a line-by-line conversion tool.
This scripts requires two arguments to identify a Qt and PySide
directory including the sources.
There is a set of file extensions that are currently omitted from
the process, and for the ones that will be copied, there will be
messages related if the file already exists or if it's new.
If you use the '-v' option, you will see the C++ code and the
converted Python code, so it's easy to check for issues and missing
features.
Also, two command line options were added to have a different behavior
'--filter' to include a word to filter the full paths of all the
snippets found (for example the name of a directory),
and '-s/--single' to translate only a specific C++ file to be
translated.
Including test cases for transformations related to the C++
snippets.
Fixes: PYSIDE-691
Pick-to: 6.0
Change-Id: I208e3a9139c7e84fe369a7c2ea93af240d83fa83
Reviewed-by: Christian Tismer <tismer@stackless.com>
|