aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix Unity build of QtQuickFriedemann Kleint2023-10-181-2/+10
| | | | | | | | | | | | | | qsgrendernode_renderstate_wrapper.cpp and qsgmaterialshader_renderstate_wrapper.cpp have static helper functions named "renderstate_..." that might clash when the order changes due further sources being added. Amends 277783b47e704505f19d00dd80f26239082974d6. Pick-to: 6.6 6.5 Task-number: PYSIDE-2155 Change-Id: I9873f2697b03aa1650847d0daaa622930d74c39d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix Unity build of QtGuiFriedemann Kleint2023-10-141-2/+10
| | | | | | | | | | | | | qtextframe_iterator_wrapper.cpp and qtextblock_iterator_wrapper.cpp have static helper functions named "iterator_..." that might clash when the order changes due further sources being added. Amends 277783b47e704505f19d00dd80f26239082974d6. Pick-to: 6.6 6.5 Task-number: PYSIDE-2155 Change-Id: Ib545b8a08be400b9243a0a1d85827e2e97782666 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Output the runtime version in QLibraryInfo::build()Friedemann Kleint2023-10-131-5/+9
| | | | | | | Pick-to: 6.6 Task-number: PYSIDE-2230 Change-Id: Id365e1dac6a4486dd1ff995dde9b834cf6bf95b4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix a warning resulting from bumping Python to 3.8Friedemann Kleint2023-10-121-2/+2
| | | | | | | | | | | | Remove PepIndex_Check, fixing: Python is at version 3.8 now. The file pep384_issue33738.cpp should be removed ASAP! Amends bcfd0a1ad2f1c333b53db071fe40b2ee3569bd6b. Task-number: PYSIDE-1797 Pick-to: 6.6 Change-Id: Id195395fc81899c3881b2f9c6767e25d5bf8fb3d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* QtAsyncio: Don't schedule events when quitting appAdrian Herrmann2023-10-111-1/+12
| | | | | | | | | | | Do not schedule events from asyncio when the app is quit from outside the event loop, as this would cause events to be enqueued after the event loop was destroyed. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: Ib9ff3949653783e4a9484a8a28f1c0010dcff33f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken: Get rid of tp_dict in general, amendedChristian Tismer2023-10-111-1/+2
| | | | | | | | | | | | | | | | | | A few more cases of cppgenerator were added. This are now really all cases, because tp_dict is no longer exported. As a very positive side effect, there is no longer direct tp_dict access in the "init_<type>" functions. Usage of PepType_GetDict would have created a permanent extra-reference. NOTE: It was necessary to set SKIP_UNITY_BUILD_INCLUSION on pep384impl.cpp in order to let this work with unity. Change-Id: I021dbc978b51265db96d5d3d438e06aa96230cc1 Pick-to: 6.2 6.5 6.6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* shiboken6: Fix some static code analysis warnings in the generated codeFriedemann Kleint2023-10-101-2/+2
| | | | | | | | | | | | | Remove left-over reinterpret_cast<> from SbkType to PyType (SbkType was removed). Fix warnings about implicit cast to bool (pointer/int). Fix some auto * definitions of pointers. Generate wrapper destructors as override when applicable. Pick-to: 6.6 6.5 Change-Id: I961a1c64821bbf0f2648f5e897029f1aa7d61a43 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* libshiboken: Deprecate cast operators of AutoDecRefFriedemann Kleint2023-10-052-2/+3
| | | | | | | | | | | | | | | For the non-limited API case, there was a cast to PyTupleObject * required for argument tuples due to the PyTuple_GET_ITEM() macro definition. Replace it by calling object(). Also deprecate the universal cast function. [ChangeLog][shiboken6] Cast operators of the helper class AutoDecRef have been deprecated. Pick-to: 6.6 Task-number: PYSIDE-2479 Change-Id: Iff660fbc791b1a74ecbd247e71edc896767f308d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* QtAsyncio: Add _cancel_message to future + taskAdrian Herrmann2023-10-022-0/+3
| | | | | | | | | | This field is assumed by asyncio.gather() to exist in task or future classes despite being undocumented. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: Ieab6f216db95e40bd02625fb9cff69be0ebccd50 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* QtAsyncio: Do not stop loop at task completionAdrian Herrmann2023-10-021-1/+0
| | | | | | | | | | | An erroneous self._loop.stop() has sneaked into the end of QAsyncioTask._step, causing the event loop to stop prematurely in some scenarios. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: If155e43f81675c660766c00e766e8a8f3bbe8b38 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* QtAsyncio: Miscellaneous improvements to TaskAdrian Herrmann2023-09-291-5/+9
| | | | | | | | | | | - Use asyncio._register_task() and asyncio._unregister_task() as demanded by the API (extending asyncio, Task lifetime support) - Add some comments and a missing return type in signature Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: I3ffdf0dc5f7b127c0dd9f2fb63eecb057d123744 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Replace typedef by usingFriedemann Kleint2023-09-202-8/+8
| | | | | | | Pick-to: 6.6 6.5 Change-Id: I23d8ea03ec578a897352c2627417a706ca71ef82 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QtAsyncio: Fix signature of cancel for future/taskAdrian Herrmann2023-09-192-3/+7
| | | | | | | | | | QAsyncioFuture.cancel() and QAsyncioTask.cancel() should both return a bool. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: I2b507ad5c44ba9478bdf8a53c0cd5464028d3384 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* QtAsyncio: Use asyncio._enter_task and _leave_taskAdrian Herrmann2023-09-191-0/+5
| | | | | | | | | | Wrap a QAsyncioTask's step execution with calls to asyncio._enter_task() and asyncio._leave_task() so that asyncio.current_task() will work. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: I7235c9ab2b8d68b0059b82a366909dc25ea6d60f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix a debug mode assert in QDataStream.writeRawData() in ↵Friedemann Kleint2023-09-181-1/+1
| | | | | | | | | | | | | | | QtCore/qdatastream_test.py Shiboken::Buffer::getPointer() asserts with in Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS since some nested function cannot retrieve the thread state. Amends 940cad174f891a4b04af9bcc61aed1c8e8c6d4ae. Pick-to: 6.6 Task-number: PYSIDE-2442 Change-Id: I27ca9fc485cf81fb47747db7cc40623a9f7fffec Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Fix some type hintsFriedemann Kleint2023-09-132-1/+4
| | | | | | | | Pick-to: 6.5 Task-number: PYSIDE-2463 Change-Id: I5a1fba3d7d86b44f7fb35f9ed263481a4b850408 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* QtAsyncio: Add queues testAdrian Herrmann2023-09-123-6/+11
| | | | | | | | | | Add a test for the asyncio queue for consumer/producer scenarios. Additionally, fix a few bugs exposed by this test through the increased code coverage. Task-number: PYSIDE-769 Change-Id: I18e3be6d059b758868a7598b58704db216bcdcc8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* QtAsyncio: Fix time unitAdrian Herrmann2023-09-121-7/+7
| | | | | | | | | loop.time() needs to return the time in seconds as a float, not in milliseconds as an int. Task-number: PYSIDE-769 Change-Id: Iac123132b49d3954abda8545d0830f1837a27c48 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* macOS wheel creation: Fix wheel nameShyamnath Premnadh2023-09-081-0/+1
| | | | | | | | | | | | | - The macOS version in the wheel name was picked up from Python's build configuration instead of Qt. - The solution involves writing the cmake variable QT_DARWIN_MIN_DEPLOYMENT_TARGET into _config.py, and create_wheels.py loads this _config.py to fetch the python variable storing it. Pick-to: 6.5 Fixes: PYSIDE-2429 Change-Id: I85003174b83ba937c8b3e1498b728f13d960284e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide: Add requestPermission()Shyamnath Premnadh2023-09-082-0/+87
| | | | | | | | | | | | | | | | - Only relevant for platforms like Android, where QT_FEATURE_permissions is turned ON. - Used a callback from the wrapper code to establish a call back to the passed Python functor. - The passed functor can either have no parameters, or have a QPermission object as parameter. In the latter case, the QPermission object will store the result of requestPermission(). This is similar to the Qt API. Pick-to: 6.5 Task-number: PYSIDE-1612 Change-Id: I0de8d1c67e69590d2a63ee51c61dfb3a8b76a43f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide: Add checkPermission()Shyamnath Premnadh2023-09-081-0/+8
| | | | | | | | | | | | | | | | - QPermission is an opaque wrapper around typed Permissions. The conversion from specific typed Permission to QPermission for usage within API functions like checkPermission(QPermission) involved implicit conversion from the typed Permission to QPermission through a templated constructor. Therefore, Shiboken needs to handle each of the conversions explicitly. - Only relevant for platforms like Android, where QT_FEATURE_permissions is turned ON. Pick-to: 6.5 Task-number: PYSIDE-1612 Change-Id: I097bf6f24a7ac79e9a62455dab9f3c8bdf6b8246 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Fix incorrect signatures in class QStateFriedemann Kleint2023-09-041-0/+5
| | | | | | | Pick-to: 6.5 6.2 Fixes: PYSIDE-2444 Change-Id: Ic0b12f109452e7b395a1cd24402984a41875af03 Reviewed-by: Christian Tismer <tismer@stackless.com>
* QIODevice: Implement buffered readsAdrian Herrmann2023-08-312-3/+19
| | | | | | | | | | | | Some users of QIODevice read functions (read, readLine and peek) might want to use fixed buffers to avoid reallocation, e.g., asyncio's buffered protocols. This adds overloads of said read functions that take an input buffer (as a bytearray) and return the number of read bytes. Pick-to: 6.5 Change-Id: I0c3678d3a87811029278c5ae8f829eef0432099a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Fix up QDataStream.readRawData/writeRawData()Friedemann Kleint2023-08-292-0/+16
| | | | | | | | | | | writeRawData() was historically implemented to take a string. Fix the signature. Add an overload for PyBuffer/bytes. Fix the return type of readRawData() to be bytes. Fixes: PYSIDE-2442 Change-Id: I1684afd5aae2f8d118fa2fac87d916c23bd4a59e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix QGestureRecognizer.registerRecognizerCristian Maureira-Fredes2023-08-251-0/+10
| | | | | | | Task-number: PYSIDE-287 Change-Id: I9308ec96c607097f91daff78b5197c2d1045cff6 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide: Fix QLocale::system() in macOSShyamnath Premnadh2023-08-252-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - QSystemLocale for macOS relies on CFBundleAllowMixedLocalizations/ CFBundleLocalizations in the Info.plist file for the C++ Application bundle, as seen from 1d3ae5f0e98f252214d20ce8561533891311a71f. Python being an interpreted language, there is no application bundle unless the application is deployed. As such a Python application in macOS relies on the Info.plist file of the Python interepreter. This Info.plist file is a read-only file and hence it is not possible/recommended to patch the Info.plist file of the Python interpreter at runtime. The issue has been raised upstream in CPython and can be tracked here: https://github.com/python/cpython/issues/108269 - A possible solution/hack is therefore to use to POSIX environment variables for macOS, for Qt for Python. This is also what the Python locale module does. See: https://github.com/python/cpython/blob/3.11/Lib/locale.py#L534 For other Unix systems, QLocale::system() uses the POSIX environment variables, just like Python's locale module. - For Windows and Linux, QSystem::locale() remains unchanged. - The idea here is to obtain the system locale from the Python locale module, and use the result to initialize and return a QLocale object. - As an extra, for qrunnable_create fix the typo - snipped to snippet. Fixes: PYSIDE-2419 Pick-to: 6.5 6.2 Change-Id: I12b16e824ddba21d1ebcd0695262c1dc0cc61eb2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* layouts: error instead of segfault for invalid itemCristián Maureira-Fredes2023-08-241-0/+6
| | | | | | | Pick-to: 6.5 Fixes: PYSIDE-2422 Change-Id: Id07b891083e11577e21c2ac2a429ef453328830e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix QLocale.toLong return valueCristián Maureira-Fredes2023-08-151-0/+12
| | | | | | | | | | | | | | | | | | The currently implementation was using an inherited toLong function, not returning the Tuple[int, bool] that the docs described. This adds a modification to follow the same idea of all the other to*() methods. Additionally, we remove all the to*() methods that accept a QStringView, due to behaving the same with the QString variations. [ChangeLog][pyside6] QLocale.toLong now properly returns a (int, bool) rather than only int Fixes: PYSIDE-2226 Change-Id: I5634e4010982e115c8208fdb9b56cfc57960358b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix documentation for QPainter.drawText()Friedemann Kleint2023-08-071-0/+9
| | | | | | | | | | | Inject Documentation and fix the snippet to indicate the QRect return. Task-number: PYSIDE-2411 Pick-to: 6.5 Change-Id: Id52f4c0a875301c6eac4a1d33034a04fa652e0d5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* PySide6: Fix signatures of the qmlRegister() functionsFriedemann Kleint2023-08-021-0/+6
| | | | | | | | | uri is str. Pick-to: 6.5 Fixes: PYSIDE-2272 Change-Id: I1e10ef65bf223b08b035c24f44bac83f0450ad14 Reviewed-by: Christian Tismer <tismer@stackless.com>
* stubs: setParent should accept an Optional objectCristián Maureira-Fredes2023-08-022-0/+4
| | | | | | | | | | | | | | | | | | | | | | The current stubs specify the type of the required argument, for example: w = QWidget() help(w.setParent) reports: setParent(self, parent: PySide6.QtWidgets.QWidget) -> None which makes some IDEs to complain when passing None, behavior that it's accepted as well. This change adds an Optional to the parameter. Pick-to: 6.5 Fixes: PYSIDE-2235 Change-Id: I57b54f47aee6783b1b7027981b5d282798d57ad4 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Clean up some unused rejection warningsFriedemann Kleint2023-08-019-96/+0
| | | | | | Pick-to: 6.5 Change-Id: I155f0297a1f6d31dc84472c8c7f99e2842da33e6 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Clean up some unused suppression warningsFriedemann Kleint2023-08-015-36/+2
| | | | | | Pick-to: 6.5 Change-Id: I261ec7ec933e21658d357ad1ffbeb4de5b84d13f Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix signature of qVersion()Friedemann Kleint2023-07-281-1/+5
| | | | | | | | | It returns a string. Pick-to: 6.5 Fixes: PYSIDE-2387 Change-Id: Ibb814acf9535a2529fb022bfe07dcc28f75b7c02 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Implement custom asyncio event loop based on QtAdrian Herrmann2023-07-275-0/+772
| | | | | | | | | | | | asyncio is an established library for Python applications with concurrency and asynchronous I/O, and the de facto standard that multiple other async frameworks build upon. Like Qt, it is based on an event loop, so to this end, it offers an extensive API to implement custom event loops that applications using asyncio can then leverage. Task-number: PYSIDE-769 Change-Id: I3daf5d631e2fa0d44fd8c3c272ac5cce96f58653 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix warning about unused allow-thread attribute on add-functionFriedemann Kleint2023-07-262-1/+3
| | | | | | | | | | | | | Allow-thread must be done in code for add-function. Fixes: typesystem_widgets_common.xml:537:164: Warning: 1 attributes(s) unused on <add-function>: allow-thread="yes" Amends 65e48138e166c3575dfe23dfec259e112302fd28. Task-number: PYSIDE-2384 Change-Id: Idf906c27fb3caa2361cff71ccca5f5385881ae40 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Add QWizardPage::registerField() with a signal instancFriedemann Kleint2023-07-262-0/+20
| | | | | | Fixes: PYSIDE-2384 Change-Id: Iad7a26385b40267308c287b8f6a4915972468574 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Add a convenience function for retrieving signal emittersFriedemann Kleint2023-07-261-6/+4
| | | | | | Task-number: PYSIDE-2384 Change-Id: I38cd611439a882e65f9f3bc6ca47dedd0a4fc66c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix stub and signature for QClipboard setPixmap and setImageCristián Maureira-Fredes2023-07-252-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Incorrectly, the pyi file described that it was possible to pass a: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str] for setPixmap, and: Union[PySide6.QtGui.QImage, str] for setImage. This uses the typesystem entry to restrict the setPixmap to accept a QPixmap and only a QImage for setImage. Additionally, this enable a PyPathLike signature, so users can pass 'str', 'bytes', 'pathlib.Path' as well, so the accepted arguments are: setImage(...) - PySide6.QtGui.QImage - Union[str, bytes, os.PathLike] setPixmap(...): - PySide6.QtGui.QPixmap - Union[str, bytes, os.PathLike] Pick-to: 6.5 Fixes: PYSIDE-2395 Change-Id: I521980dbc781a72e54f49fc84af5349733385133 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Undeprecate QSqlQueryModel::setQuery(const QSqlQuery &) in Qt 6Friedemann Kleint2023-07-251-1/+4
| | | | | | | | | | | Disable the deprecation warning for the moment. A better solution needs to be found in Qt 7. Pick-to: 6.5 Fixes: PYSIDE-2394 Task-number: QTBUG-91766 Change-Id: I6bf47c631b27a3378ab1d0c17d2551671a39cf93 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix signatures of qDebug() and friendsFriedemann Kleint2023-07-131-0/+4
| | | | | | | | | Pick-to: 6.5 Fixes: PYSIDE-2386 Change-Id: I4a3eb40bc597952173718d7326234f6c7a0ea221 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* adapt qC{Debug,Info,Warning,Critical} for new definitionCristián Maureira-Fredes2023-07-131-4/+4
| | | | | | | | | In response to: I3eb1bd30e0124f89a052fffd16a7564f4450ec8a Change-Id: I5393660521a8ee12a14bf2c287a6ea9a0393408f Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Add QtGraphsFriedemann Kleint2023-07-075-0/+685
| | | | | | Task-number: QTBUG-111305 Change-Id: I7ac79f59cfd0b85645d30485e86b6ff74bba20bb Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix 3 strange cases in QSettings.value() round trips of a listFriedemann Kleint2023-07-071-1/+39
| | | | | | | | | | | | | | | | | | | - The "default value" parameter had an int 0 default value, which lead to strange behavior ['0'] being returned for string lists with missing keys. - QStringList was not converted when forcing the type to be list due to the QByteArray split mechanism. - String values could not be coerced to a list Fix the default value to have a default {}. Add a helper function checking whether a custom type conversion is actually needed or the default QVariant converter can handle it. Pick-to: 6.5 Task-number: PYSIDE-2381 Change-Id: I91b22c05f851c2dc8c3792bd9f1446cfc8ceba51 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Factor helper functions for QSettings.value() type coercionFriedemann Kleint2023-07-072-52/+81
| | | | | | | Pick-to: 6.5 Task-number: PYSIDE-2381 Change-Id: Iac0922ad8eb67f6f19f43d9e796600ed11da2322 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Adapt to Qt 6.6Friedemann Kleint2023-07-0712-1/+32
| | | | | | Change-Id: Ie6379044282809fe73790d03cd086845bee98089 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix signature of QWizardPage.registerField()Friedemann Kleint2023-07-061-1/+4
| | | | | | | Pick-to: 6.5 Task-number: PYSIDE-2384 Change-Id: Ib32a4b336c39c4710745c221f9f1036dc21d6a29 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PyEnum: Get rid of the no longer needed flags typeChristian Tismer2023-07-031-2/+0
| | | | | | | | | | | | | | | | | As a welcome unexpected gift, we now even get rid of the flags class. The builtin Qt flags are still touched when creating properties. This needs an extra registration of the single flag converter name but no extra functions. See testQObjectProperty of qlabel_test.py . [ChangeLog][PySide6] After removal of the old enums, also the complex flags structure could be removed. Change-Id: Ie531a7470330af41eb491e8b1e37939f1afcb9a0 Task-number: PYSIDE-1735 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide: disable building QSharedMemory when feature is disable in QtShyamnath Premnadh2023-06-301-1/+7
| | | | | | | | | - sharedmemory is a disabled feature in 6.6 for Qt for Android - this is required to make Qfp Android build to work Task-number: PYSIDE-1612 Change-Id: I389cca7c7ce60b12cfd31a5dea93a4d7a73ed4b8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PyEnum: Shortcut old Enum code and generate Python enums directlyChristian Tismer2023-06-303-11/+3
| | | | | | | | | | | | | | | | | The amalgamation of old and new enums is slowly unraveling from the inside. This meanwhile actually removes the old code. Included a change by Friedemann to improve enum value handling. After the signed/unsigned problem was fixed, there was only one case left where Qt and Clang parser disagreed which could be fixed. The final solution uses overloaded functions to generate all necessary cases with minimal footprint in the executable. Task-number: PYSIDE-1735 Change-Id: I3741ce8621e783a750f3c05241c916008f78f39b Done-with: Friedemann.Kleint@qt.io (+2 squashed commits) Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>