| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
|
| |
Apply the same filtering as introduced for
toCurrencyString() by 52e3b960b30950ac7bb59bb31e00d6d1038828f1
to prevent unsigned overloads from being generated.
Fixes: PYSIDE-2168
Pick-to: 6.4 6.2
Change-Id: I3b74e9db238e9b4f34fd7bc1ff7a3a5ac7682d37
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Task-number: QTBUG-109570
Change-Id: Ieb13bf352d9b75e364a73bddc464548ec19701ed
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
| |
Pick-to: 6.4 6.2 5.15
Fixes: PYSIDE-1931
Change-Id: I306de4874258794112f03564811473676c6a6bc7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The __signature__ attribute was used since 2017 with success.
With Python 3.10, there was an incompatibility introduced by
the rlcompleter module. This was detected quite late, because
there is no exception thrown in normal line completion.
Using the rlcompleter module directly, the error can be seen.
The problem is not the attribute itself, but PySide's need to
support *multi-signature*. The signature objects are either
regular compatible Signature objects, or in the multi-case,
*lists* thereof.
Since PyPy was implemented, the internal use of the __signature__
attribute was replaced by a get_signature() call. The attribute
was never documented in the public until recently in the
developer docs. We therefor can assume that removal of the
attribute will cause no problems.
[ChangeLog][PySide6] The non-standard __signature__ attribute of
functions and classes was removed in favor of get_signature().
No Pick-to because this is meant for 6.5
Change-Id: Iaa8bb08a33db66868d949593e527b753bf989681
Fixes: PYSIDE-2101
Task-number: PYSIDE-510
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-1345
Change-Id: I4baee728a0bb89bb4f698e0ce0b492d219030077
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
vertexDataAsPoint2D returns a pointer (const/non-const for
modification) to a series of Point2D within a geometry, but since in
Python we don't have access to it, this change replaces that signature
for one that returns a list of Point2D elements.
For Pythonicity, also add a setter setVertexDataAsPoint2D() to enable
modification.
Fixes: PYSIDE-1345
Change-Id: I6aba2a097022637c398ad94c17f342f13b4da449
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Include headers into the source instead of the wrapper header.
Task-number: PYSIDE-2155
Change-Id: I503fddb82e063b71b1c5f03f365eadc3185c8f13
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
- Remove some unused include statements
- Replace C-headers (string.h) by the C++ versions (cstring)
- Use WIN32_LEAN_AND_MEAN for windows.h
Task-number: PYSIDE-2155
Change-Id: I8085e36f336d227218abb6c06cdd52d24c0761f4
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-2155
Change-Id: I4f1e08d95dbae08c755e8169d5b88181361ddbdf
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Remove it from the extra includes and Include it in source code only.
Task-number: PYSIDE-2155
Change-Id: I22930060a05bdac2f4642ddc9418a5371d073316
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Use a header-guard like technique to prevent clashes.
Task-number: PYSIDE-2155
Change-Id: I942f65ef326ede3e29d7afca301da5a14fe5b0a2
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
The duplicated static functions cause clashes in
CMake UNITY_BUILD (jumbo) builds.
Task-number: PYSIDE-2155
Change-Id: I01c07d37a0fa1fb228ca26457ad6a5e5bbaaaba9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The automatic assignment of Flag vs. Enum does not
always work, like in `StyleStrategy`.
This was actually already with old enums.
Change-Id: I09407af7fee713a9ad2ce24578290e93f341e7d7
Fixes: PYSIDE-628
Task-number: PYSIDE-1735
Pick-to: 6.4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For non-C++ slots routed via GlobalReceiverV2, sender()
of the receiving QObject returns 0. To fix this, store
the sender obtained in GlobalReceiverV2::qt_metacall()
temporarily in a special dynamic property of the receiver
and inject code checking it into QObject::sender(). This
fixes at least the synchronous calls.
Fixes: PYSIDE-2144
Fixes: PYSIDE-1295
Change-Id: Ia111162eb1404914ecfb7f19fadb8a1b63ae8b4a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GlobalReceiverV2 connected to the destroyed() signal of the senders to
keep track of its lifetime, which caused issues with delayed emission
of signals when using threads.
To fix this, change GlobalReceiverV2's sender list to use QPointer,
which automatically tracks the lifetime of the pointees. Move the
deletion of the GlobalReceiverV2 instances into SignalManager,
completely, removing the "delete this" pattern used.
This allows for removing some hacks for the QObject::receivers()
function.
Fixes: PYSIDE-2141
Change-Id: I361256f919dab13bfcf20800624b2454308bbc4b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QLocale.toCurrencyString() has a plethora of overloads from
short/ushort to long long and float types. Since the overload sorter
currently has no rules for preferring float over unsigned integer
types, an unsigned conversion was done for float types with decimals,
resulting in decimals being lost.
This could arguably be fixed by adding rules for preferring float over
unsigned integer types. However, since Python only knows int and
float, it does not really make sense to generate a complex overload
logic. Remove the unsigned and short overloads instead.
Fixes: PYSIDE-2133
Pick-to: 6.4 6.2
Change-Id: Id2ef2ec02f4f962606851faf237d80196872eed2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Remove superfluous reference, fixing warning:
PySide6/QtCore/qmetatype_wrapper.cpp: In function ‘void PyTypeObject_PythonToCpp_QMetaType(PyObject*, void*)’:
PySide6/QtCore/qmetatype_wrapper.cpp:2764:54: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Pick-to: 6.4 6.2
Change-Id: I746597bc54613a49c19842d65813de4e510f2fec
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Add allow-thread to the newly introduced functions.
Amends aae2f599e8215e49747c9b5dce698d35b913c6c7.
Pick-to: 6.4
Fixes: PYSIDE-2121
Task-number: PYSIDE-1898
Change-Id: I2243c2809b275e23ececae0cdd9225db2aaf7225
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The rlcompleter module calls inspect.signature which breaks
the multi-signatures of the signature C module.
The __signature__ attribute should no longer be used anyway
and people should use get_signature(), instead. But before we
evict this attribute, this patch fixes the problem, temporarily.
[ChangeLog][PySide6] Python 3.10 and up have an incompatibility
to the __signature__ attribute. This temporary patch fixes this
until final removal of that attribute.
Change-Id: Ic08d551cd388e6b3b29eb4694427a7202a4272b4
Fixes: PYSIDE-2101
Pick-to: 6.4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Put them into the module namespace and give them the same name
as the corresponding C++ typedefs.
Fixes: PYSIDE-753
Change-Id: I587fd8268f9be4c4ac8e1c7ac5a943814d399001
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The list of IntEnum was not including the extra modules.
We now installed and checked
PyQt6
PyQt6-3D
PyQt6-Charts
PyQt6-DataVisualization
PyQt6-NetworkAuth
PyQt6-WebEngine
and found two omissions by that.
Change-Id: I891d1771bdab6f53b6bd61de09109465fbb31735
Task-number: PYSIDE-1735
Pick-to: 6.3 6.4
Fixes: PYSIDE-2110
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The list of IntEnum overrides has been updated a bit.
We adjust this list accordingly to keep compatibility.
Task-number: PYSIDE-1735
Change-Id: I20ee82637020d5b26f5acedf5b98b8831e3b7f73
Pick-to: 6.3 6.4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- remove qopenglfunctions_es2.h from extra includes of
QOpenGLVersionFunctionsFactory. It is not needed and causes errors
after syncqt refactorings.
- Add QOpenGLFunctions_ES2 to dropped entries for Desktop GL.
Pick-to: 6.4
Task-number: QTBUG-103196
Change-Id: Ib8cb98f11b9d9b8e9fe39ee9d40b6d03005b6854
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.4 6.2
Change-Id: Id7f1c8923eb8612771863893ab159d3434ca5041
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Specify include paths with module for the headers that exist in qtbase
as well.
Pick-to: 6.4 6.2
Task-number: PYSIDE-2099
Change-Id: I470c38dc3e47d752348cf7cb41b3849b20ca8c73
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
The list of IntEnum overrides has been updated a bit.
We adjust this list accordingly to keep compatibility.
Change-Id: I253ba37328516bf31cbb086f7ed177f8c7b03109
Fixes: PYSIDE-2104
Task-number: PYSIDE-1735
Pick-to: 6.3 6.4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
the module header
Pick-to: 6.4
Task-number: PYSIDE-2099
Change-Id: I4607a6a224f194edadf25a9aa2d27b3eca0dede2
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
Amends f1bcf7d077282f9248aee570545765ef60af00e3.
Pick-to: 6.4 6.2
Task-number: PYSIDE-1339
Task-number: PYSIDE-904
Task-number: PYSIDE-2099
Change-Id: Ifaf9c36ffb07a561a9521e9abbd39d677c997405
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Private signals (cannot be emitted by the user) were
previously rejected due to the trailing QPrivateSignal
parameter. Remove it and set a flag instead.
Pick-to: 6.4
Fixes: PYSIDE-2076
Task-number: PYSIDE-1603
Change-Id: I9bad43bf6bbce0483ec6fd01e3fbf7bd2f38a412
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
| |
Fixes: PYSIDE-2088
Pick-to: 6.4 6.4.0
Change-Id: Ib571f67117403881001b51b1fda573074aa3fefc
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Change 6c03699b50f2597a1c150db86fed4bcb95b297bf removed
modified-removed arguments from the signatures, causing some
heuristics in shibokensupport/signature/mapping.py to fail. Fix by
specifying the return types.
Fixes: PYSIDE-2081
Pick-to: 6.4
Change-Id: I227a0ff0c9f079ed9e58593dafa80a92e702c8d0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Complements f251f658c135e87ab82f58ba162867935caed21a.
Change-Id: I6493ff25b8c27ec64101d77145b7aac1cc458555
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
| |
[ChangeLog][PySide6] QtSerialBus has been added.
Change-Id: I661912279fa03b51d19483b603fff830ede225a9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
[ChangeLog][PySide6] A context manager for QOpenGLVertexArrayObject.Binder
has been added.
Pick-to: 6.4
Change-Id: Ic839ed87f17f99c33b88d7fc5a0dd4842a4c7560
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
qAsConst() will be deprecated in Qt 6.5.
Task-number: QTBUG-99313
Change-Id: Ibc7c2e26b0e52cec905a406ef081e0b99bcce50f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use the existing library function to handle new enums
correctly.
Amends 20eb4f94c637d20461f1fef16942841803ada909,
66e9e9e0674dff4ac0715faf17bf039eeb287df7 .
Change-Id: I93b4ffe60d0386cbeb4a7e84782755e77584dc32
Task-number: PYSIDE-1930
Task-number: PYSIDE-1870
Task-number: PYSIDE-1735
Pick-to: 6.3
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After change 50d0c3c94ff66c104de269f09c08109eb9d0eb3a, shiboken now
also matches unresolved signatures. It is then no longer required to
exactly resolve the GL typedefs.
Remove the entities used for this. Some signatures needed fixing as
well.
This fixes some platform-specific warnings about unmatched signatures
for modifications.
Change-Id: Iee9fbaef1a0142956942bc9431db38166fd6fa1d
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After change 50d0c3c94ff66c104de269f09c08109eb9d0eb3a,
shiboken now also matches unresolved signatures.
It is then no longer required to exactly resolve the GL typedefs.
Remove the entities used for this. Some signatures needed fixing
as well.
This fixes some platform-specific warnings about unmatched signatures
for modifications.
Change-Id: I544c7768038c56acb92c751c3085bf2938960f51
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
- Add missing include to primitivetypeentry.h, making the header
self-sufficient. Amends 21e1bfafa1ed86adfa2e9ec4e990a582e4a20266.
- Remove unused function in codesnip.cpp
- Do not inject unused functions into qmenubar_wrapper.cpp
Pick-to: 6.3 6.2
Change-Id: Iaa077406c91f52ba47ce29534ee2b12bd8c23955
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
| |
Change-Id: I00fb5202fb136192b74ab598bbab9837b205a62a
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add some #ifdefs for GL only constants.
Amends 39821c9265ca15373725e408b5ede19794b9e419.
Task-number: PYSIDE-2013
Fixes: PYSIDE-2060
Change-Id: I8cd5e0d297db18de094ade3acbb61dfa39aa0f4c
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
The function is exported, but not declared in Qt; requiring some
declarations.
Fixes: PYSIDE-2059
Change-Id: I682483553ea1a46b978f57e991cabe4b303607f3
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
| |
Task-number: QTBUG-89564
Change-Id: Iee2e2ac1acc608c746f84e9a28295b0016a4deed
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
| |
Change-Id: I00073b583c8c84e764a8693b50af44b3b91d55eb
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
QValue3DAxisFormatter::gridPositions(),
QValue3DAxisFormatter::labelPositions(), and
QValue3DAxisFormatter::labelStrings() return non-const-references to
lists for modifications. In PySide, add setters for them.
Task-number: PYSIDE-2025
Change-Id: I90f788962380eb2ff95736b33533c1c09b59fdce
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This enables using "QVariant", which is needed for QML.
Amends aae2f599e8215e49747c9b5dce698d35b913c6c7.
Remove a left-over qDebug().
Task-number: PYSIDE-1898
Change-Id: Ibbb543cfe582eba5d652dc180191c2741730c4e6
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After turning IntEnum into Enum, a few classes need more
attention because the simple int coercion is no more
sufficient. Instead, a bit of help is necessary to make
the usage of the __or__ operator consistent, again.
On first sight, this coercion to KeyCombination looks slightly
unpythonic. But this originates in the complex matters. If you
observe what types are actually added, this is very correct.
Using the IntEnum version instead is not better. It is just
hiding the ongoings by using int, which would also allow
to combine two characters as a bad side effect.
[ChangeLog][PySide6] PyEnum now handles QKeyCombination correctly
with "|" or (deprecated) "+" operators, without falling back
to using IntEnum.
Task-number: PYSIDE-1735
Change-Id: I08b93b8b7ece75ca650f2916ec6f6f5bb711a70b
Pick-to: 6.3
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
| |
Task-number: PYSIDE-1571
Pick-to: 6.3
Change-Id: I12f23238333a350835bb923299a7b2e5fbf9cb03
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Do not restore the cursor in the destructor of the helper
class, only in __exit__ of the context manager.
Amends f81168387be7879f9167405b28d29ba26e7b3f14.
Fixes: PYSIDE-2039
Pick-to: 6.3 6.3.2
Change-Id: I78d1dc402adda953ec3d5516631cfda5900a9a43
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Add the allow-thread attribute for the compatibility overloads
along with a fixme comment.
Pick-to: 6.3 6.2 5.15
Fixes: PYSIDE-2034
Task-number: PYSIDE-803
Change-Id: Id89767c8fdd14cc450ae131ead873d1afdc94b8f
Reviewed-by: Christian Tismer <tismer@stackless.com>
|