aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* PySide6: Add QtWebEngineQuickFriedemann Kleint2021-07-065-3/+81
| | | | | | Task-number: PYSIDE-1570 Change-Id: Ic10a8f29439d5171487dfa5954c3b37be116a2b3 Reviewed-by: Christian Tismer <tismer@stackless.com>
* build scripts: Fix broken packages (rpaths)Friedemann Kleint2021-07-062-10/+11
| | | | | | | | | | | | | | | | | The python modules were unable to find the Qt libraries after 401c8134dd84e3ad271c6a0a1e6248cf090d7fe4. This was since the update_rpath() appends the list of package libraries to the executables passed in and sets the rpath on them, too. This caused the libexec-rpath being set on them since the libexec executables were passed last. Disentangle this by splitting out a helper to find the package libraries and call update_rpath() separately for them. Amends 401c8134dd84e3ad271c6a0a1e6248cf090d7fe4. Change-Id: I8d647d4e9b1e24e1d6dbc87801bcb4e5fccaf88e Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add a gettext exampleFriedemann Kleint2021-07-067-0/+359
| | | | | | | | | Add a small example along with a German translation using gettext. Add a tutorial. Pick-to: 6.1 Change-Id: I254a5a66521ecc2827a5811469d9d21360f99b81 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Pyside6/Qt Designer: Fix Python code preview not working on UNIXFriedemann Kleint2021-07-065-34/+41
| | | | | | | | | | | | | | | | | | | | | | Qt Designer as bundled by PySide6 was unable to find the uic binary in the libexec directory of the bundled Qt since that was only copied when QtWebEngine was built and the rcc/uic binaries were copied into the main directory. Also, libexec existed as a file containing qt.conf, which was created by a copy statement not checking for the target directory. Fix that by actually creating a libexec directory for uic, rcc and QtWebEngineProcess. Patch the executables accordingly. Add checks before copying qt.conf. Adapt pyside-tool to use libexec. The Windows code path remains the same, everything uses main directory there. Change-Id: I0c9f46fb776ed0315eecb6ed00202ea8d8f17fe2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix logging level being set when importing PySide6Friedemann Kleint2021-07-052-13/+16
| | | | | | | | | | | Move the global variables and initialization into main in generate_pyi.py and set is_ci on the options object. Do the same for consistency in pyi_generator.py. Pick-to: 6.1 Fixes: PYSIDE-1614 Change-Id: I5cb69b58816e5253b3842f135f51fbcbded7b348 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Document the bool cast functionsFriedemann Kleint2021-07-024-5/+46
| | | | | | | | | | | Move the sequence protocol page to a page for special functions and add bool cast there. More special functions can be added later (__repr__ et al). Task-number: PYSIDE-1334 Change-Id: I0cf8e1e5737826a72701d7bfa6e8d12a4123b831 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Return QMetaObject.Connection from QObject.connect()Friedemann Kleint2021-07-024-30/+81
| | | | | | | | | | | | | | | [ChangeLog][PySide6] QObject.connect() now returns an instance of QMetaObject.Connection which can be used to disconnect instead of a bool. Change the code to return QMetaObject::Connection and add an overload for Signal.disconnect() taking a connection. Fixes: PYSIDE-1334 Change-Id: I0413888828b2e82bad49812b4918c1d6a8133c5c Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* shiboken6: Add support for operator boolFriedemann Kleint2021-07-0216-23/+237
| | | | | | | | | | | | | | | | [ChangeLog][shiboken6] operator bool can now be used for bool conversions (nb_bool) besides Qt-style isNull() methods. Add a command line option --use-operator-bool-as-nb_nonzero similar to use-isnull-as-nb_nonzero, enabling the use of operator bool for bool conversions. Make it possible to override both settings in typesystem XML. Task-number: PYSIDE-1334 Change-Id: I9c567e1b2cb97b22b41b3d9918046d793632160e Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* pathlib: extend QUrl.fromFilePath to support os.PathLikeChristian Tismer2021-07-0223-23/+29
| | | | | | | | | | | [ChangeLog][PySide6] The function QUrl.fromFilePath supports now the os.PathLike structure in addition to string arguments. The new interface was applied, everywhere. Change-Id: I2d888383c54b7f964e448d210264c7e902759f43 Pick-to: 6.1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* tools: accept gif for example gallery imagesCristián Maureira-Fredes2021-07-011-1/+1
| | | | | | Pick-to: 6.1 Change-Id: Ic65ce24dc23f477b17e0550184960af37d1704a4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* example: add charts dynamic splineCristián Maureira-Fredes2021-07-016-0/+171
| | | | | | | Task-number: PYSIDE-841 Pick-to: 6.1 Change-Id: I4a7ea69a6b1f9aaf190f66c464dcb9e19b20f4c5 Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6: Add QSharedMemory exampleCristian Maureira-Fredes2021-06-307-0/+309
| | | | | | Task-number: PYSIDE-1370 Change-Id: Ica8cf855f59bed40b0d2c7ba5dfa1323871337bb Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6: Add QSharedMemoryFriedemann Kleint2021-06-305-1/+185
| | | | | | | | | | | | | Return a buffer from data()/constData(), from which a memoryview can be constructed. [ChangeLog][PySide6] QSharedMemory was added. Pick-to: 6.1 Fixes: PYSIDE-1370 Task-number: PYSIDE-1482 Change-Id: I089801c55ed696d3dd59ef64da0e52e538e9b54d Reviewed-by: Christian Tismer <tismer@stackless.com>
* VoidPtr: Add setters and getters for isWritableFriedemann Kleint2021-06-302-0/+16
| | | | | | | | | | | | | Being able to set "writable" on a returned VoidPtr enables returning memory areas by adding a modification injecting code, as is required by QSharedMemory.data(). Complements ec1ff04f170fd26b71f21af687ae725541e83582. Pick-to: 6.1 Task-number: PYSIDE-1370 Task-number: PYSIDE-1482 Change-Id: Ideeac44593645586745e1f73585af2eb2d7cd9d2 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Unicode: renew implementation and remove Python 2 versionChristian Tismer2021-06-301-15/+13
| | | | | | | | | | | | | | | | | | [ChangeLog][PySide6] The Python Unicode API was updated to the newest version when not in limited API mode, too. The unicode interface that we use in non-limited API mode is deprecated since Python 3.3. - Remove the Python 2 branch - Use the more efficient direct access mode. The annoying message became visible while working on PyPy support, which cannot use the limited API. Change-Id: If83921000f7fbcec79e8d572a0598d50fa6508a5 Pick-to: 6.1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* shiboken6/Documentation: Add a link from code injection to type system variablesFriedemann Kleint2021-06-301-0/+3
| | | | | | | Pick-to: 6.1 Task-number: PYSIDE-1112 Change-Id: I0730320801c8557c429e38e8f6bc44e5f4b82792 Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6/QtSensors: Adapt to sensor removalFriedemann Kleint2021-06-302-18/+0
| | | | | | | | qtsensors/d40c4d0b3766043cf4fbaa87acd76b11bf733369 removed QAltimeter, QDistanceSensor and QHolsterSensor. Change-Id: Ic68a68d3461e5ad02cebbb135c89bfc89518339e Reviewed-by: Christian Tismer <tismer@stackless.com>
* VoidPtr: Add setters and getters for the sizeFriedemann Kleint2021-06-292-0/+16
| | | | | | | | | | | | | Being able to set a size on a returned VoidPtr enables returning memory areas by adding a modification injecting code settng the size, as it required by QSharedMemory.data(). Pick-to: 6.1 Task-number: PYSIDE-1370 Task-number: PYSIDE-1482 Change-Id: Ie6f363bc12e8971baf935710f73ba75173ef42e7 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* PySide6: Add further classes and functionsFriedemann Kleint2021-06-294-1/+6
| | | | | | | Pick-to: 6.1 Task-number: PYSIDE-1570 Change-Id: I33fd7887eb4df115e82ec0940f261cb134e1883d Reviewed-by: Christian Tismer <tismer@stackless.com>
* PyPySide: Do some preliminary cleanups before the transitionChristian Tismer2021-06-298-18/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | The transition to the future PyPy support needs some cleanups, first. The goal is to get rid of all macros which handle type objects. This works in PySide on Python, but not with PyPy, which is emulating the whole interface. The shibokengenerator expression if (type->isWrapperType() || type->isEnum() || type->isFlags()) return QString::fromLatin1("*PepType_SGTP(%1)->converter").arg(cpythonTypeNameExt(type)); builds a very unfortunate union of the three possible macro type extensions that makes it impossible to do incremental changes. `PepType_SGTP` is therefore now completely gone. Finding this problem was a major showstopper. Furthermore, the usage of the __builtins__ dict object is not PyPy compatible and replaced by the builtins module. Task-number: PYSIDE-535 Change-Id: Ic32431b665aae43bb8c9735f69a54f7b3fae8b48 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Fix crashes in QObject.findChild()Friedemann Kleint2021-06-293-19/+47
| | | | | | | | | | | | | | | | | | | For all objects encountered in findChild(), a wrapper was created just to be able to retrieve its type object and check against it. As there is a name lookup involved, it happens that non-QObject wrappers are created for this (in the specific case, an enum wrapper), which leads to crashes later on. Refactor the code, extracting a helper function to PySide which finds the best-matching type object for a QObject to check on that. Rearrange the check so that the name is checked first. Pick-to: 6.1 5.15 Fixes: PYSIDE-1609 Change-Id: I026854201f3f6eca9e5905105127f0a4b4588fa9 Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6: Add a test for QObject.findChildren() by typeFriedemann Kleint2021-06-291-0/+30
| | | | | | | | | Also test Python-derived types. Pick-to: 6.1 5.15 Task-number: PYSIDE-1609 Change-Id: Ia85a64ffc713c8cbbca0506dd9390f601e206e15 Reviewed-by: Christian Tismer <tismer@stackless.com>
* translate: Fix translation for derived typesChristian Tismer2021-06-292-12/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][PySide6] The `tr` function now works also for PySide derived Python class instances with the right context. Qt has a translation feature that works fine on strings that are directly parsed from a Python class. For derived classes, the correct context could not be found. This problem could have been solved by obtaining the calling function name from the frame stack, walking the mro and examining in which class dict the calling function can be found, but this works for Python functions, only. For any function, simply probing the translation result is even easier and always works. We walk the mro, too, but simply use each class name in turn as context and probe by comparison if a translation was done. Change-Id: Ibca9dc0098a3aa26a674b3d5e24ea14e651fe6de Fixes: PYSIDE-131 Pick-to: 6.1 Pick-to: 5.15 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Update documentation on Qt Designer and resource filesFriedemann Kleint2021-06-283-15/+27
| | | | | | | | | Link from typesoffiles.rst to the tutorials and flesh them out a bit. Task-number: PYSIDE-1112 Pick-to: 6.1 Change-Id: I67fccb29d880bd2ba5af8e5dd77a4f6406ea55ad Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6: Add missing API of QQuickFramebufferObject.RendererFriedemann Kleint2021-06-284-4/+14
| | | | | | | | | | | The virtuals taking and returning a QOpenGLFramebufferObject were missing since QOpenGLFramebufferObject was moved from Qt Gui to Qt OpenGL. Add the dependency to fix this. Pick-to: 6.1 Fixes: PYSIDE-1611 Change-Id: Idfc234ce79b0619d5c2d8a8901f43733e210eafd Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add changelog for 6.1.2Friedemann Kleint2021-06-251-0/+37
| | | | | | Pick-to: 6.1 Change-Id: Ia055b088b62b7b3192f03d48da9a183720dfc795 Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6: Fix specification of qPixelFormatCmyk()Friedemann Kleint2021-06-251-1/+1
| | | | | | | | | | | | | Fix warning: Global function 'qPixelFormatCmyk(uchar,uchar,QPixelFormat::AlphaUsage,QPixelFormat::AlphaPosition position,QPixelFormat::TypeInterpretation)' is specified in typesystem, but not defined. This could potentially lead to compilation errors. Amends 6938ca19e7a2b200ee83fdddce3c5908199c1f75. Task-number: PYSIDE-1482 Pick-to: 6.1 Change-Id: Iaa943dc25e06f5937e4ba8379beca82d523ca704 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6/doc generator: Resolve relative, local .html documents to doc.qt.ioFriedemann Kleint2021-06-251-1/+23
| | | | | | | | | | | | | | Links to relative, local .html documents as generated by qdoc into the WebXML files are currently broken in our documentation (800 cases). They are syntactically not recognized by sphinx nor could be resolved in the HTML file tree. Expand them to URLs to the doc.qt.io web page. Task-number: PYSIDE-1112 Pick-to: 6.1 Change-Id: Ibdc7f9c47db6d26c088678aa67f1a320542f68e0 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6/doc generator: Extract method to resolve links to ↵Friedemann Kleint2021-06-257-58/+97
| | | | | | | | | | | | | QtXmlToSphinxDocGeneratorInterface Extract the private struct LinkContext to a public struct QtXmlToSphinxLink with debug operator and add a resolve method to QtXmlToSphinxDocGeneratorInterface. Task-number: PYSIDE-1112 Pick-to: 6.1 Change-Id: I91b3bc45ebc530394a3e77c56b05dd5b740e8985 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6/doc generator: Fix tables nested in paragraphsFriedemann Kleint2021-06-252-19/+52
| | | | | | | | | | | | Tables embedded within paragraphs were broken since they were rst-escaped and newlines simplified by the </para> handling. To fix this, end the <para> when a <table> is encountered and restart again afterwards. Pick-to: 6.1 Task-number: PYSIDE-1112 Change-Id: I2d97d8bfd9f1a838853c58b6a657aa9e4cf719e6 Reviewed-by: Christian Tismer <tismer@stackless.com>
* QtWebEngineWidgets: Add missing dependencyFriedemann Kleint2021-06-251-1/+1
| | | | | | | | Amends ced7d7b9e1a0cd771be36651558332e0010028bb Task-number: PYSIDE-1570 Change-Id: I7b4bfa4792f3b60cb05d6bf450c5edd893a19ac5 Reviewed-by: Christian Tismer <tismer@stackless.com>
* build_scripts: Pass --quiet to build_rst_docsFriedemann Kleint2021-06-241-0/+2
| | | | | | | | | Otherwise, the log messages from the example gallery clutter the sphinx warnings from the shiboken manual. Pick-to: 6.1 Change-Id: I1a8e3b685a4bfb830baea3a2221fc7980fee24e1 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6: Small refactoring of QtXmlToSphinxFriedemann Kleint2021-06-242-15/+15
| | | | | | | | | - Use member initialization - Use QSharedPointer in the buffer stack Pick-to: 6.1 Change-Id: Ib6a9aeab422c414a073140a401593c06c119cdbe Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add still missing qt submodules to dependency.yamlSimo Fält2021-06-241-1/+4
| | | | | | | | | Just to make a full list of modules we are using when building on ci. Change-Id: I8d9dd3e268915c668ae1fac855cb392099f04b4f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Remove dependency of QtQml on QtGuiFriedemann Kleint2021-06-232-5/+1
| | | | | | | | QtQml is the base language, it does not need QtGui. Pick-to: 6.1 Change-Id: I9bd8886700bb3c20b32f7c2f0f118030a3b1fc16 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6/signature: Remove obsolete modulesFriedemann Kleint2021-06-231-22/+0
| | | | | | | Pick-to: 6.1 Change-Id: Ib26f3b8a5f2942380d2f6d9f8e56f839fbbdfe03 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6/signature: Fix error handlingFriedemann Kleint2021-06-231-6/+5
| | | | | | | | | | | | | | | | | | | Raise an error if != 2 tokens are obtained from the argument, changing packages/shiboken6/files.dir/shibokensupport/signature/parser.py", line 121, in _parse_line name, ann = tokens ValueError: too many values to unpack (expected 2) to packages/shiboken6/files.dir/shibokensupport/signature/parser.py", line 119, in _parse_line raise SystemError(f'Invalid argument "{arg}" in "{line}".') SystemError: Invalid argument "method:QWebEngineHttpRequest::Method" in "0:PySide6.QtWebEngineCore.QWebEngineHttpRequest(self,url:typing.Union[PySide6.QtCore.QUrl, QString]=QUrl(),method:QWebEngineHttpRequest::Method)". Pick-to: 6.1 Change-Id: I16e0f32bb3332deadc0a8819a6ba7abd6b12a941 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Re-add QtWebEngine, initial stepFriedemann Kleint2021-06-2317-274/+125
| | | | | | | | | | | Remove module QtWebEngine. Move most API from QtWebEngineWidgets to QtWebEngineCore. Adapt imports in tests and examples. The new module QtWebEngineQuick will be added in a follow-up step. This is not functional yet as examples crash in the underlying 6.2 Alpha. Task-number: PYSIDE-1570 Change-Id: I00907e5542404560967e6ae07d102193f1f1e154 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Fix missing includes in QtWebEngineFriedemann Kleint2021-06-231-0/+7
| | | | | | | | Temporary workaround, to be reverted later. Task-number: PYSIDE-1570 Change-Id: I113c82236ebeebd3a0ecd31dbcecbb7704dc8d7c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6/features: Fix compiler warningFriedemann Kleint2021-06-231-0/+2
| | | | | | | | | | | Assign isStdWrite in parseFields(), fixing: libpyside/feature_select.cpp: In function bool PySide::Feature::feature_02_true_property(PyTypeObject*, PyObject*, int): libpyside/feature_select.cpp:689:59: warning: ‘isStdWrite’ may be used uninitialized in this function [-Wmaybe-uninitialized] Pick-to: 6.1 Change-Id: I4527444a67ee3ca6e886802a76aa4508c8ca3a7c Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6/QtMultiMedia: Adapt to API recent changesFriedemann Kleint2021-06-236-53/+51
| | | | | | | | | | | | | | | | | | | | | | Build against qtmultimedia/a6e014eb088cb9b7bf55bf87c814e75cd4037dc2: - Re-add QAudioInput, QAudioOutput, qtmultimedia/9fd208f11a218d8a8b07fc525258eea3b3596d62 - Rename QCameraImageCapture to QImageCapture, qtmultimedia/83a031c56b74d68fe6d349f78c48a1681e40374e - Remove QImageEncoderSettings, qtmultimedia/d58d93b8e45b2bf62221b104914df771849c007c - Remove QMediaEncoderSettings, qtmultimedia/9c309ede2feb598908b1476062b79d0d23759bf3 - Changes around QMediaEncoder, qtmultimedia/fde5d6f7cce6118cac4ce7b92cd056225737917f qtmultimedia/994bcb23af8399485ddfdd16d2ba34c20326b432 - Comment out QMediaPlaylist, qtmultimedia/5773f7214c7430a98dea3974c0597cb3ee0ea7f5 Pick-to: 6.1 Change-Id: I9beb96c34ebe6132ad68e3628fcbbf0bc48127ef Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6: Disable generation of array fieldsFriedemann Kleint2021-06-211-1/+2
| | | | | | | | | | There is no Python -> C++ conversion for primitive fields yet and it and it seems to be not easily possible to bind an T&operator[](int) so that an assignment foo.array[3] = 5 works. Task-number: PYSIDE-1602 Change-Id: Ifd24ec984b3f71db6e486d959cf635116b9bbf95 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6: Use auto in field getter/setter codeFriedemann Kleint2021-06-211-6/+4
| | | | | | Task-number: PYSIDE-1602 Change-Id: Ic9e77553a9063c69971af9cd0edd5fdda993b7f4 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6: Use exceptions in the doc generatorFriedemann Kleint2021-06-212-16/+21
| | | | | | | | | | | | | Some fatal messages were warnings only due to too deeply nested functions. As a drive by, make error message about additional documentation more verbose. Complements f7901b0b29e831a3799bd7fc39dbdf5e67271ae8. Change-Id: Iba10f8061bd0c1cd108a2e036b2394aefdd20d87 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6: Port class FileOut to use exceptionsFriedemann Kleint2021-06-217-45/+38
| | | | | | | Complements f7901b0b29e831a3799bd7fc39dbdf5e67271ae8. Change-Id: I1d04ffd8f4b28c095b2def08075068dcdebba099 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6/Doc generator: Fix continuation dots in code snippetsFriedemann Kleint2021-06-191-3/+3
| | | | | | | | | Properly indent them after ::. Fixes a number of sphinx warnings about "Unexpected indentation" in data visualization examples. Pick-to: 6.1 Change-Id: I5ebf2df629dda5fba86b7e25a320cbe89e7dfb8b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6/Doc generator: Dedent documentation code snippetsFriedemann Kleint2021-06-187-75/+151
| | | | | | | | | | | | | Split out helpers for fixing code snippets from class CodeSnipAbstract (which is necessary since the QtXmlToSphinx test is compiled from single source files) and use them. Fixes a number of sphinx warnings about "Unexpected indentation" in data visualization examples. Pick-to: 6.1 Change-Id: I109f5f6a8158689f5c966630f1b29d797b48607d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6/Doc generator: Fix HTTP URLs in documentationFriedemann Kleint2021-06-181-5/+8
| | | | | | | | | | Always use as "external", do not reformat them as RST labels. Fixes for example the link to the Sinclair ZX Spectrum page in the QLCDnumber documentation, which appeared as WebXML link tag and was reformatted. Pick-to: 6.1 Change-Id: Ibf0195365488979bdfd3e08cdd59e77860ac30f6 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Add QKey support for the setShortcut methodCristian Maureira-Fredes2021-06-185-3/+17
| | | | | | | | | | | | | | | | | | When this method is used in Qt/C++, the argument gets internally cast to a QKeyCombination if it is a QKey, but in Python land this is not automatically covered. A workaround was for the users to manually cast the QKey, but this adds an extra step to achieve the same. This patch adds a new method to QAction and QAbstractButton to use setShortcut with a QKey as an argument. Pick-to: 6.1 Change-Id: I9e9ebe16a65cb5aeb26a367faecbbbd414d80e03 Fixes: PYSIDE-907 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* shiboken: remove obsolete error messageChristian Tismer2021-06-183-21/+0
| | | | | | | | | | | | This message became pointless in PySide6 because the word "iterator" no longer creates clashes in shiboken and PySide. Thanks for checking this, Friedemann! Change-Id: Ib0496039ab194049fd1f09867de1bbcfeb47d21e Pick-to: 6.1 Fixes: PYSIDE-498 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>