aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmlpuppetcommunication
Commit message (Collapse)AuthorAgeFilesLines
* QmlDesigner: VariantProperty::value() return const &Marco Bubke2025-04-291-1/+1
| | | | | | | | - Use const reference to prevent rvalue errors - Add -> operator to use "->" instead of ".value()." Change-Id: I3ddf6afa8cd8448829f885a821ae01b86aba3c8f Reviewed-by: Ali Kianian <[email protected]>
* QmlDesigner: Add preset layout options for 3D ViewAmr Essam2025-04-172-2/+3
| | | | | | Task-number: QDS-14907 Change-Id: I0937a64dc1820727178372663e2913f2c2239f10 Reviewed-by: Mahmoud Badri <[email protected]>
* QmlPuppet: Replace QVector with QList and clean up includeshjk2025-04-1540-147/+138
| | | | | | | QVector is only a type alias, QList the real thing in Qt 6. Change-Id: I61070fa42ce349808717d0c225a4cbe99584dcc8 Reviewed-by: Marco Bubke <[email protected]>
* QmlDesigner: Change ImageCache to use new qml-renderer puppetMiikka Heikkinen2025-02-171-10/+0
| | | | | | | | | | | | | | | | | | | ImageCacheCollector now uses new qml-renderer puppet to generate preview images. Removed -W and -H args from qml-renderer and added --minW, --minH, --maxW and --maxH args to specify acceptable range for final scaled size of the image. If natural size of the rendered image fits within this range, then the image is not scaled. Added --libIcon arg to qml-renderer to suppress background on 3D nodes. Also changed item library icons to respect aspect ratio. Fixes: QDS-14692 Change-Id: I88f3461626f69191770c0c5e7d79c14d7e82e609 Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: Marco Bubke <[email protected]>
* QmlDesigner: Use QStringView to avoid some allocationsMarco Bubke2024-12-231-1/+1
| | | | | | | std::ranges would be even more optimal but we can do that later. Change-Id: I81a949bc1f9149e8a33bed88dc5ff9a9949bdc20 Reviewed-by: Tim Jenssen <[email protected]>
* QmlDesigner: improve terminology consistencyTim Jenßen2024-12-122-2/+2
| | | | | | | | | | | | | | - Removed secondary name "QML Emulation Layer," which was introduced to hide the term "QML Puppet" from normal users - "QML Puppet" settings are nowadays hidden from normal users anyway - Added crash info indicating it is an internal process; this is the only location where "QML Puppet" is exposed to normal users - Removed outdated CMake comments Task-number: QDS-13345 Change-Id: Idb8b909580269a8396842f1cc4ad056649075d01 Reviewed-by: Thomas Hartmann <[email protected]> Reviewed-by: Miikka Heikkinen <[email protected]>
* FormEditorView: setupRootItemSize improvementRafal Stawarski2024-12-091-1/+2
| | | | | | | | | The improvement is that auxiliary dimensions are only used when no other (explicit or implicit) dimensions are defined. Task-number: QDS-11292 Change-Id: I3c51d7a3cb1028a5aa5bc038f2bdf696191f4cb6 Reviewed-by: Thomas Hartmann <[email protected]> Reviewed-by: Marco Bubke <[email protected]>
* QmlDesigner: Add a camera view to 3d editor viewAli Kianian2024-08-231-0/+1
| | | | | | | Task-number: QDS-13275 Fixes: QDS-13352 Change-Id: I9b583a273a0aa7fc0d2c72b274fca243cc65546e Reviewed-by: Miikka Heikkinen <[email protected]>
* QmlDesigner: Use more string views in the modelMarco Bubke2024-07-241-0/+3
| | | | | | | | | To decouple the string implementation from the internal string. It should lead to much less allocations too after the rest of the code is converted too. Change-Id: Ifb49f57b9e5ac5af4963e1257c535ddef6044d93 Reviewed-by: Tim Jenssen <[email protected]>
* QmlDesigner: Qt 6.8 fixesTim Jenssen2024-07-012-3/+4
| | | | | | Task-number: QDS-13175 Change-Id: Ic7ac18974c7e3e08758eed0ca50376737d919196 Reviewed-by: Aleksei German <[email protected]>
* QmlDesigner: Add persistent auxiliary storageMarco Bubke2024-06-131-1/+2
| | | | | | | | | The persistent storage is saving the data in-between program executions. A sqlite database is providing the backend. The model nodes need an id to be identified. Change-Id: I24e4ea5184c04cb6a9e3828059ca593ee41d271e Reviewed-by: Thomas Hartmann <[email protected]>
* QmlDesigner: Get the material image based on request idAli Kianian2024-06-074-17/+53
| | | | | | | | | | | A request id is used for comparing requests instead of image sizes Returned image sizes was not always the same as requested ones because of pixelRateRatio. Fixes: QDS-12961 Change-Id: I2f0ed7ea00047f296872a02958322f3448984f09 Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: Miikka Heikkinen <[email protected]>
* QmlDesigner: Show more information on import 3D dialog listMiikka Heikkinen2024-06-061-0/+1
| | | | | | | | | | | | Preview image and some additional info are now shown on 3D import dialog's list of imported objects. Individual items can be removed from the list by clicking "x" button on the list or pressing delete key. Fixes: QDS-12900 Change-Id: Iad366ea308203a25bc3379b47c1d9c4f75f13fa7 Reviewed-by: Ali Kianian <[email protected]> Reviewed-by: Mahmoud Badri <[email protected]>
* Qml2Puppet: use better standalone fixTim Jenssen2024-05-301-3/+9
| | | | | | | without extra dependency Change-Id: I0bbc91c94feb84d0a0bbef8009b411ec20093079 Reviewed-by: Marco Bubke <[email protected]>
* QmlDesigner: Add support for previewing multiple 3D importsMiikka Heikkinen2024-05-301-1/+3
| | | | | | | | | | Imported items are shown on a list in import dialog and a preview is generated for each. Options are also specified per-import rather than applying to all imports. Fixes: QDS-10806 Change-Id: I6be09880afc0f8886585c4e768da1197b46bc71a Reviewed-by: Mahmoud Badri <[email protected]>
* Qml2Puppet: fix standalone buildTim Jenssen2024-05-291-1/+1
| | | | | Change-Id: I3e72e7e8ffe10f9969da8ab5a6a8cd0a6f3e4738 Reviewed-by: Tim Jenssen <[email protected]>
* Utils: Add to_underlyingMarco Bubke2024-05-281-8/+3
| | | | | | | | | to_underlying was added to C++23 to get the underlying integer type for an enumeration. Change-Id: Ib7262882a47cf4b060cff428bb10a6a65c089fc5 Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: Tim Jenssen <[email protected]>
* QmlDesigner: Add look-at gizmo to visualize 3D edit camera look-at posMiikka Heikkinen2024-05-241-0/+1
| | | | | | | | | Look-at gizmo can be toggled from visibility toggles submenu. Look-at gizmo is hidden when fly mode crosshairs is visible. Fixes: QDS-12767 Change-Id: I2c71b23f14e403c9774498937764607cfea3bd1d Reviewed-by: Mahmoud Badri <[email protected]>
* QmlDesigner: Allow rotation of 3D import previewMiikka Heikkinen2024-05-231-1/+2
| | | | | | | | | | | | 3D import preview can now be rotated using left mouse button and dragging the preview image. This causes camera to orbit around the previewed model, similar to rotation to 3D edit view orbit camera. Close/Cancel button logic was also improved. Fixes: QDS-12795 Change-Id: I0c7d1ad28f8fe779b9bedc4bf76be704078d91a6 Reviewed-by: Mahmoud Badri <[email protected]>
* Show 3D import previewMiikka Heikkinen2024-05-212-1/+3
| | | | | | | | | | Show preview of 3D import in item library import dialog when importing a single 3D asset. Fixes: QDS-11111 Change-Id: I13135be1e931cbee034ca8a89654c0827b937bdf Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: Qt CI Patch Build Bot <[email protected]>
* Allow scene environment as background for non-View3D scenesMiikka Heikkinen2024-05-201-1/+2
| | | | | | | | | | | For non-View3D scenes, the environment from the previous View3D is used. Fixes: QDS-12398 Change-Id: I6adc82cd0205ebe443b5834d9bb0f4906e2cd009 Reviewed-by: Qt CI Patch Build Bot <[email protected]> Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: <[email protected]>
* QmlDesigner: Use reverse iterators to support qualified scopesThomas Hartmann2024-05-141-5/+8
| | | | | Change-Id: I88a4dcbff7a50f399b81a948f273e9cf9e36782d Reviewed-by: Marco Bubke <[email protected]>
* QmlDesigner: silence warning for empty imagesTim Jenssen2024-04-101-4/+5
| | | | | | | | Also correct logging category the default type is already QtDebugMsg which adds .debug Change-Id: I87803cd2fe9dc142ca8ce271547706f8d7cba3a1 Reviewed-by: Thomas Hartmann <[email protected]>
* Doubleclick on View3D item in 2D view will open 3D viewMiikka Heikkinen2024-03-111-0/+1
| | | | | | | | | | Also if the click was over a visible model in View3D, that model will be selected. 3D view edit camera will be aligned to the scene camera currently in use. Fixes: QDS-12188 Change-Id: I25823dbbcf9d1706b2cdefb8c34aa78ecd93e407 Reviewed-by: Mahmoud Badri <[email protected]>
* QmlDesigner: Add fly mode for 3D viewMiikka Heikkinen2024-03-071-1/+5
| | | | | | | | | | | You can now activate fly mode in 3D view by pressing right mouse button. In fly mode, cursor is hidden and mouse controls edit camera rotation directly, and WASDQE can be used to move the camera around. Fixes: QDS-12030 Change-Id: I52550502632af19de36a1557d9aac84ff3cb18cc Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: Qt CI Patch Build Bot <[email protected]>
* Build nanotrace profiling by defaultEike Ziller2024-01-221-1/+1
| | | | | | | | | | | | | | | And enable its availability for startup performance measurement. Makes it possible to run with `-trace <filepath>`, creating a CTF for startup performance, without requiring a special QtC build. Usage in QmlDesigner/DesignStudio is guarded by an additional DESIGNSTUDIO_USE_NANOTRACE CMake option (default off), since that adds a menu item that should usually not be shown. Change-Id: I87200745cc32f256bcaaba21f139b4104459e49a Reviewed-by: hjk <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: Knud Dollereder <[email protected]>
* QmlDesigner: Add shader overrides for materials and models in 3D viewMiikka Heikkinen2023-11-032-1/+4
| | | | | | | | | | | | It is now possible to override all materials and models used in the scene with options available in QtQuick3D.DebugSettings. The overrides are assigned per-split. Fixes: QDS-11068 Change-Id: I3a3bc372e860d7f61942eb40166464c9c86efd8e Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: Mats Honkamaa <[email protected]>
* Merge remote-tracking branch 'origin/12.0' into qds/devTim Jenssen2023-11-011-2/+2
|\ | | | | | | Change-Id: Iefea658312bba6675eadce23fb8dc92f9207ea0e
| * Merge remote-tracking branch 'origin/qds/dev' into 12.0Tim Jenssen2023-10-051-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: share/qtcreator/qmldesigner/connectionseditor/SuggestionPopup.qml share/qtcreator/themes/dark.creatortheme share/qtcreator/themes/default.creatortheme share/qtcreator/themes/flat-dark.creatortheme share/qtcreator/themes/flat-light.creatortheme share/qtcreator/themes/flat.creatortheme src/libs/utils/CMakeLists.txt src/plugins/CMakeLists.txt src/plugins/qmlprojectmanager/qmlproject.cpp src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp Change-Id: Idd87c281e1aa7b7fd2702473ad55e18563cbfb21
| * \ Merge remote-tracking branch 'origin/qds/dev'Tim Jenssen2023-09-143-15/+2
| |\ \ | | | | | | | | | | | | Change-Id: Id242ab4ca485527defdcc1555d204e12e50ddb7a
| * \ \ Merge remote-tracking branch 'origin/qds/dev'Tim Jenssen2023-07-211-43/+47
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: tests/unit/tests/printers/gtest-creator-printing.cpp Change-Id: I5f791161ca1a2966e98a3ca55bc60e5bcbb8f58f
| * | | | Replace Q_OS_OSX with Q_OS_MACOSTor Arne Vestbø2023-06-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibee0c259d7df86a8df58b1ad12549b145f715397 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
* | | | | QmlDesigner: Add toggle button for 3D split viewMiikka Heikkinen2023-10-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The button and puppet communication is added for split view toggle. Task-number: QDS-10921 Change-Id: I4322dfff6772eec493a2f3ce1722cdefb69bc490 Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: Qt CI Patch Build Bot <[email protected]> Reviewed-by: <[email protected]>
* | | | | QmlDesigner: Add enter and leave event support to 3D viewMiikka Heikkinen2023-10-102-4/+15
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Fixes: QDS-10917 Change-Id: Iefcf92bd4a747d35f44e47c438548338fccfc4a2 Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: Qt CI Patch Build Bot <[email protected]>
* | | | QmlDesigner: Sync also skybox for scene environment in 3D viewMiikka Heikkinen2023-10-021-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | If scene environment sync is specified for the 3D view background, we now sync also skybox instead of just the clear color. Fixes: QDS-10775 Change-Id: I3e8bd3b8155a4fbe476ca348761d56955a62f7c4 Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: Qt CI Patch Build Bot <[email protected]>
* | | QmlDesigner: Refactor 3D view background and grid color implementationMiikka Heikkinen2023-09-052-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new implementation doesn't require these colors to be stored in external dependencies anymore, as auxiliary properties are used for them instead. Fixes: QDS-10496 Change-Id: Ie71408617259d1af73a45f327d4bdfa4f2fa3a2b Reviewed-by: Mahmoud Badri <[email protected]>
* | | QmlDesigner: Fix enumeration generation from scope and nameMiikka Heikkinen2023-08-031-1/+1
| |/ |/| | | | | | | | | | | | | | | | | Fixes: QDS-10363 Fixes: QDS-10387 Change-Id: I32b7b4a01aeeb6b8d6cd3a4e1fd819c0fa4753e4 Reviewed-by: Marco Bubke <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: Qt CI Patch Build Bot <[email protected]> Reviewed-by: Mahmoud Badri <[email protected]>
* | QmlDesigner: Modernize EnumerationMarco Bubke2023-07-191-43/+47
|/ | | | | | | | | | Save some allocations and return a view instead of a new value. If you want a value because you depend on a null terminated string you have to use toScope() and toName(). Task-number: QDS-10290 Change-Id: Ia87b8d559fc1fe9bb1992e61da0aa86c68d53535 Reviewed-by: Tim Jenssen <[email protected]>
* QmlDesigner: Implement basic lights baking supportMiikka Heikkinen2023-04-062-2/+7
| | | | | | | | | | | | | | | | It is expected that user manually specifies all necessary light baking related properties, including exposing them from subcomponents if needed. qlmdenoiser that is used to denoise generated light maps is a third party application. It can be found here: https://git.qt.io/laagocs/qlmdenoiser Fixes: QDS-9403 Change-Id: Ida6fc142440b9ffa8cc97d578f85d8b76cb4b43f Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Thomas Hartmann <[email protected]> Reviewed-by: Mahmoud Badri <[email protected]>
* Replace GPL-3.0 with GPL-3.0-onlyKai Köhne2023-01-10100-100/+100
| | | | | | | | | | | | | GPL-3.0 is deprecated by SPDX. Change done by find . -type f -exec perl -pi -e 's/LicenseRef-Qt-Commercial OR GPL-3.0(?!-)/LicenseRef-Qt-Commercial OR GPL-3.0-only/g' {} \; Change-Id: If316a498e3f27d2030b86d4e7743b3237ce09939 Reviewed-by: Lucie Gerard <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
* CMake build: Use version-less Qt targetsEike Ziller2023-01-051-1/+1
| | | | | | | | | Since we do not support Qt < 5.15 anymore, and as a first step for getting rid of our special FindQt5.cmake. Change-Id: Icc5dbaf9b0a3a622b1f609ff114b9decb6d2856c Reviewed-by: <[email protected]> Reviewed-by: Cristian Adam <[email protected]>
* qml2puppet: Remove foreach usageArtem Sokolovskii2022-12-2110-10/+10
| | | | | | | Change-Id: I00af71e640a46962f987f7eb7d360f04d68f23ea Reviewed-by: <[email protected]> Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: hjk <[email protected]>
* QmlPuppetCommunication: Fix cmake file for lupdateChristian Stenger2022-12-191-1/+14
| | | | | | | | lupdate cannot handle conditional source files. Fixes target ts_untranslated. Change-Id: I4110df9c8d935e3d10446cc8cc3b5d10d192e612 Reviewed-by: Eike Ziller <[email protected]>
* QmlDesigner: Fix shaking items when scrubbing the timelineThomas Hartmann2022-11-163-9/+24
| | | | | | | | | | | | | | | The reason for this is that when scrubbing the timeline, the bounding rectangle can change a lot (See bugreport). If this is the case the pixmap and the bounding rectangle get temporarily out of sync, which leads to the shaking. In this patch we add the bounding rectangle to the pixmap command. The bounding rectangle coming with the pixmap has higher precedence. This means if there is a pixmap, then the pixmap is always in sync with the pixmap. If there is no pixmap we use the "original" bounding rectangle. Task-number: QDS-7828 Change-Id: I40c0b7ed97863b9dca726547927ae1a37f9c415d Reviewed-by: Tim Jenssen <[email protected]>
* QmlDesigner: QmlPuppet as standalone toolMarco Bubke2022-11-09102-0/+6100
The qmlpuppet is now a standalone tool. There is new a library too with the communication code. That is shared between the designer and the puppet. It's in a .cmake file so it can be included by the standalone tool if it is not part of a designer build. Task-number: QDS-5879 Change-Id: I2bc2a0b463fbb3e0c8c23d182abfd368cf87e968 Reviewed-by: Thomas Hartmann <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>