| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Suppress return value heuristics for them.
Pick-to: 6.7
Task-number: PYSIDE-1057
Change-Id: Id249d8c769f808600545f7a48861bd4fe7eae6fe
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
| |
Suppress return value heuristics for them.
Pick-to: 6.7
Task-number: PYSIDE-2793
Change-Id: I4ebf8c971b02fb00b9c6658b02157eb26d71f418
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
Task-number: PYSIDE-769
Task-number: PYSIDE-2786
Change-Id: I560d0c25f3503217f920906a5b26193282b0247b
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
| |
Properly document the arguments to QtAsyncio.run() with a docstring
instead of leaving it only to the module rst.
Task-number: PYSIDE-769
Change-Id: Ia4d63b3cdf81d052203a2752ed3ca6cb0b40f814
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the optional application argument from the constructor of
QAsyncioEventLoopPolicy, as it is unnecessary. If a QCoreApplication or
other type of qApp was created outside of QtAsyncio, it will always be
retrieved by QCoreApplication.instance(), and therefore passing it as an
argument makes little sense.
Task-number: PYSIDE-769
Change-Id: Iac7a913a1c9d6ebbb0984fe11f8b5cda955baab1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a metatype registration for the class for them to work.
[ChangeLog][PySide6] Properties of type QAbstractItemModel can now be
used in QML.
Pick-to: 6.7
Change-Id: I3c0c08175a09f1decb00726b65edc73746fa71a7
Reviewed-by: Adrian Herrmann <adrian.herrmann@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>
|
| |
|
|
|
|
|
|
|
|
|
| |
The singleShot overload that accepts a context argument was used inside
the do() method of the QAsyncioExecutorWrapper class, but this usage was
unnecessary and adds confusion.
Task-number: PYSIDE-769
Change-Id: Idcdd99eda6ae3bfd11ec50b9a42ff15ade005cc9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Initialize variables
- Use auto *
- Use range-based for
- Move '#include "sbktypefactory.h"' from basewrapper.h to shiboken.h
(for use by the generated code)
- Fix some int types (Py_ssize_t/size_t) to avoid lossy conversions
Change-Id: I7cc8b33850afcd07cc8f9a115e56a77cbacd58b0
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Additionally, also move setting Python_SOABI manually for Android to
where FindPython CMake module is called. This also aids in naming the
wheel correctly.
Pick-to: 6.7
Task-number: PYSIDE-2766
Change-Id: I73c089d31e2ee629f3ed676965fca27d53882110
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Improve the inline documentation of QtAsyncio with more comprehensive
comments.
Pick-to: 6.7
Task-number: PYSIDE-769
Change-Id: Ia25bab88de3cb66178ced15fe3b2a4d35e9c09a0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix an issue where exceptions were not shown when raised inside a slot
called from a zero-delay singleshot timer, causing problems further down
the line.
Pick-to: 6.7
Fixes: PYSIDE-2745
Change-Id: Iab7696663e5dfa00d99d28ee21ac687fde4cf731
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
It returns the item passed to createIndex().
Amends c8970b29d76415d41fa383cbe5eb77eefb191fa1.
Pick-to: 6.7
Fixes: PYSIDE-2762
Task-number: PYSIDE-883
Change-Id: I0fd33b4958513db9355af9147033872ef335c07e
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
| |
Fixes: PYSIDE-2759
Pick-to: 6.7
Change-Id: I0aa203a868ea37e07fc51ea892a11038bcc6faab
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
The interface was added as preliminary in qtbase commit
9d16d5e2245c26e5746fd7609300b84a2a983457 and is no longer
preliminary since qtbase commit
2496882ea71b8bc52c84e1b9c59cfd48cd56c6f2.
Pick-to: 6.7
Change-Id: I8a24aa2a7a1cd961bdc9974f41d407783ad1a82b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
QItemSelection as return-type attribute is unnecessary to make the function known to shiboken. And it was mistakenly setting it as the return type in the Python signature.
Pick-to: 6.7
Fixes: PYSIDE-2756
Change-Id: I1f7a4355f483e968839dad34d0e9b9cee8fa06b0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Use the PY_RETURN_* macros for returning them.
Pick-to: 6.7 6.5
Task-number: PYSIDE-2747
Change-Id: I48db8b958925e6ae39ce8ae8fb926429d0e4cd02
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
QtWebEngineQuick was missing the dependency to QtWebEngineCore
and thus rejected the function due to missing class
QWebEngineUrlRequestInterceptor.
Fixes: PYSIDE-2758
Pick-to: 6.7
Change-Id: I334a9c6899b1093d27d39cdb57e84f4b5aed6d65
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Header QSurfaceDataProxy no longer exists after
qtgraphs/b023ef4ef5686656437be0795099de2be0ac216f .
Pick-to: 6.7
Change-Id: Iaca9d85208ec22d19d5eb240f77cc83987146e49
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Remove setting of parent relationship to the return values of
QObjects.parent(), QWidget.parentWidget().
Fixes: PYSIDE-2711
Change-Id: Ib6fbcea4b1ecd0efa95d9e4c71dccc5cd0d365aa
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Complements ad5eb64daaaa1b927bcbf9e568738f417fef845f.
Pick-to: 6.7
Task-number: PYSIDE-1106
Change-Id: I0ae554db3be02d6160e7e00af46f21ff0a34cca8
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
Improve the inline documentation of QtAsyncio with more comprehensive
comments.
Pick-to: 6.7
Task-number: PYSIDE-769
Change-Id: I7306da43d8f1f350dae188f5346cdec8f60a7a06
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Improve the inline documentation of QtAsyncio with more comprehensive
comments.
Pick-to: 6.7
Task-number: PYSIDE-769
Change-Id: I3828dea94f770a69e8d0390fd803b923ba932fc2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The function PyErr_SetString is used quite often, which has
no return value. The bracketed sequence
PyErr_SetString(...);
return nullptr;
can in most cases be replaced by a single call to
return PyErr_Format(...);
To simplify matters, PyErr_Format is now used everywhere.
Task-number: PYSIDE-2404
Change-Id: I5988fcd2430be700415d14d7a5cc740211e61d08
Pick-to: 6.7
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
| |
The function takes strings like the other translate() functions.
Pick-to: 6.7 6.5
Fixes: PYSIDE-2748
Change-Id: I331ba045276192c6f83ddae3f1a24459a9570bfa
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
In case of a chain QLabel->QWidget->QObject; QWidget should be marked
as a polymorphic base and checked for example for functions returning
a QWidget *.
Change-Id: I44306d6635794119e6f18658a438e64160c5c41c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Improve the readability of the QAsyncioTask._step function; avoid nested
try/except blocks.
Pick-to: 6.7
Task-number: PYSIDE-769
Change-Id: Ibb82c50cf93b084b30dd2a5abcc0197ae25802e0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Identified by the script added by
1251a23cfd13bb0652f38ef3b36087034f552d57.
[ChangeLog][PySide6] A number of missing classes have been added.
Task-number: PYSIDE-487
Pick-to: 6.7
Change-Id: Ia62aab2578d46f00540856557474bc394669613f
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Handle timeouts should be rounded up or down instead of only up as
happens with a plain int() call. Otherwise, a timeout of e.g. 0.9 would
be handled as 0, where 1 would be more appropriate.
Pick-to: 6.7
Task-number: PYSIDE-2644
Task-number: PYSIDE-769
Change-Id: I19585010c3e007afb6ae83750e4b6ffc9beb5961
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a task was cancelled, then a new future created from this task should
be cancelled as well. Otherwise, in some scenarios like a loop inside
the task and with bad timing, if the new future is not cancelled, the
task would continue running in this loop despite having been cancelled.
This bad timing can occur especially if the first future finishes very
quickly.
Pick-to: 6.7
Fixes: PYSIDE-2644
Task-number: PYSIDE-769
Change-Id: Icfff6e4ad5da565f50e3d89fbf85d1fecbf93650
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Introduce "Python override" as a special type of user-added function
which will cause a function calling a Python override into the native
wrapper. This can then be called from a virtual that has a signature
which cannot be handled in Python.
Fixes: PYSIDE-2602
Pick-to: 6.7
Change-Id: I5fc44ebe3f585078e87d3230d5e6f4faa67a4ee1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the typical pattern ported from C++
dialog = QDialog(mainWin)
dialog.exec()
one would expected the dialog to be deleted. However,
due to the constructor heuristics creating a parent-child
relationship, the dialog leaks. Add a modification
to remove the relationship in case exec() is called.
Change-Id: Ibc6f8c150cbd80a4085af4a5b713ee7c2c62abf3
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use the %B-placeholder for base classes always, changing the generated
expressions from:
reinterpret_cast<QMouseEvent *>(cptr)->type() == QEvent::MouseMove
to
reinterpret_cast<QEvent *>(cptr)->type() == QEvent::MouseMove
Remove the copyable-attributes since object-type is not
copyable anyways.
Pick-to: 6.7
Task-number: PYSIDE-2675
Change-Id: I89092b0afd6901e0f8cf5144eb1185ab1d80a0d5
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Partially revert 4d761eaaf852f8d82925e111150f25c0dd5f3e83.
Adapt to qtmultimedia/7fcea568c9c64f3bcebda21f0df02aa0107dfd0c,
reverting qtmultimedia/edaec2bf714c98d65f12c8ed9a2ffbd1603635a7.
Task-number: QTBUG-123997
Pick-to: 6.7
Change-Id: Ibd0ad737293f4b9107909f37554c03f64bce5d1e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Re-add a dependency that was removed.
Amends f619b4c45b042c3a656a80b57cb4f154ef15bd1a.
Pick-to: 6.7
Task-number: PYSIDE-2649
Change-Id: I8a6d7734fd536438f561edde652ed3e0fe4d828f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Introduce a CMake macro to either add the dependency
or an entry to the dropped items for typesystem parsing.
Pick-to: 6.7
Fixes: PYSIDE-2649
Change-Id: Idb4e6d530075ab8c08c92e2e26d4de1bfd0459cf
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.7
Fixes: PYSIDE-2590
Change-Id: I36ce25bc759cd888f80b797d4f40864c3d2e2a84
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Only the bound Qt library needs to be linked, it will bring its
dependencies.
Add explanatory comment for the exceptions (QtTest, QtSql).
Pick-to: 6.7
Task-number: PYSIDE-2649
Change-Id: Ib84d37248578a76400d307bb5d050005110677c3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
| |
Remove duplicated definition of the enumeration.
Fixes: PYSIDE-2668
Pick-to: 6.7 6.7.0 6.6 6.5
Change-Id: I46279767c48a8c9d4f454748666937328712212d
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A crash occurs when calling
QWebEngineRegisterProtocolHandlerRequest.origin() from a signal
handler of
QWebEngineRegisterProtocolHandlerRequest(QWebEngineRegisterProtocolHandlerRequest).
QWebEngineRegisterProtocolHandlerRequest needs to be a value type for
this to work.
Fixes: PYSIDE-2663
Pick-to: 6.7 6.7.0 6.6 6.5
Change-Id: Iab8c7cb5822455a35c5759137db20b064cb468cc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change d8910df3ccea2897f5e228058f17176cb1fe4093 moved the
qWarning() out of the function were %FUNCTION_NAME is defined,
causing:
format '%F' expects a matching 'double' argument [-Wformat=]
Replace by function name.
Amends d8910df3ccea2897f5e228058f17176cb1fe4093.
Change-Id: Ib25cbb20c6ffe9c225cefa1a22fab8b37406fb59
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Add a documentation page for the pyside6-genpyi tool. This also removes
an unused argument and clarifies that the --feature argument is
currently not available for PyPy.
Change-Id: Ic2fa7e92ae0ccbc30e997db8d7dfad02e5b26732
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Complements 879d804fb462589a206d200bfd0371284be8d394.
Task-number: QTBUG-113331
Change-Id: I7b6acca80e2399463960760af315c7fe22aaa304
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Amend ef7bb87eee9bd4469ad858f7ca15f190dbc4aaf9 and fix
| git/sources/pyside6/PySide6/QtCore/glue/qiopipe.cpp:17:30: error: invalid use of incomplete type 'class QIODevice'
| 17 | class QPipeEndPoint : public QIODevice
| | ^~~~~~~~~
Change-Id: Ica2c5da70def52d54ca13225280181d4530c6a2d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Improve how QtAsyncio handles when the QCoreApplication is quit from
outside, e.g., when pressing the close button. This will prevent
scenarios where asyncio runs the BaseEventLoop destructor after the Qt
application had already been shut down, resulting in RuntimeError. In
addition, this removes some unnecessary RuntimeError raises related to
a closed event loop.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: I52553eed271b5fb5790c09751dd58cc2e52fa174
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This caused a crash in PySide's addLayoutOwnership() code snippet,
whereas Qt errors out with a warning.
Guard all input parameters of the layout snippets with a check.
Rename the snippet "addownership-0" which is used for the itemAt()
functions "addownership-item-at" for clarity and add a check there.
Pick-to: 6.6 6.5
Fixes: PYSIDE-2638
Change-Id: Ia89532059e7a27cc38d790a0d17e24e19d68887f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The central get function is used very often. Since the string
constants are repeated many times and there seems to be no
constant folding, it is better to re-arrange the structure
a bit to avoid code bloat.
By moving the get arguments into a struct, we avoid all
repetitions of string constants and minimize the runtime
overhead.
The structure is now fully backward compatible and
works with unchanged scriptableapplication.
Task-number: PYSIDE-2404
Change-Id: Ie7c788ef75cc3d58366532c5f14ab013ebd792b5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Lazy init is done by module entries which are delayed.
Although visible in the module, the classes are only created
when actually accessed by getattr.
Internally, the access to the global Init_xxx functions is
redirected to a Shiboken::Module::get function which resolves
the classes if not already present in the global type array.
PYSIDE6_OPTION_LAZY
0 - no lazy loading
1 - lazy load all known modules
2 - lazy load all modules
Task-number: PYSIDE-2404
Change-Id: I98c01856e293732c166662050d0fbc6f6ec9082b
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
- remove the Shiboken:AudoDecRef wrapper for the locale
Pick-to: 6.6
Fixes: PYSIDE-2639
Task-number: PYSIDE-2485
Change-Id: I4b56544ae23dfd762e4d711681bceffca05af527
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add an implementation for a QIODevice that can be used to work with
anonymous pipes. It needs to be able to emit the bytesWritten and
readyRead signals. This implementation is lifted from the qt5 source
tree (qtdeclarative/tests/auto/qmlls/lifecycle) and might be added to
Qt in the future, at which point it will be removed from the PySide
source tree.
Change-Id: Iff1208a366dad747352e7507da0818934c26aa4f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|