| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Replace the deprecated QRegExp by QRegularExpression,
introducing an enumeration for the filter types as is done in
the C++ example. Import classes.
Task-number: PYSIDE-841
Task-number: PYSIDE-1339
Task-number: PYSIDE-904
Change-Id: I6aa1bc2b325bb5168c70be3c28a59c5c7629fe3e
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
|
| |
- Replace qrand() by QRandomGenerator
- Replace QMatrix by QTransform
Task-number: PYSIDE-841
Task-number: PYSIDE-1339
Task-number: PYSIDE-904
Change-Id: I8609a9ce90a6df1cb7c7f1b9aab61695edf41a3f
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
|
| |
- Import by class
- Rename variables and functions,
- Fix long lines
Task-number: PYSIDE-841
Change-Id: Icb4615e15d0b54d3e2893ffa7981ced7b7526952
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
Rename variables and functions to snake case and streamline
code.
Change-Id: Ia4d1b36f5cebfe8ef58f161bafa3e1628109c865
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
|
| |
QRegExp is deprecated.
Task-number: PYSIDE-1339
Task-number: PYSIDE-904
Change-Id: I5c5dc4965a03fbd1a3370be3fa9e64c5df6a9fd8
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
| |
Adding an example with systray functionality,
since we didn't have any in our repo.
Task-number: PYSIDE-841
Change-Id: I7df67c55d38c1f98f9e4c28c82e6253bae494272
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Amends 5d34d60418b15d4d6837d0a1333f2b57631309eb,
d579912b31d7cfa7b0b216916fbbf3eb632a9d9d.
Task-number: PYSIDE-571
Change-Id: I214d7bf1770667eaa9abaea0f96b5e507b4c32f7
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|/
|
|
|
|
|
|
|
| |
Port the widget gallery example added to Qt 5.15 by
qtbase/7b0f34187224fe754f4171f1d2fe5fa3f48baf82
to Python.
Change-Id: If70e5dd3a8b08fbf8aed1c894a374fffdebc6f57
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
|
|
|
|
|
|
| |
Amends d579912b31d7cfa7b0b216916fbbf3eb632a9d9d.
Task-number: PYSIDE-571
Change-Id: Ide49ef2c9f99335b5019daea7d27cd1d86e896a4
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
| |
By mistake some examples were released under LGPL,
but Qt for Python examples are distributed with the BSD license.
Change-Id: Idbbf2067f2321d14cb3276ea36fe13f6551498a6
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
|
|
|
|
|
|
|
|
|
| |
The goal of this file is to provide an example for signals being
emitted from one thread to another.
Task-number: PYSIDE-841
Change-Id: If494fbfef6d8c46b37d5b750163c909bc6c55c7a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
While the example works correctly as is, if one takes the StarEditor
class alone, it will fail to work as it uses a starRating attribute that
is available in the example only because of the call to setEditorData
by the StarDelegate class.
This patch fixes that as well makes use of the append overload of
QPolygonF taking a list of point to simplify the code a bit.
Change-Id: Id8132fa86f5668645f48c62377dac65f707c968b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
| |
Change-Id: I85216bcfc23161b832ecb675ea58f33e67004fe9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
| |
Change-Id: Iba52405551440659d60b11b3dfb9078d6066cec6
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
| |
Change-Id: I4dec66067aa2b0cc50d1ac3226537e4f09006132
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
|
|\
| |
| |
| | |
Change-Id: I42955abfeb1fe8b7c6443a9b334154984286b9cc
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
QSaveFile should preferably used for writing out files from editor
applications to ensure files are properly written and existing files
are not overwritten should writing fail.
Change-Id: I5d9b98c168649d23f5ee31171b1729fd230dc8de
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|\|
| |
| |
| | |
Change-Id: Ia87a2e46bb051f1cccf3b7ba988aeb5eb32c0f0e
|
| |
| |
| |
| |
| |
| | |
Task-number: PYSIDE-797
Change-Id: I69904a6e104fc40ddb6e60e99761ffc30bcf717a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
| |
| |
| |
| |
| | |
Task-number: PYSIDE-855
Change-Id: Ib6f3989f1303f59c095cb12060f45388f0500b41
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
|\|
| |
| |
| | |
Change-Id: I7fc1857f15ccf5d9667dd6d6adb8208c775c6722
|
| |
| |
| |
| |
| | |
Change-Id: Iee3070f59472ee6a75495304f841ba012c90e873
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
| |
| |
| |
| | |
Change-Id: I0c82e2d5a8fb431f55dd9d54ecaab48d8f40adb6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|\|
| |
| |
| | |
Change-Id: I799b9e4784722de40e53922f7355ab801b924833
|
| |
| |
| |
| |
| |
| | |
Change-Id: I3b5420963445987f407d4332d0823e2790210f0a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|\|
| |
| |
| | |
Change-Id: I137dc1d4b7dc73ee8ad4cff2eb031e2aaead2644
|
| |
| |
| |
| |
| | |
Change-Id: I0a72f484fb5591f8c1d47fa534407c8e15cdb396
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
|/
|
|
|
|
|
| |
Based on Qt's Code Editor example
Change-Id: I17ba0dfbafcda5a599cd2ef051e842cdd4b6e305
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
There was a mix of 644 and 755,
since we expect the users to execute:
python example.py
we do not need to have files with 755.
Change-Id: Iba9b2f5dbb57fe2a3503d8dfe971a4e92e764022
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Simo Fält <simo.falt@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
- Use a QTextStream to read lines correctly.
- Base it on QSyntaxHighlighter instead of hooking into the text
document.
- Streamline code and use standard keybindings
- Fix imports.
Change-Id: I2bd9571c85bb3cca1e90cd9cb441dfe35d26b685
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
|
|
|
|
|
| |
Task-number: PYSIDE-712
Change-Id: Ib91e4fec88bdb7146e54c285c7f4da60deecb6cf
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After correcting the QByteArray behavior, the available
constructors are constraint to bytes, bytearrays,
and others QByteArrays.
The modified lines are methods that use the modified
argument as a QByteArray (interally), that is why we now we
transform them:
"test value" -> b"test value"
Bytes are Python 2 and 3 compatible, so it does not affect
the version.
The only different change is inside `schema.py`
where a change was needed to encode a QByteArray into
utf-8.
Since this is outside our automated test, I manually test
it with Python 2.7.15 and 3.6.3 on Linux.
Task-number: PYSIDE-669
Change-Id: I8c12533b482150f4aee3d813dc127eb6b819549b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Removing the word 'project' from all the headers,
and changing the PySide reference from the examples
to Qt for Python:
The following line was used inside the source/ and
build_scripts/ directory:
for i in $(grep -r "the Qt for Python project" * |grep -v "pyside2-tools" | awk '{print $1}' | sed 's/:.*//g');do sed -i 's/the\ Qt\ for\ Python\ project/Qt\ for\ Python/g' $i;done
and the following line was used inside the examples/ directory:
for i in $(grep -r "of the PySide" * |grep -v "pyside2-tools" | awk '{print $1}' | sed 's/:.*//g');do sed -i 's/of\ the\ PySide/of\ the\ Qt\ for\ Python/g' $i;done
Change-Id: Ic480714686ad62ac4d81c670f87f1c2033d4ffa1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
|
|
| |
Amends 9f2a9aba3aff73e31ea15eb4a7a04b0e50f4ee4e.
Task-number: PYSIDE-363
Change-Id: If22a5bf2705671cec7d75519030de73eaa8a391f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
|
Move PySide2 examples that are owned by the Qt Company
to a new examples directory.
Done-with: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Task-number: PYSIDE-363
Change-Id: I14099764d9eef2bc35e067086121427955862e3a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|