aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6
Commit message (Collapse)AuthorAgeFilesLines
...
* PySide6: Fix negative values causing an error in QLocale.toString()Friedemann Kleint2023-01-091-3/+3
| | | | | | | | | | | 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>
* PySide6: Port from QSharedPointer to std::shared_ptrFriedemann Kleint2023-01-042-8/+8
| | | | | | Task-number: QTBUG-109570 Change-Id: Ieb13bf352d9b75e364a73bddc464548ec19701ed Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix hang in QSqlQueryModel.setQuery() (PostGres with SSH tunnel)Friedemann Kleint2023-01-041-0/+2
| | | | | | | Pick-to: 6.4 6.2 5.15 Fixes: PYSIDE-1931 Change-Id: I306de4874258794112f03564811473676c6a6bc7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* signature: Evict the __signature__ attribute, long live signature!Christian Tismer2022-12-221-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* PySide6: Add some ownership modifications for the QSGGeometry exampleFriedemann Kleint2022-12-201-2/+27
| | | | | | | 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>
* PySide6: Add vertexDataAsPoint2D()/setVertexDataAsPoint2D()Cristian Maureira-Fredes2022-12-202-0/+39
| | | | | | | | | | | | | | 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>
* Fix unity build of QtDataVisualizationFriedemann Kleint2022-12-191-5/+4
| | | | | | | | 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>
* Clean up include statementsFriedemann Kleint2022-12-191-1/+0
| | | | | | | | | | | - 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>
* PySide6: Add missing include for QWidgetFriedemann Kleint2022-12-191-0/+3
| | | | | | Task-number: PYSIDE-2155 Change-Id: I4f1e08d95dbae08c755e8169d5b88181361ddbdf Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Remove include module-local include "core_snippets_p.h" from headersFriedemann Kleint2022-12-162-4/+12
| | | | | | | | 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>
* PySide6: Fix CMake UNITY_BUILD (jumbo) builds for modulesFriedemann Kleint2022-12-161-0/+7
| | | | | | | | 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>
* PySide6: Expand template PyDateTime_ImportAndCheckFriedemann Kleint2022-12-164-27/+37
| | | | | | | | | 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>
* PyEnum: Fix a case where Enum is used instead of FlagChristian Tismer2022-12-151-1/+1
| | | | | | | | | | | | | 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>
* Fix QObject::sender() for non-C++ slotsFriedemann Kleint2022-12-122-0/+13
| | | | | | | | | | | | | | | 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>
* Fix a crash when deleting QObject instances with connections in threadsFriedemann Kleint2022-12-082-13/+0
| | | | | | | | | | | | | | | | | | | 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>
* PySide6: Fix float type overloads of QLocale.toCurrencyString()Friedemann Kleint2022-11-251-0/+4
| | | | | | | | | | | | | | | | | | | 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>
* PySide6: Fix warning in code snippetsFriedemann Kleint2022-11-161-2/+2
| | | | | | | | | | | 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>
* Fix a deadlock when using QMetaObject.invokeMethod(BlockingQueuedConnection)Friedemann Kleint2022-11-161-0/+6
| | | | | | | | | | | 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>
* signature: Fix handling of rlcompleter as intermediate solutionChristian Tismer2022-11-151-0/+26
| | | | | | | | | | | | | | | | | | 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>
* PySide6: Add shared pointer types of Qt 3DFriedemann Kleint2022-11-104-0/+12
| | | | | | | | | | 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>
* PyEnum: Update list of IntEnum to keep compatibility in 6.4, completionChristian Tismer2022-11-072-2/+2
| | | | | | | | | | | | | | | | | | | | 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>
* PyEnum: Update list of IntEnum to keep compatibility in 6.4, additionChristian Tismer2022-11-031-1/+1
| | | | | | | | | | 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>
* PySide6: Fix Desktop/GLES switchingFriedemann Kleint2022-11-022-1/+1
| | | | | | | | | | | | - 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>
* PySide6: Remove obsolete "since" tags from typesystemFriedemann Kleint2022-11-0216-239/+235
| | | | | | Pick-to: 6.4 6.2 Change-Id: Id7f1c8923eb8612771863893ab159d3434ca5041 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Disambiguate Qt3D headersFriedemann Kleint2022-11-013-2/+12
| | | | | | | | | | 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>
* PyEnum: Update list of IntEnum to keep compatibility in 6.4Christian Tismer2022-10-311-1/+1
| | | | | | | | | | | 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>
* Typesystem: Add includes required to be able to forward-declare classes in ↵Friedemann Kleint2022-10-315-0/+38
| | | | | | | | | | 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>
* Fix build error with forward declarationsFriedemann Kleint2022-10-311-2/+2
| | | | | | | | | | | 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>
* shiboken6: Handle Qt private signals for documentation purposesFriedemann Kleint2022-10-211-1/+0
| | | | | | | | | | | | 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>
* shiboken6: Add a way of specifying types for casting enum valuesFriedemann Kleint2022-10-191-1/+2
| | | | | | | | 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>
* Fix type annotations for static functions of QInputDialogFriedemann Kleint2022-10-171-0/+5
| | | | | | | | | | | | | 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>
* PySide6: Fix QCanBus functions with errorString returnsFriedemann Kleint2022-10-152-1/+62
| | | | | | | Complements f251f658c135e87ab82f58ba162867935caed21a. Change-Id: I6493ff25b8c27ec64101d77145b7aac1cc458555 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add QtSerialBusFriedemann Kleint2022-10-142-0/+118
| | | | | | | [ChangeLog][PySide6] QtSerialBus has been added. Change-Id: I661912279fa03b51d19483b603fff830ede225a9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add a context manager for QOpenGLVertexArrayObject.BinderFriedemann Kleint2022-10-142-1/+17
| | | | | | | | | | [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>
* Port from qAsConst() to std::as_const()Friedemann Kleint2022-10-131-1/+1
| | | | | | | | 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>
* PySide6: Fix enum to QVariant conversion for the new enumsChristian Tismer2022-10-101-10/+6
| | | | | | | | | | | | | | | | | 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>
* PySide6: Remove GL entities in QtOpenGLFriedemann Kleint2022-10-067-40/+20
| | | | | | | | | | | | | | | 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>
* PySide6: Remove GL entities in QtGuiFriedemann Kleint2022-10-061-110/+90
| | | | | | | | | | | | | | | 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>
* shiboken6: Fix some compiler warningsFriedemann Kleint2022-09-291-1/+0
| | | | | | | | | | | - 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>
* shiboken6: Fix warnings about unused parameters in generated codeFriedemann Kleint2022-09-261-0/+1
| | | | | Change-Id: I00fb5202fb136192b74ab598bbab9837b205a62a Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix compiling with OpenGL ESFriedemann Kleint2022-09-202-0/+4
| | | | | | | | | | | | 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>
* PySide6: Add QtGui function qt_set_sequence_auto_mnemonic()Friedemann Kleint2022-09-163-0/+10
| | | | | | | | | | | 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>
* Remove QtWinExtrasFriedemann Kleint2022-09-093-83/+0
| | | | | | | Task-number: QTBUG-89564 Change-Id: Iee2e2ac1acc608c746f84e9a28295b0016a4deed Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add QtPdf/QtPdfWidgetsFriedemann Kleint2022-09-074-0/+125
| | | | | | Change-Id: I00073b583c8c84e764a8693b50af44b3b91d55eb Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Add setters for the the lists in QValue3DAxisFormatterFriedemann Kleint2022-09-072-0/+52
| | | | | | | | | | | 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>
* Enable type strings in Q_ARG/Q_RETURN_ARG for QMetaObject.invokeMethod()Friedemann Kleint2022-09-062-12/+23
| | | | | | | | | | | | 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>
* PyEnum: Improve the handling of QKeyCombinationChristian Tismer2022-09-013-2/+53
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* PySide6: Add QBluetoothDeviceDiscoveryAgent.DiscoveryMethodsFriedemann Kleint2022-08-311-1/+1
| | | | | | | Task-number: PYSIDE-1571 Pick-to: 6.3 Change-Id: I12f23238333a350835bb923299a7b2e5fbf9cb03 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix setting override cursors without context managerFriedemann Kleint2022-08-251-1/+1
| | | | | | | | | | | | 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>
* Fix blocking threads in static functions of QMessageBoxFriedemann Kleint2022-08-241-0/+9
| | | | | | | | | | | 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>