aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
Commit message (Collapse)AuthorAgeFilesLines
* PySide6: Clean the rejected types6.1Friedemann Kleint2021-09-211-17/+0
| | | | | | | | | Remove obsolete types. Change-Id: I6397f354fd02d47810668b93a65a661865697531 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit aaf3a48f544a40b75de2272f33fab512d85f6469) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Clean the suppressed warningsFriedemann Kleint2021-09-211-67/+7
| | | | | | | | | Remove obsolete warnings and add new ones. Change-Id: If4b8d1cfcfe858e86079eac32f24c3c65cbcf583 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit dbbbeb3c938be1f3f2a3888845113db1660873a7) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Prospective fix for OpenGL types on macOSFriedemann Kleint2021-08-251-0/+8
| | | | | | | | | | | | | | macOS has typedef uint32_t GLuint; typedef int32_t GLint; Add those types (C++11/C). Fixes: PYSIDE-1646 Change-Id: I7cd857ed06fee9925250964bdcdd93c42a251e34 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 901c2bdc12f4d5ce25c9b05a23915447fcc037d7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Shiboken: Remove cheating macrosChristian Tismer2021-08-121-4/+2
| | | | | | | | | | | | | | | | There are a number of cheating macros that allow to use the same code in Python 2 and 3. Because Python 2 is gone, remove these macros. This conversion was partially difficult since certain types collapsed in the XML files and generated functions contained substrings of the macros. This is actually the fourth attempt. Task-number: PYSIDE-1019 Change-Id: I116877afc8aa36f4710a40df1769f600b6b750ea Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit a21203d534c2947a2e5f472ace3e83c552e83191) Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* ApiExtractor: add classmethod attribute to add-function for tr()Christian Tismer2021-08-101-8/+4
| | | | | | | | | | | | | | | | | | | | | ++ This change was forgotten to port to 6.1 . It is needed for ++ feature: move getFeatureSelectId to Shiboken and refactor [ChangeLog][PySide6] The tr() translation method of QObject has been changed to be a class method. This makes it possible to use tr() on a class without instantiation. The tr() method of QObject should be a class method. - Build class method support into apiextraktor. - Use the new functionality in the tr() method. Listing of tr() in QtCore.pyi will be solved in an extra check-in. Task-number: PYSIDE-131 Task-number: PYSIDE-1252 Change-Id: If5093e038c091bf8c4d2a940fe206f6caa99568e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide: fix QItemSelection.__add__, supplementChristian Tismer2021-07-271-2/+1
| | | | | | | | | | The removal of the range was not necessary and created a warning. Task-number: PYSIDE-535 Change-Id: I07e87e544c13e58e6369b81bbecce43da37b0a86 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit dcfbb326e431de1e710385a8126b4a2739e2e921) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide: fix QItemSelection default and QItemSelection.__add__Christian Tismer2021-07-221-0/+9
| | | | | | | | | | | | | | | | | | | | | | QItemSelection with no argument should create an empty selector. This worked in Qt5. In Qt6, everything works but the empty argument. Without further analysis, this might be related to the new [default] tag found in the Qt6 QItemSelection documentation? Fixing this bug leads directly to the add operator, which returns a list instead of a combined QItemSelection. Fixed by removing `operator+(list<QItemSelectionRange>)` and re-adding it with QItemSelection Unrelated, occurred during bug hunting. Task-number: PYSIDE-535 Change-Id: Ie5b881659e54fc0eebc8c9903df6e14eb2788565 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 16429c860888578b5bda7fd75437dd1f6a79b331)
* PySide6: Add QSharedMemoryFriedemann Kleint2021-06-301-1/+15
| | | | | | | | | | | | | | Return a buffer from data()/constData(), from which a memoryview can be constructed. [ChangeLog][PySide6] QSharedMemory was added. Fixes: PYSIDE-1370 Task-number: PYSIDE-1482 Change-Id: I089801c55ed696d3dd59ef64da0e52e538e9b54d Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 4ee3c492e3fd19d7f863f0e2853901e0cb8f2c9e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6/QSignalSpy: Add constructor taking a signalFriedemann Kleint2021-06-191-0/+2
| | | | | | | | Task-number: PYSIDE-1482 Change-Id: Ifb9061af1828e7348de3ad5407c830aeb7d4f386 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit d3388316c3ac87c19cc668d9b5bca2b988db74ca) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Add further global functionsFriedemann Kleint2021-06-181-0/+2
| | | | | | | | Task-number: PYSIDE-1482 Change-Id: I337f8c817bc4d612a02a5482a63a94303e11c300 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 6938ca19e7a2b200ee83fdddce3c5908199c1f75) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix some shiboken warningsFriedemann Kleint2021-06-171-2/+0
| | | | | | | | | | | | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml:3019: enum 'QJsonDocument::DataValidation' is specified in typesystem, but not declared. sources/pyside6/PySide6/QtCore/typesystem_core_common.xml:2353: signature 'lock()' for function modification in 'QMutex' not found. sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml:504: signature 'operator<<(QPointF)' for function modification in 'QPolygonF' not found. sources/pyside6/PySide6/QtQuick/typesystem_quick.xml:108: enum 'QQuickWindow::NativeObjectType' is specified in typesystem, but not declared. Change-Id: I2d36246c2b3df4b7a7a5678dd3eedf73601a85ef Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 4b0185393fa46bb1944877303b878c7f3be747ec) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Add Qt::FindChildOptions to QObject::findChild(ren)Friedemann Kleint2021-06-141-3/+6
| | | | | | | | | Fixes: PYSIDE-905 Change-Id: Iae343d15fb0db1d37f95ab2d443596777d2dfac6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit c6b66ffab442d5ad9f0eb6a1d2dafec8bdded245) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix qcalendar_test.py on Windows/debugFriedemann Kleint2021-06-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | There is apparently some clash between QCalendar(QCalendar::System)/ QCalendar(size_t) on Windows, causing: ====================================================================== ERROR: testCalendar (__main__.TestQCalendar) ---------------------------------------------------------------------- Traceback (most recent call last): File "sources/pyside6/tests/QtCore/qcalendar_test.py", line 47, in testCalendar calendar = QCalendar(QCalendar.System.Gregorian) TypeError: Invalid type for unsigned long long conversion Reorder the overloads manually to prevent this. Note this is only in debug mode. Change-Id: I1de706d9bf8456a27ae68f995c6d744ce29ae23c Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit f090ca3c4431cb1ae569502fbf4bc68a0b9fa7e8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Add some missing classes from qtbaseFriedemann Kleint2021-06-031-0/+17
| | | | | | | | | | | [ChangeLog][PySide6] A number of missing classes from the qtbase repository have been added. Task-number: PYSIDE-1482 Change-Id: I7b5388df1a4773ccdf32d44e2d968ba814453e34 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 243aa7128cffd957f088ed66d5056211b64d7771) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Move class QSysInfo into the common type system fileFriedemann Kleint2021-05-281-0/+5
| | | | | | | | | | | | The platform-specific enumerations were removed by qtbase/59342379bde1be36b5c42cc8019c598138a0b534, so, there is no need to have it in the platform type system files. Task-number: PYSIDE-802 Change-Id: I66976e688c0642ae5cfef5d760c4d6a5d6d41467 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit fc64efb0ae9c60cfb58686b4a958f73519da26cb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Streamline per platform typesystem filesFriedemann Kleint2021-05-261-2/+11
| | | | | | | | | | | | - Remove no-longer existent macOS-specific classes - Move QAbstractEventDispatcher back to the core typesystem - Move all warnings to the core typesystem Change-Id: I9d733e1a1eb2682784f22ec3b4b7d976db737f02 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 74ed92ee701780b94cab863e462ee7466ce4b9d4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Enable the exec() functionsCristian Maureira-Fredes2021-05-061-4/+16
| | | | | | | | | | | | | With Qt6, PySide dropped support for Python 2.7, thus it does not make sense to keep our exec_() renaming inplace. This patch will enable the exec() functions, and adds a deprecation note for exec_(), which will enable us to safely remove it in the future. Change-Id: I7375e10632e7ab534ca264304a5a65f380b9b1bb Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 62acb997f7fce1ae922e3a9995272c78353048b9) Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add context management for QSignalBlockerFriedemann Kleint2021-04-281-1/+6
| | | | | | | Add __enter__/__exit__ modeled after QReadLocker. Change-Id: I6e8f93adf4e957bd20179c902aa429fb88f2537b Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add std::pair as a container in CoreCristian Maureira-Fredes2021-04-131-0/+10
| | | | | | | | | | | Since Qt6's QPair uses it underneath, we require to have a declaration so we are able to transform from and to Python. Fixes: PYSIDE-1544 Pick-to: 6.0 Change-Id: I9cc753cbbe0b352382996e896c00faff9bc0f819 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Remove unused glue codeFriedemann Kleint2021-03-101-2/+0
| | | | | Change-Id: I3f5adb202722aecbd34766e782c218720926b73d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* QSetting.value add overload documentationCristián Maureira-Fredes2021-01-051-0/+21
| | | | | | | | | | | | | | | When the new overload to specify a new "type" parameter was included, there was no documentation that could be reflected in our API docs. This adds a paragraph/example for the overload introduced by 78dad8180d797a647645b74255bfc29c46d7264a Fixes: PYSIDE-1466 Pick-to: 6.0 Pick-to: 5.15 Change-Id: I843e650f8eb4c32f4c67a31ed5cf9047c4f171f9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Remove rejection of namespace stdFriedemann Kleint2020-12-181-1/+0
| | | | | | | | | | | It prevents usage of std::shared_ptr in combination with Qt bindings. Pick-to: 6.0 Pick-to: 5.15 Task-number: PYSIDE-454 Change-Id: Ie893a37d1482f12692a0198f9058c887cfa823a9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Adapt to recent changes on Qt 6Friedemann Kleint2020-12-171-2/+1
| | | | | | | | | | | - Adapt QPersistentModelIndex to qtbase/6bc1a1ec2f630d38d87ff14c8ab4c3fa5eba35be - Remove QList method from QXmlStreamAttributes which is no longer found. Pick-to: 6.0 Change-Id: I81c7b825b4a6028292b672476908c4317191580d Reviewed-by: Christian Tismer <tismer@stackless.com>
* Move QKeyCombination from QtGui to QtCoreFriedemann Kleint2020-12-111-0/+2
| | | | | | | | | | It was mistakenly added to QtGui, but it lives in QtCore. Pick-to: 6.0 Change-Id: I398eb9735b4a4d6e570b054d288b1ef7ffa0478d Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Fix some warning messagesFriedemann Kleint2020-11-181-1/+1
| | | | | | | | | Use standard messages where applicable. Move some messages over to messages.cpp and add a location. Remove some messages that cannot be triggered any more. Change-Id: I7fc821e4360b06af7ef6e5db7e30de0f1e8ed5ca Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6: Add QMetaTypeFriedemann Kleint2020-11-161-0/+11
| | | | | | | | | | This is required for QSqlField among other things. Re-add the conversions that previously existed for the now deprecated QVariant::Type for QMetaType. Change-Id: If47168f0f45ecfbfe483a8eaa9c6e037477f5ce6 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix warnings about unused functions and variablesFriedemann Kleint2020-11-121-1/+0
| | | | | Change-Id: I7949defbd3f55b0ca231a21b0f9b8747024f8097 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Rename PySide2 to PySide6Friedemann Kleint2020-11-021-0/+3022
Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>