aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/plugins/designer/designercustomwidgets.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PySide6: Port to Qt include styleFriedemann Kleint2025-03-271-9/+9
| | | | | | | | | 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]>
* Qt Designer plugin: Remove Python version checkFriedemann Kleint2024-06-181-16/+22
| | | | | | | | | | Pre 3.8 is no longer supported. Move the code into a static helper for macOS only. This also fixes analyzer warnings about ignoring return codes. Pick-to: 6.7 Change-Id: Idd1a53729152f132958f94d288c13ac4399b6c78 Reviewed-by: Shyamnath Premnadh <[email protected]>
* build: undef slots to avoid conflict with qt in designercustomwidgetsCristián Maureira-Fredes2024-02-081-0/+1
| | | | | | | | | While using unity builds, the 'slots' definition seems to come before the Python.h include. Pick-to: 6.6 Change-Id: I6ff147874fcad31b02438190c44cd70a8e573a1c Reviewed-by: Friedemann Kleint <[email protected]>
* Fix usages of QLatin1String (deprecation candidate)Friedemann Kleint2023-11-291-4/+3
| | | | | | | | | Use QLatin1StringView or literals. Task-number: PYSIDE-2537 Change-Id: I03cb9ae80dacd84da9e53648dd179ad79e9189b1 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Shyamnath Premnadh <[email protected]>
* UiTools/Designer plugins: Fix some static code analysis warningsFriedemann Kleint2023-10-171-7/+9
| | | | | | | | | | | Fix warnings about implicit cast to bool (pointer/int). Fix some auto * definitions of pointers. As a drive-by, modernize string constants. Pick-to: 6.6 6.5 Change-Id: I05f83de9299dd91e80fc4252514f6cbbebcf1cfc Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* PySide6 Qt Designer plugin: Silence warnings when used from QUiLoaderFriedemann Kleint2023-08-031-3/+11
| | | | | | | | | | Only output warnings when run from Qt Designer as determined by the application name. Pick-to: 6.5 Change-Id: I870ca75242bf70bdf53c51fdeb0f70067455e268 Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Adrian Herrmann <[email protected]>
* Qt Designer plugin: Fix running from within QUiLoaderFriedemann Kleint2023-02-091-1/+3
| | | | | | | | | | Prevent re-initialization of Python. Fixes: PYSIDE-2222 Pick-to: 6.4 Change-Id: I50d813479598aa160ed163eb4de50bb9e34b6f99 Reviewed-by: Adrian Herrmann <[email protected]> Reviewed-by: Shyamnath Premnadh <[email protected]>
* Port from qAsConst() to std::as_const()Friedemann Kleint2022-10-131-1/+1
| | | | | | | | qAsConst() will be deprecated in Qt 6.5. Task-number: QTBUG-99313 Change-Id: Ibc7c2e26b0e52cec905a406ef081e0b99bcce50f Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Use SPDX license identifiersLucie Gérard2022-05-271-38/+2
| | | | | | | | | | | 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]>
* Fix designer plugin for macOSCristián Maureira-Fredes2021-05-111-3/+20
| | | | | | | | | Adding the site-packages path for standalone builds, similar to the issue we had for Windows and 3.8 Pick-to: 6.1 6.1.0 Change-Id: Iff4f2c7504d579ca7f00df1c9e07f62a9dd1f1e3 Reviewed-by: Friedemann Kleint <[email protected]>
* PySide6: Use the Python version the plugin is running underFriedemann Kleint2021-05-111-1/+9
| | | | | | | | Pick-to: 6.1 6.1.0 Task-number: PYSIDE-1455 Change-Id: Iba9429d2c42f471661b250829aaf124a4b8b72b2 Reviewed-by: Cristian Maureira-Fredes <[email protected]> Reviewed-by: Christian Tismer <[email protected]>
* PySide6: Add a Designer pluginFriedemann Kleint2021-02-161-0/+260
Add a convencience class QPyDesignerCustomWidgetCollection to the Qt Designer module, which provides functions for registering widget types or adding QDesignerCustomWidgetInterface instances. A static instance of it is stored as a dynamic property on QCoreApplication, which is retrieved by a Qt Designer plugin, which provides the collection of widgets registered in Python. Task-number: PYSIDE-1455 Change-Id: If4055e6c9db6a03b32016b013a1130051bbd472a Reviewed-by: Cristian Maureira-Fredes <[email protected]>