| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
- af9721d92e393529016f8eccf4a23cc95da8b021 caused the super project
build to break because now cmake detects two exports sets for each
target. For super project builds, when configuring cmake, we
restrict it to one target considering the super project build is
useful only to configure the IDE.
Change-Id: Ie37871369622034b5ca07f74b38c064982b12a90
Reviewed-by: Friedemann Kleint <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
- Create two CMake export sets. One for building PySide6 and shiboken6
together called *Targets.cmake. Another with the corrected paths based
on the wheel tree structure called *WheelTargets.cmake
- Copy all the necessary CMake files to the wheel.
Change-Id: If538ed3dac4d8195e96157c595bc63e991a5ee90
Reviewed-by: Friedemann Kleint <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
libpyside6qml is an integral part of PySide6 and is always distributed
alongside libpyside6. To simplify the CMake configuration:
1. Remove separate PySide6Qml CMake package.
2. Move pyside6qml target from its own export set to PySide6Targets.
3. Delete PySide6QmlConfig*.cmake files as they are no longer needed
Change-Id: If69db1b7c4056d50820eec1e60fde82664e0f1c4
Reviewed-by: Friedemann Kleint <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, the headers are installed as ${CMAKE_INSTALL_PREFIX}/include/cmake_package_name,
where cmake_package_name is the CMake package name, e.g., PySide6. In
the wheels, the headers were included as package_name/include. Since
the level of the include directory is different, this caused issues
when importing the CMake package in a downstream project.
- This change modifies the installation of the headers so that the
CMake install prefix and the wheels are consistent.
- Additionally
- this change adds the libpyside6 headers to the wheels.
- The include headers for libshiboken were shipped with
shiboken6-generator and not with shiboken6, which has the
libshiboken binary.
Change-Id: I96e3280799da169836e24551b906274f5b0fc962
Reviewed-by: Alexandru Croitor <[email protected]>
|
|
|
|
|
|
|
|
|
| |
It encapsulates fetching/restoring errors and uses the old or new
exception API depending on version.
Task-number: PYSIDE-3067
Change-Id: I6e39d92c7e79fed864b364a90c5bd5b474a41ed6
Reviewed-by: Christian Tismer <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Replace the Qt forwarding headers by the .h files. This brings down
the dependency list by approx 6%.
Pick-to: 6.9
Change-Id: Iae7640ccbdf6a8be68137922d4191522d914d790
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Remove the global header <shiboken.h> in favor of the respective
headers.
Pick-to: 6.9
Change-Id: I08ee39fbd5abb15741fa5746bb82f9ddcd32ed7f
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Import Callable, Iterable and Sequence from collections.abc,
since using them from typing is deprecated.
Pick-to: 6.8
Task-number: PYSIDE-3012
Change-Id: I131c00005df410fdaa40b338a2a728512269aaa0
Reviewed-by: Christian Tismer <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
In preparation for a change that might remove the automatic finding of
private modules.
Task-number: PYSIDE-2862
Task-number: QTBUG-87776
Change-Id: I22f872d341b20a3f39aa722ee83c2a7993661710
Reviewed-by: Alexandru Croitor <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
macros
Removing old macros for compatibility with the limited api,
and refactoring some of their usages
Change-Id: I33954199d2ef9884c64b963863b97aed851c440f
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
All callables have now arguments.
Task-number: PYSIDE-2846
Fixes: PYSIDE-2884
Change-Id: Ibf6b1d93350304550addbc459c1440bd5cefc057
Pick-to: 6.8
Reviewed-by: Shyamnath Premnadh <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Returning the qint64 result of the QV4::ExecutionEngine::throw...()
functions (usually 0) as int causes a lossy conversion warning. It is
not clear what the original intent of the code was; return -1 instead
to terminate processing in qt_metacall(), from which it is used.
Change-Id: I3a4f7f38ae6f2b36de47f7d14f6c12254f85147d
Reviewed-by: Shyamnath Premnadh <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
- Initialize variables
- Use auto *
- Use nullptr
- Remove repeated return types
- Minor cleanups
Change-Id: I26cacce81a4c8ebc885f8c34d59fdac5d0026af9
Reviewed-by: Shyamnath Premnadh <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The function PyErr_SetString is used quite often, which has
no return value. The bracketed sequence
PyErr_SetString(...);
return nullptr;
can in most cases be replaced by a single call to
return PyErr_Format(...);
To simplify matters, PyErr_Format is now used everywhere.
Task-number: PYSIDE-2404
Change-Id: I5988fcd2430be700415d14d7a5cc740211e61d08
Pick-to: 6.7
Reviewed-by: Adrian Herrmann <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In order to work with the new QML registration code, the legacy
qmlRegisterType() function set QMetaClassInfo items on the meta object
of the QObject type to be registered. This caused the meta object to
be recreated in PySide's dynamic meta object builder, breaking the
class inheritance information.
To fix this, use a separate dummy meta object to provide
the information.
Amends 91bf9aa10faad14de557136664f58005c935d11c.
Pick-to: 6.7
Fixes: PYSIDE-2709
Change-Id: Icbd56759279bc8fcf89705af013db560babe4065
Reviewed-by: Shyamnath Premnadh <[email protected]>
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
- fix broken propListCount() by changing the type of the returned value
to qsizetype. Amends f9662f9b4008f683d02c829ea59676a2cf49b2fb.
- Add tests to test all the ListProperty features.
- Fixes some flake8 errors.
Pick-to: 6.2 6.5 6.6 6.7
Task-number: PYSIDE-2698
Change-Id: I356e8af3af965374441f287391dcab9d724b28f9
Reviewed-by: Friedemann Kleint <[email protected]>
|
|
|
|
|
|
|
| |
Task-number: QTBUG-99313
Task-number: QTBUG-97601
Change-Id: I2422a995d73f19e385c73d54410004f7b8f9d77b
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
| |
Task-number: PYSIDE-2590
Pick-to: 6.6 6.5
Change-Id: I977d3d93b4f8385329e154a493a12d24ee0ac196
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Using PepType_GetSlot() as is requires adding ugly casts. To work
around, add a new file with convenience helper functions in C++
linkage. This also allows for using templates for tp_alloc.
Task-number: PYSIDE-560
Change-Id: Ia50a226f5b545861f885d600445b91b4e11713c5
Reviewed-by: Christian Tismer <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Use QLatin1StringView or literals.
Task-number: PYSIDE-2537
Change-Id: I03cb9ae80dacd84da9e53648dd179ad79e9189b1
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Shyamnath Premnadh <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Check for static method named "create()" and use that as a singleton
creation callback.
[ChangeLog][PySide6] It is now possible to use a
static method create(engine) for creating decorated QML singletons.
Fixes: PYSIDE-2432
Change-Id: I76c47385a0064733a1949a30d22cc01c280d0423
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a functor class with shared data that keeps a reference to an object.
Preparing for handling a static create() function as a singleton
creation callback, this allows for clean separation of the
object to keep the reference and the object to be called
and provides a way of cleaning up. The cleanup cannot be currently
activated since QML registration data are kept in global variables.
Task-number: PYSIDE-2432
Pick-to: 6.6
Change-Id: Id57811316e8803638ac3148fdad18a854be99cca
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Make the error messages more verbose and add additional checks.
Move the INCREF out of the check function.
Task-number: PYSIDE-2432
Pick-to: 6.6
Change-Id: I60e4ad90685f9a1a013aafb5b68503fcc59cec7d
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Do the check for QObject before setting the QClassInfo.
Amends 91bf9aa10faad14de557136664f58005c935d11c.
Task-number: PYSIDE-2484
Task-number: PYSIDE-2230
Change-Id: I3db5244360e8498c8c0e322302446b1b3f1ccd2a
Reviewed-by: Christian Tismer <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It is the better concept to use the same structure for
all type creation functions. We move the type slots and
type specs into these functions.
The calling function then always has the same structure
of one static expression and returning the type.
This might also save some space for shatic structures.
Task-number: PYSIDE-2230
Change-Id: Ib972f210f44422eb1ebe47a0d92ac18a8377ac87
Pick-to: 6.6
Reviewed-by: Friedemann Kleint <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Amends 862948599999e4e5701452a3f479182606e16a89.
Task-number: PYSIDE-1709
Pick-to: 6.6 6.5
Change-Id: I1b01f088cbcb99f0c7ac60324bbd98dc4c52f6b0
Reviewed-by: Shyamnath Premnadh <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Amends 91bf9aa10faad14de557136664f58005c935d11c.
Task-number: PYSIDE-2484
Change-Id: I0c2abd65d97eb34f9c11a585e00d3ac2abd695b4
Reviewed-by: Shyamnath Premnadh <[email protected]>
Reviewed-by: Dennis Oberst <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use QQmlPrivate::RegisterTypeAndRevisions and information set as
QMetaClassInfo as recommended by QML team. The only remaining old code
path is for qmlRegisterSingletonType() for the hypothetical case of a
value type.
[ChangeLog][PySide6] QML type registration has been ported
to use RegisterTypeAndRevisions.
Fixes: PYSIDE-2484
Change-Id: I7134cbfe1fad1fb543a560cc13b68327b9bd9c2b
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
| |
Task-number: PYSIDE-2484
Change-Id: Idc006c7c355be5e2f740837ee56b12d64d21f477
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
| |
Reduces the function parameter count.
Task-number: PYSIDE-2484
Change-Id: I53b243ae90600c548a35f5362b47f623c37d9f3f
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modern QML registration code is based on QMetaClassInfo, which uses
QByteArray; so, this will avoid conversions in the future.
As a drive-by, shorten some code and move getGlobal*() helpers to the
top for future changes.
Task-number: PYSIDE-2484
Change-Id: Iceadca5a42b5fb7cee330e61d543ca712b521ab3
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
An old thinking error was found that caused too late deletion
of an object. Note: The AutoDecref construct should never be
used in a static context.
Task-number: PYSIDE-2230
Change-Id: If6519014f564ed86ee95bd45e14ba4821274aea6
Pick-to: 6.2 6.5 6.6
Reviewed-by: Adrian Herrmann <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In f3f8939f347370dbd2738ecb536543bf8cff4a09, a second occurrence of
QQmlPrivate::RegisterSingletonType in qmlRegisterSingletonInstance()
was overlooked.
Take the opportunity to brace-initialize the QML register structs such
that further additions to them will then show up as warnings or
errors.
Pick-to: 6.6 6.5 6.2
Task-number: PYSIDE-2433
Change-Id: Ia2af115193531543522d427764e70130339af007
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Reviewed-by: Shyamnath Premnadh <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Initialize missing members of QQmlPrivate::RegisterSingletonType.
Pick-to: 6.5 6.2
Fixes: PYSIDE-2433
Change-Id: I441951e79471707129d42e21d27c4de352b0d703
Reviewed-by: Shyamnath Premnadh <[email protected]>
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
| |
Fixes: PYSIDE-2415
Pick-to: 6.5 6.2
Change-Id: I2b19b20b1dec584667fa82abe6be2901b9580f96
Reviewed-by: Shyamnath Premnadh <[email protected]>
Reviewed-by: Adrian Herrmann <[email protected]>
|
|
|
|
|
|
|
| |
Pick-to: 6.5
Task-number: PYSIDE-2206
Change-Id: Ia26104fba75cdba3e4d84e6fcfbffc94e4bfd3d7
Reviewed-by: Christian Tismer <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Hoping this will help the Qt Creator code completion.
Change-Id: I0777f5c38e37d560cfc1942b8acd5c76c8d64d25
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Alexey Edelev <[email protected]>
Reviewed-by: Shyamnath Premnadh <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
CMakeLists.txt and .cmake files of significant size
(more than 2 lines according to our check in tst_license.pl)
now have the copyright and license header.
Task-number: QTBUG-105718
Task-number: QTBUG-88621
Change-Id: I98bd2e80f182d8bf7aef6b633f37a428e2dac69b
Reviewed-by: Christian Tismer <[email protected]>
Reviewed-by: Kai Köhne <[email protected]>
|
|
|
|
|
|
| |
Task-number: QTBUG-109570
Change-Id: Ieb13bf352d9b75e364a73bddc464548ec19701ed
Reviewed-by: Christian Tismer <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
[ChangeLog] An option --unity has been added to setup.py enabling
enabling CMake UNITY_BUILD (jumbo) builds, which speeds up building.
Fixes: PYSIDE-2155
Change-Id: I235a18335d6070bc3eb4ea7f9953925f6d9e174c
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Reviewed-by: Shyamnath Premnadh <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Prevent clashes of the slots keyword and rename duplicated static
variables.
Task-number: PYSIDE-2155
Change-Id: I68fd004a595d7ed21f23c71d6635441aba85fd60
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
| |
Task-number: PYSIDE-802
Task-number: PYSIDE-962
Pick-to: 6.4
Change-Id: I6a9ea15a89630453600b44b3f22d2944f047622b
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will replace the structure of installed cmake directories,
for example:
cmake/PySide6-6.2.4/PySide6Config.cmake
to
cmake/PySide6/PySide6Config.cmake
Shiboken files under the cmake/ directory are affected as well.
[ChangeLog][pyside6] the version was drop from the cmake installed
directory.
Fixes: PYSIDE-2009
Change-Id: I778063a615f123e4398f8d776704302465cd0b76
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <[email protected]>
Reviewed-by: Shyamnath Premnadh <[email protected]>
Reviewed-by: Adrian Herrmann <[email protected]>
Reviewed-by: Alexandru Croitor <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Remove the define, fixing:
qjsprimitivevalue.h(805): error C2039: '_copysign': is not a member of 'std'
Pick-to: 6.3 6.2
Change-Id: Iad9b467decc81a3eed534f49d26e30237eef23de
Reviewed-by: Shyamnath Premnadh <[email protected]>
Reviewed-by: Christian Tismer <[email protected]>
|
|
|
|
|
|
|
|
|
| |
This should speed up compilation time.
Task-number: QTBUG-97601
Change-Id: Ibd25739dfe5032113ff9c1df5ff5da4cf9effc2d
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
|
|
|
|
|
|
| |
Change-Id: I46f6291c1c363b1e509ef458e635f97f4423f81b
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Christian Tismer <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
Replace the current license disclaimer in files by a
SPDX-License-Identifier. Files that have to be modified by hand are
modified. License files are organized under LICENSES directory.
Task-number: QTBUG-67283
Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d
Reviewed-by: Friedemann Kleint <[email protected]>
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Reorder includes such that local includes are first, followed
by Qt and C/C++ system includes.
Pick-to: 6.3 6.2
Change-Id: Ib801d34de7242befce4be429bfb099ccabe1f987
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
|
|
|
|
|
|
|
|
|
| |
[ChangeLog][PySide6] class QPyQmlParserStatus for handling
QML parser status changes has been added.
Fixes: PYSIDE-1876
Change-Id: Ic1066924ec85dc8633f959342921c1d03da1aee4
Reviewed-by: Christian Tismer <[email protected]>
|
|
|
|
|
|
|
|
|
| |
[ChangeLog][PySide6] Libraries are now stripped.
Task-number: PYSIDE-661
Change-Id: I20ea056b8e91cca917017afa62811208c297d51d
Reviewed-by: Alexandru Croitor <[email protected]>
Reviewed-by: Shyamnath Premnadh <[email protected]>
|