aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Pin Qt6.2.4 sha1 as a dependency for releasev6.2.46.2.4Simo Fält2022-03-151-1/+1
| | | | | Change-Id: I253ce40d60e97c87f34e046df7ecc226447a5e66 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Cleanup version strings for 6.2.4 releaseSimo Fält2022-03-152-6/+6
| | | | | Change-Id: Iabd69f5804ede663abb93de0e82ff47d9ade5eb0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Fix properties of type QQmlPropertyMap *Friedemann Kleint2022-03-112-0/+3
| | | | | | | | | | Add a call to qRegisterMetaType(). Fixes: PYSIDE-1845 Change-Id: I25df264fc13dc515cd6035df8e0b608a7dabaa74 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 4118576eda30e76384b4cd846c16c0d0b39a3cc9) (cherry picked from commit 1cb612c8fc17e05a3b592c2a4bedb229b02cc6e5)
* Add changelog 6.2.4Friedemann Kleint2022-03-011-0/+42
| | | | | | | Change-Id: I2f8a7e909a2d130dc9a785d34d7d5fe15f0249de Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit eca08cee575b4d81290794901766eca777103862) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Drop Qt Location overviews from the listVenugopal Shivashankar2022-02-281-12/+0
| | | | | | | | | | Qt Location is still not ported to Qt 6.x, so we can drop these from the additional docs list. Change-Id: I812786f552c1a6a9461d77c9ba450bf8f9f3f9de Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 328726e125bb9102e6081dc283886ac02b8c4f69) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix signals/slots with non-QObject object typesFriedemann Kleint2022-02-282-2/+41
| | | | | | | | | | | | Add meta type registrations for pointer types. Fixes: PYSIDE-1827 Change-Id: I771ab6d2c075ec1cb7d9153bc7a8ddc47642dc83 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 9ef3c0041c489bd9f939c45a571026c3e2227685) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyPySide: Fix a regression with thread initializationChristian Tismer2022-02-282-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | The mandelbrot.py example worked fine on macOS, but failed to run on Windows and Linux. This did not show up on my local Windows virtual machine after building. But cloning the machine and removing the developer partition revealed the same issue on the clone. It turned out that PyPy needed a PyEval_InitThreads call. This call is already deprecated and a no-op on Python 3.9. Adding this call fixed the problem. We need to contact the PyPy group because they have a PyPython 3.9 beta, which is dependent from a deprecated function. [ChangeLog][PySide6] Threading stability was much improved by a call to PyEval_InitThreads (deprecated in Python 3.9). Task-number: PYSIDE-535 Change-Id: Ibf6d92bf0b21542be8929e12a6e02389c036ec79 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit c6f280a074391627d173e0fc27c104a2db667936) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix entry points for UI tools on macOSFriedemann Kleint2022-02-281-6/+11
| | | | | | | | | | | | | | Use the app bundle path. Amends ba96669d4ad0c31b8703231a9346218c6b92df70 and 011cad7cd2cd617427e939d737676394425bdc6b. Task-number: PYSIDE-1831 Task-number: PYSIDE-1378 Task-number: PYSIDE-1252 Change-Id: Icfe5badda3d900b8bad8f58edab6447a901d07e6 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 77d002b7ccf2cd8ff7844792365f317eac341c2a) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* signature module - mapping.py cleanupShyamnath Premnadh2022-02-281-3/+0
| | | | | | | | | | - 'const' usages removed from type_map because signature module does not recognitze them. - There were multiple mappings for char*, only one is required Change-Id: Idfb8fc578c3c86f3a16e59ef2bdb1009bdfb1c72 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit e4eeecd0f8d64907ddbc2c457abd9675c0a4654a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Blacklist qthread_testFriedemann Kleint2022-02-251-0/+2
| | | | | | | | | | | | | | | | Observed to crash with Python 3.6 on Linux: Fatal Python error: take_gil: NULL tstate Current thread 0x00007f3d4f596700 (most recent call first): Thread 0x00007f3d597b8b80 (most recent call first): File "sources/pyside6/tests/QtCore/qthread_test.py", line 101 in testSignals Change-Id: Ibb57ae06d530799b94d27e8c54b9bc387c2916ba Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 06ef7720072bbfda3979c818fffcf3a52eac21d1) Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix build with 3.10/Limited APIFriedemann Kleint2022-02-241-0/+2
| | | | | | | | | | | | Py_TPFLAGS_MAPPING and Py_TPFLAGS_SEQUENCE are not defined for Limited API. Amends aaceba1a73fcab34c3e75b3bee63b793cc96a62c. Change-Id: Ia279639e6a7b6e1a6c4b4a3c978b6be9ebe1183c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1995338b631dda248c311e179fcd4952cbb4b80e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix crash when implementing ↵Friedemann Kleint2022-02-231-1/+7
| | | | | | | | | | | | QQuickAsyncImageProvider::requestImageResponse() Release ownership of the returned value. Fixes: PYSIDE-1826 Change-Id: I9bae901a239b4f77a37585710270bec20c383f19 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 58ace971fcdde8e7d0334913ee5257ce498f864e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* __feature__: rework constructor handling of both featuresChristian Tismer2022-02-224-56/+290
| | | | | | | | | | | | | | | | | | | | | | | This is a quite complicated patch that tries to do the right thing in all cases with snake_case and true_property. Special is that a property can be a true property that is really turned into a property object, or it can be a pseudo-property which is not a property but should be treated as such. Exhaustive tests for all cases are added. [ChangeLog][PySide6] Properties are now usable in constructors of classes in any combination of snake_case and true_property. Task-number: PYSIDE-1019 Fixes: PYSIDE-1705 Change-Id: I1c6b6a24e0bb2e906ecbed225953ac782fed48f7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1fbcc4f972c3cc63c22dd01d6e5c7fe3ba7355b6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QAbstractOAuth - add setModifyParametersFunctionShyamnath Premnadh2022-02-223-3/+94
| | | | | | | | | | | - create bindigns for setModifyParametersFunction - reddit example modified to include setModifyParametersFunction() Task-number: PYSIDE-1815 Change-Id: If3573df070483f22cc46d9f95f688299e9ece420 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 535a781d534f4c9d102342a9813528e48c576ffd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix the multimap/hash conversion and add the testFriedemann Kleint2022-02-221-0/+1
| | | | | | | | | | | | Avoid iterating over end by removing the increment from the outer loop. Amends 20b207f41b72f857acc1a747ea06f4f657d7d1ea. Change-Id: I1adba4c847fa060f594e6eb0c7d2e48356bd1746 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 19eb0b01f4031c7897f98c73e178636b56bc7fb1)
* __feature__: Do the renaming also in the hidden methodsChristian Tismer2022-02-211-11/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has taken quite a while until it was understood why mistyped (un-renamed) methods are still found when using `snake_case`. It is a very old patch that searches hidden objects via the QMetaObject when normal attribute retrieval fails. This implementation is used all the time, but it is easily overlooked because most generated wrapper objects use this implementation from QObjectWrapper by inheritance, and is not found in the source code. Renaming these hidden methods the same way as the normal methods are renamed solves this problem. As a side effect, the solution to PYSIDE-1765 becomes more complete, too, since these hidden attributes were really missing. [ChangeLog][PySide6] The snake_case feature is now more complete since it renames hidden methods, too. Change-Id: I8614314e417a40549ef09f3105a03f22cb575bab Fixes: PYSIDE-1753 Task-number: PYSIDE-1765 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 89ea1b0b6579bb71be0fb4fab1ab36d116fcec78)
* Documentation: Mark briefcase as supporting Qt 6Friedemann Kleint2022-02-171-1/+1
| | | | | | | | Fixes: PYSIDE-1817 Change-Id: Ic03aa712e9000a8c02058cc6019a3cc5d861585e Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit fe7bf7da5a987e93a956083493d50c0d76761834) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix parent relationship in QWizard::setPage()Friedemann Kleint2022-02-171-0/+5
| | | | | | | | | Similar to QWizard::addPage() Change-Id: I4702d044551353b373ac4da9a0cd5692dd685ca9 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit aaf93cb34f30f36fa9622b29c21aaef29be02676) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Fix build against 6.4Friedemann Kleint2022-02-171-0/+1
| | | | | | | | | | Add missing include, unveiled by the Qt header cleanup. Task-number: QTBUG-97601 Change-Id: Ic9f92fb42b6fe2eb77cd412645d17432d67fc278 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit f88b4b646776b4d6fc8c9ab5253a0a4f89e26976) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix QLowEnergyServiceData.chacteristics()Friedemann Kleint2022-02-173-7/+83
| | | | | | | | | | | Change the data types to be value types since lists of instances are returned from the function. Fixes: PYSIDE-1824 Change-Id: I7e0006f2cddef412fd26cb09c43d01474d30d54b Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit ac53b4365600b85cc179a01f60f543fbe8b3a068) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Output new type flags in the debug operatorFriedemann Kleint2022-02-171-0/+20
| | | | | | | Change-Id: Id3bfad4b77472050ba6284b117f2b04a1467de03 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit aaceba1a73fcab34c3e75b3bee63b793cc96a62c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: nullptr_t converter - remove unnecessary convertersShyamnath Premnadh2022-02-171-11/+1
| | | | | | | | | | - toCpp and OtherToCpp are the same in this case. Change-Id: I9476714035279c4de2771e4115e8b5eb7f695cf3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit e1fe202c3c9720ff08b6a606ad3f193a7d522c6a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update license year in the generated licenseFriedemann Kleint2022-02-161-1/+1
| | | | | | | | Change-Id: Iaf63965069639e52e6c6d9c5c2f88cb98553e485 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit e0f42f49c037c07a50820832f600997a621dd3c6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/tests: Fix compilation with MSVC 2022 in C++ 20 modeFriedemann Kleint2022-02-151-5/+6
| | | | | | | | | | | | | | | | | Make operator==() of test class Size an inline friend like operator!=(). It seems that in C++ 20 mode, the compiler tries to include operator==() in overload checks of operator!=() (rewriting expressions) and hits on an amiguity when operator==() is implemented as member (arguable a compiler bug): size_wrapper.cpp(921): error C2666: "Size::operator ==": 3 overloads have similar conversions Change-Id: Ia57d531adca272be29dd4c4f7ef322450986033e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 27bcf6ad7afb7b5415c6c8dc79331f73e068923b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* __feature__: Fix true_property overridingChristian Tismer2022-02-122-6/+21
| | | | | | | | | | | | | | | | | | | | It was assumed that an override of a property would not make any sense, and the feature was disabled. An example showed that it _does_ make sense, and this works without any effort. This does not fix other problems which are still there, like correct handling of renamed implicit function calls. This will be addressed in another change. [ChangeLog][PySide6] true_property overriding was enabled. Change-Id: Ic22f05c6c999e7f97c47161d95e785c952168bb6 Fixes: PYSIDE-1765 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d03776d6ef3dc0934e68b2bb7aa7260208592c3c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* __feature__: Fix snake_case handling on user defined classesChristian Tismer2022-02-103-6/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | The snake case feature filters candidate methods and turns them into snake case. This works fine for built-in classes. The assumption is that all methods come from the tp_methods list. This assumption is not correct when applied to user defined classes. The methods have no static source in this case. To distinguish here, we inspect the tp_methods list. If it is empty, we assume a user defined class and do nothing. A forgotten initialization in feature.py was added, too. As a note: RHEL has such an old Python version that does not have MethodDescriptorType in the types module. [ChangeLog][PySide6] snake_case handling now does explicitly not touch user defined classes. Fixes: PYSIDE-1702 Change-Id: Idfa16cdc50cb7234c1d2f473dfae3a568887547e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 42695262f0ab4c73377b9d638dd28636ab1a3668) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide: Leave the underscore variable alone in QApplicationChristian Tismer2022-02-081-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | QApplication has special treatment through the extra rules of only one QApplication instance may exist. To ensure this, different approaches were used. The first attempt was using refcounts and made sure that "del qApp" really destroys the QApplication instance. This did not work in interactive mode because the automatic underscore variable creates cycles. As a simple workaround, we assigned None to underscore when a QApplication was created. When moving to the new concept of an explicit shutdown() call, this assignment was forgotten to remove. [ChangeLog][PySide6] A left-over replacement of the interactive underscore variable when QApplication is created was removed. Change-Id: I78f3e3714531d599c4b5b76f956b1d631014ad94 Fixes: PYSIDE-1758 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 0a12054f64f94807f711d35d26091b64f1589b3b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation: Remove mentions of qmakeFriedemann Kleint2022-02-085-20/+22
| | | | | | | | | | It is replaced by qtpaths. Task-number: PYSIDE-1814 Change-Id: I0aafa0a8ebfc6fc9fe4eb4887dc740c9ea0e5767 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit e1aee5ff734387c6d1a91df0f17d022042f5d927) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Build system: Fix misleading message about Documentation buildFriedemann Kleint2022-02-081-1/+1
| | | | | | | | Task-number: PYSIDE-1814 Change-Id: I548ddba792f3913f0dc4906ad85bf70bb4b7a046 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 6daa3e6d592fa383d16038a670945a2c78872c8d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Check the clang version during configureFriedemann Kleint2022-02-081-0/+5
| | | | | | | | | Fixes: PYSIDE-1806 Change-Id: I120e407d07f20f15b2120fd2285afc47a73f85ba Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 66129dacde6c94da8cd470abc39e5801f80564b7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside: fix exception strJulien Schueller2022-02-041-1/+1
| | | | | | | Change-Id: I7816304a293611f90a729af46a3ea26d815cf28d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 83e661aad2cc57e6dc51a10385dc6a56a9dcc163) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Prospective fix for broken QByteArray::__msetitem__() on big endian ↵Friedemann Kleint2022-02-031-3/+4
| | | | | | | | | | | | | | architectures Remove a dubious cast from long to const char * which depends on byte order. Fixes: PYSIDE-1804 Change-Id: Iee2d809d4e9362b89439b9c56a5fb18e1f91d6fd Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 0cfddaa56fb560c4ffb3809b7924a0fbb6f3889f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Refactor code snippets for QByteArray::__msetitem__()/__mgetitem__()Friedemann Kleint2022-02-032-32/+25
| | | | | | | | | | | | | | | Fix integer types, move variable declarations to initialization, remove superfluous variables. As a drive-by, fix spelling in the test. Task-number: PYSIDE-1804 Change-Id: I7ed4e69ae850a63d7e213a31cb078aa40e597fb2 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> (cherry picked from commit ac1dbba1798bc72cf4e71142ec6f647b8b6ae25d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyPySide: Fix locker handling which enables MandelbrotChristian Tismer2022-02-036-24/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not only the QPainter, but also the QMutexLocker were not correctly modelled after PEP 343 in the examples. Since that is now fixed, we consider the PyPy project not as ready, but good enough to publish it. It also turned out that people have the expectation to use QSignalBlocker in the "as" form: with QSignalBlocker(self.double_spin_box) as blocker: self.double_spin_box.setValue(2.5) https://stackoverflow.com/questions/60384734/how-to-use-qsignalblocker-in-python But that blocker would be None. As a side effect, QMutexLocker, QReadLocker, QWriteLocker and QSignalBlocker were augmented with a default __enter__ implementation that returns the locker instance. [ChangeLog][PySide6] The Mandelbrot example needed context managers for QPainter and QMutexLocker to work in PyPy. Task-number: PYSIDE-535 Change-Id: I2a62ca645a4fddcafbf11869f14a538141f32c39 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit bc11e3c074bdba1ae0fcaa0c10e3b32f781be9fd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Clean up QtWidgets testsFriedemann Kleint2022-02-0318-62/+47
| | | | | | | | | | | | | | Many QtWidgets tests do not require classes from QtWidgets any more due to splitting out the QtGui module and moving further classes into it. Move the tests to the proper module. As a drive by, move some misplaced tests from QtGui into QtCore or QtWidgets, respectively. Change-Id: Ib995ce6556fceff4eb8ec8ac9b25680834a2426f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 07029c25e460838d1bb2942326e69aa1916baa6f)
* Fix the OpenGL textures example for Qt 6Friedemann Kleint2022-02-021-70/+88
| | | | | | | | | | | In Qt, the example has been ported to use modern Open GL (shaders). While this can still be done, it is worthwhile to also show the use of QOpenGLVersionFunctionsFactory for legacy Open GL code. Change-Id: I5ba434bd5324bde1eec3075689f08c770329ce00 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 3020e8a7628f200dd511c1ee6c4745417195960a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Consider .h files as C++Friedemann Kleint2022-02-021-1/+3
| | | | | | | | | | | | | Previously, shiboken6 and dependent tools would consider .h files as C (working around by creating a temporary header). This can be worked around by passing -x c++ to clang. Task-number: PYSIDE-1802 Change-Id: I5c0d9ef2d6a11a8409be979ccdb52e5eca08656a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit e6a5b97211bbeac737ade08467712b4ddcb0586d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* nothing.h - why is it required?Shyamnath Premnadh2022-02-011-0/+3
| | | | | | | | | - added a short comment on why this file is required. Change-Id: Iad11c049ea4ce3d9a47d37b94d2cb307979e62cd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 3a16f9f0a9d8081e3dfe076b12840a857b4ee3ce) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Convert QVariant to Enum typesShyamnath Premnadh2022-01-312-3/+71
| | | | | | | | | | | | | | | | | Before this patch, the conversion from QVariant->enum in Shiboken was same as the conversion from QVariant->int. So, the user will have to explicitly convert the returned integer to the original enum type. With this patch, an enum type is considered as an Object type rather than an int type. This enables the enum type to be considered as itself. Added tests for all conversions of QVariant types. Fixes: PYSIDE-1798 Change-Id: I18acc08e1f59ac7df844444d0ad6950e1d70ab21 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 108d82d2ca5323652a50706b37f829b9f0457367) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix examples/widgets/dialogs/classwizard.pyShyamnath Premnadh2022-01-281-1/+1
| | | | | | | | | - Changed str to QPixmap Change-Id: I591fee0bf254e2c0c5684fc5982d5a3d57695e6d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 021256b60697a66f96c1e22300d7b4901086b10d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Allow empty PRE_RELEASE_VERSION for release wheelsSimo Fält2022-01-282-7/+7
| | | | | | | Change-Id: If53fb034ee0c62b25e9a672ff687a0e1f4c592f4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 1966aae5401de5129f571fdb5bb1d9b1e69ab143) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add changelog 6.2.3Friedemann Kleint2022-01-271-0/+56
| | | | | | | Change-Id: Ic854dd073a728dfba89f0a217d26c61c46ea6e0a Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit fa799cbe62587091ef5d90900b37f4ae9a34554b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Examples: Fix example URLs and documentation warningsFriedemann Kleint2022-01-264-8/+5
| | | | | | | | | | | | | | Fix: sources/pyside6/doc/examples/example_corelib__mimetypesbrowser.rst:4: WARNING: Unknown target name: "mime type browser example https://doc.qt.io/qt-6/qtcore-mimetypes-mimetypebrowser-example.html". sources/pyside6/doc/examples/example_multimedia__audiosource.rst:4: WARNING: Unknown target name: "audio source example https://doc-snapshots.qt.io/qt6-dev/qtmultimedia-multimedia-audiosource-example.html". sources/pyside6/doc/examples/example_widgets_tools_regularexpression.rst:4: WARNING: Unknown target name: "qregularexpression example https://doc.qt.io/qt-6/qtwidgets-tools-regularexpression-example.html". sources/pyside6/doc/examples/example_widgets_tools_regularexpression.rst:: WARNING: image file not readable: examples/regularexpression.png Task-number: PYSIDE-841 Change-Id: I541df87560227d4361823b2948890fb2bf949d8e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit c81ee3c92ac022bb5e9b3d0db72f157a1e1a6513) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add editable tree model exampleJaime Resano2022-01-268-0/+680
| | | | | | | | | | | Ported from C++. Done-with: Friedemann Kleint <Friedemann.Kleint@qt.io> Done-with: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Change-Id: I9336016daec01b0b0486fcd39fac20c6bbd08970 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 06934b80680b4cef967c7b8a87580a7d7759a01c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Output class name in AbstractMetaFunction::debugSignature()Friedemann Kleint2022-01-261-0/+2
| | | | | | | Change-Id: I62baa8100f3f5176f2f65c2c101be25ee5650733 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit a2700ad6f4222bbf1a302dca777f4bce986d27e7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Port the threadedqopenglwidget exampleFriedemann Kleint2022-01-267-0/+681
| | | | | | | | Task-number: PYSIDE-841 Change-Id: Ia394ab350ab04281e2227dc3af950913f44c6564 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 92631a253dd1baf17d5f0b2080c4a9c80263672d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyPySide: fix a few more cases of QPainter without end()Christian Tismer2022-01-262-1/+4
| | | | | | | | | | | | This will be replaced by a context manager, soon. Also, begin and end should not simply return a boolean but raise an exception when something serious broke. Task-number: PYSIDE-535 Change-Id: Ieb2f845a01105381aab539e04b964de7a551d739 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d90d6c260bdf97c6b10e0ff58fbd422a197f9917) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PyPySide: handle QPainter correctly with GCChristian Tismer2022-01-2422-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | While testing the examples with PyPy, a number of examples used QPainter without explicitly calling painter.end() and crashed. This works in standard Python, but leaves the painter open in other implementations, because the implicit deletion of objects when going out of scope does not work in the wrapper when garbage collection is used. Fixed by providing the missing painter.end() calls. This problem should finally be fixed by making QPainter a context manager. The same approach was taken by Python.org and the file open/close functions. The context manager was needed for implementations like IronPython, Jython and PyPy. [ChangeLog][PySide6] The examples were adapted to PyPy's need to close QPainter, explicitly. Eventually, we may turn this into a context manager. Change-Id: I18eeeff7df800bafce91a1e5c98c469aa3bcc41b Task-number: PYSIDE-535 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 3c3595e1e196204bfaec8c5f82db7f0fc84a1702) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Fix broken if statement when setting allow-threadFriedemann Kleint2022-01-242-3/+3
| | | | | | | | | | | | | | | allow-thread is unrelated to exception handling. Amends 099f3f46ca9ec1362f211278df4b3e4949b0a339. As a drive-by, rearrange the allow-thread such that "Unspecified" is 0. Task-number: PYSIDE-931 Change-Id: I8cea3e6428ec1feecc358042e54e5a8185ddfbfa Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 8daf85c871384db7a130415578873e73f3c04d84) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QFileDialog: allow threads with modal dialogsCristián Maureira-Fredes2022-01-241-0/+2
| | | | | | | | | | | | The snippets that were used to get the return from a QFileDialog modal call was blocking, so we explicitly allow threads around the C++ call. Fixes: PYSIDE-1792 Change-Id: Ifb06e8726fece6a9b8248bc91e7616101a8a99a2 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 9b4d1f76128bc46a5ea85d33ce67f81029b8017e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>