Commit Graph

8660 Commits

Author SHA1 Message Date
Christian Stenger
2842eeeecc AutoTest: Start renewal of wizard
Remove option for enabling C++11 for gtest. C++14 is minimum
nowadays when using a recent gtest version.

Change-Id: Iaa1c07be37fba0ee80d3bc46cef7238e91a541cd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-18 11:26:08 +00:00
Christian Stenger
23fffcb429 AutoTest: Fix creating cmake and qbs based test projects
Fixes creation of test projects for GTest, Boost Test and
Catch2 when not using qmake as build system.

Change-Id: I2fee3bcacf310e6dc4dbdd50bf8bd445dfb74328
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-18 11:25:58 +00:00
Miikka Heikkinen
516a2238e2 QmlDesigner: Ensure we save the latest values on 3D snap dialog close
Track value property of spin boxes changes directly instead of the
extra valueModified signal, which is not emitted in all cases.

Also removed duplicate applying of snap configuration.

Fixes: QDS-10653
Change-Id: If0ce7bffa1dcfb5b01e80b6e962f356f91f44d51
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-18 10:09:31 +00:00
Henning Gruendl
44699727ad QmlDesigner: Close dialog when view loses focus
Change-Id: Ib48229615ee9b2ccef1a8be98086a93851dae6af
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-18 09:58:43 +00:00
Eike Ziller
6cc11b21c5 German translation: Squish
Change-Id: If4a4be5a308d842a7441e054ed6028011f4aeb84
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-18 06:49:07 +00:00
Henning Gruendl
f25ce01ead QmlDesigner: Close dialog when view loses focus
Change-Id: I4666953ff862886fbb02fb3982d6856a223fe969
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-15 19:50:41 +00:00
Brook Cronin
a496ac5d02 QmlDesigner: Design fixes for connections popout
Change-Id: I06968cfef23f8b296f1ba6b07e57cdc96701447b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-15 17:21:33 +00:00
Henning Gruendl
5aa3e573ce QmlDesigner: Fix empty literal remove
Fix issue that literal token is not immediately when pressing backspace
and text is empty.

Change-Id: I7ba2401ad6adfa689f697188feb7b30a71d82eeb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-15 16:58:01 +00:00
Henning Gruendl
9b2d6f5edd QmlDesigner: Fix Connections Popup layout
* Set proper width on labels
* Set proper width on StatementEditor
* Forward backend property into StatementEditor

Change-Id: Ia0db6ff7f235bd8d25eb0f36124fa158b76aaf04
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-15 16:57:51 +00:00
Henning Gruendl
55034b1cde QmlDesigner: Pill redesign
Change-Id: I3c28599c3cbc1555fbdb206e387dccf6f45a77cd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-15 16:57:34 +00:00
Miikka Heikkinen
f3036d52e5 QmlDesigner: Fix dragging 3D snap configuration spinboxes
Changed to use HelperWidgets.DoubleSpinBox, which has the proper drag
support built into it and implemented required context functions.

Fixes: QDS-10639
Change-Id: I6fce39251d7f754985f95bba5784784fc6eb8fae
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-15 12:52:30 +00:00
Henning Gruendl
b73b94d27a QmlDesigner: Remove anchors from positioner child
Change-Id: Ibff848d5f80ac74491ab77e88baffb4d0e1454bf
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-15 12:48:05 +00:00
Henning Gruendl
954385c34d QmlDesigner: Fix wrong role name
Change-Id: I195ead9ade9c4bc430bdee630f533e6e04e15027
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-15 12:47:54 +00:00
Henning Gruendl
6d5ceadccf QmlDesigner: Improve type selection
* Disable custom item in Connection Editor type selection
* Rename Unknown to Custom

Change-Id: I9fa8c9ab6284503d5ccc61813454b9d10f291a06
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-15 11:33:49 +00:00
Henning Gruendl
5ed667c554 QmlDesigner: Add chevron to items with children
Add chevron to the ItemDelegates of the SuggestionPopup if items have
children. This indicates that the user can click on it and go deeper.

Change-Id: I905769b8190b81a92025861a3fc38817de5b56ed
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-15 11:33:41 +00:00
Miikka Heikkinen
ac6d875d12 QmlDesigner: Display informative string for 3D support in Qt5 projects
Fixes: QDS-10661
Change-Id: I91ba32e478039711758e19c11d385af9fac4c99f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-09-15 08:28:22 +00:00
Alessandro Portale
7de9667a7f Themes: Update DS* roles for all non-QDS themes
Update non-QDS "dark" themes with DS* values from "design".
Update non-QDS "light" themes with DS* values from "design-light".

Change-Id: I7561d5f9e5ad22cd791b5d9772a3ad2f7c2bb399
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-15 07:20:29 +00:00
Henning Gruendl
6fbf77b027 QmlDesigner: Fix open/close Connections Editor
Improve the selection mechanism in all 3 Connections Editor tabs. When
a new item is added automatically select it and open the popup. When the
current item is removed, close the dialog. When the dialog is closed
deselect the item.

Change-Id: I918bbff6b290b38d496de8c2fa5f31d617f4d21c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-14 17:17:28 +00:00
Aleksei German
26ac6c2606 QmlDesigner: Integrate Editor into Connections
Task-number: QDS-10530
Change-Id: I579c5e5d55b2136b96e32a448315dda8e720f2fb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-14 17:16:47 +00:00
Tim Jenssen
1a3a8ecc96 Merge remote-tracking branch 'origin/qds/dev'
Change-Id: Id242ab4ca485527defdcc1555d204e12e50ddb7a
2023-09-14 17:37:24 +02:00
Henning Gruendl
9be23b73ea QmlDesigner: Align code preview properly
Change-Id: I05599041b69edf7c8ecaeeff0144d1a4ed6117c3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-14 15:04:21 +00:00
Tim Jenssen
a603b65f18 Merge remote-tracking branch 'origin/11.0' into qds/dev
Change-Id: I2bf1a2a72d9765d9b4088840414b4933644db47a
2023-09-14 12:23:01 +00:00
Ali Kianian
252a1f3c74 QmlDesigner: Add a view for single collection
Change-Id: Iee103cf9344872e0f2eaa564fa1feeaea4d26d6a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-14 10:44:05 +00:00
Ali Kianian
f12f3790da QmlDesigner: Implement Collection Editor
Data could be loaded from a csv or json file, and would be appended
to the collection node.

Task-number: QDS-10462
Change-Id: I60294582331ba20eb5ecb5d8fd591055c0eb6d1e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-14 10:43:57 +00:00
Henning Gruendl
650dabdc25 QmlDesigner: Add scroll bars to SuggestionPopup
* Add scroll bars
* Fix focus style for expression builder

Change-Id: I08f4334b3d480e4395a0c017634dd42f8eff74bb
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-14 09:59:27 +00:00
Henning Gruendl
89d5795f7a QmlDesigner: Hide QML debug output
Change-Id: Ice49d7ab5a5d90feccf52f98b1049576f96ae275
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-14 09:59:17 +00:00
Christian Kandeler
c816a9b523 qbs build: Remove unneeded Project items
Also update type descriptions.

Change-Id: I2b7d8814913cfb72cb8280601338ab763d8fabe6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-14 09:58:01 +00:00
Henning Gruendl
1824ccd380 QmlDesigner: Add placeholder in expression builder
Task-number: QDS-10667
Change-Id: Iad83ba5e398b06ebafb64ab1d5d9a2a5543a7204
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-14 09:17:59 +00:00
Henning Gruendl
b55d44080a QmlDesigner: Remove QML debug output
Change-Id: Icdd705a43ddcca10ca1ec5e6dc1ec72f8f208a94
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-14 09:17:52 +00:00
Henning Gruendl
1327a2c7ce QmlDesigner: Add transient scroll bar
Add transient scroll bar to connections editor

Change-Id: Id4afd661da2fcdeacd2a4a0de0e0b9999c14dec2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-13 16:55:12 +00:00
Henning Gruendl
91029f9752 QmlDesigner: Fix ComboBox not closing
Change-Id: I562005d3102efafc52cc01b161aeaeba56581095
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-13 14:49:47 +00:00
Henning Gruendl
ffd23a68a2 QmlDesigner: Remove QML output
Change-Id: I40263a26304904a827a90f86272eacb2d1684a69
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-13 14:49:39 +00:00
Henning Gruendl
9f391acdd9 QmlDesigner: Add focus handling to close popup
Add proper focus handling to the expression builder in order to close
the popup when e.g. clicking outside.

Change-Id: I5ea8422c727b5fc6e47dc77866b709e4ec04e6fd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-13 14:49:31 +00:00
Ali Kianian
251e1cca4c QmlDesigner: Make shortcut accessible from the MenuItem
The shortcut property is accessible directly for the MenuItem.

Change-Id: I6d956859411a02dcd9c9610cfa4ccffb2e7867e7
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-12 15:42:17 +00:00
Henning Gruendl
ed6f870a81 QmlDesigner: Add operators to expression builder
* Show operator fills when cursor is placed at position where operator
  is required
* Convert operators from real syntax to text version

Task-number: QDS-10630
Task-number: QDS-10638
Change-Id: Iffceb24024b7cde9a93c2acd0033fedd54e2ee32
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-12 10:45:39 +00:00
Henning Gruendl
28933f2d4d QmlDesigner: Expand and hide root item
Hide and expand root item in the tree model of the connections editor
search result.

Change-Id: If6591077fee59542153f2167dfd43c8132b66c95
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-11 10:46:03 +00:00
Henning Gruendl
41ee64b8a4 QmlDesigner: Remove debug UI in connections editor
Change-Id: Ifc3c0b3c1fa09eff0b0ea650540ceeb00091789d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-11 10:45:52 +00:00
Henning Gruendl
171e11b4c7 QmlDesigner: Fix Expression Editor
* Fix cursor placement after submit
* Remove pill indicator for wrong ordering
* Fix PropertyTreeModel root child count and parent name

Change-Id: I169396cf3cc62890fafe0bfe75d736be3ca8d47f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-11 10:45:47 +00:00
Henning Gruendl
522a622e9a QmlDesigner: Fix QML window hide issue on macOS
Task-number: QDS-10585
Change-Id: Iabf834627701d84bd693db6d22c3699e1209fccf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-11 10:02:59 +00:00
Knud Dollereder
2dda34f781 Extend bindingmodel and minor fixes
- Include singletons in the list of sources (former sourceModelNodes)
- Do not suggest sources on bindings that are initialized without a
  source node. Prevent constructs like
  "property string p: button.qsTr("STREXPR3")".
- Allow changing the name of the target property and update the
  delegate properly when doing so.
- Remove superfluous emitCurrentIndex emission from the
  dynamicpropertiesmodel.
- Add missing qml imports.

Note that it is still possible to create illegal constructs if the user
wants to.

Change-Id: I084978f2f8d451df076d1b556db15764e17e31fb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-11 09:15:31 +00:00
Henning Gruendl
5e8b5ec1f0 QmlDesigner: Integrate Expression Builder
Task-number: QDS-10587
Change-Id: Ifc13a8364fccb74cb60d683f0e6c322d80baab50
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-08 14:15:40 +00:00
Mahmoud Badri
af2738ec33 QmlDesigner: Add effect maker uniform's tooltip
Change-Id: I4787e1bcadb24d8ff34d26964bdc4f2e97704124
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-09-08 11:04:15 +00:00
Mahmoud Badri
7fbcf4a38e QmlDesigner: Add empty placeholder to effect maker's view
Fixes: QDS-10592
Change-Id: Icc6193b358b83fce2a229321e30880e35e074055
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-08 08:26:03 +00:00
Mahmoud Badri
1e00fdf9f9 QmlDesigner: Hide effect maker prop. slider's handle label
Change-Id: Ica266d0a9009ee4b5ba3e1cb1e9292f3b1091df7
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-07 16:39:45 +00:00
Mahmoud Badri
c5c1612c6b QmlDesigner: Implement disabling effect maker composition nodes
Disabling happens using a new button added to the section.
Also a small tweak to disable drag button when there is only one section
in a category.

Fixes: QDS-10575
Change-Id: I33884a5b333c54b2bae650943940d4858f489f7a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-07 14:53:06 +00:00
Aleksei German
d97bf7cc3b QmlDesigner: Add percentages to GradientModel
Task-number: QDS-9904
Change-Id: I98c9e67e46f282053755d143af19eb83f62a5c72
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-09-07 12:36:24 +00:00
Mahmoud Badri
6ad5631638 QmlDesigner: Update the icon font
Updated icons: snapping_conf_medium and visible_small
Added icon: invisible_small

Change-Id: I13771ede164454b89ce6357598db05e451f36afb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-09-07 09:54:50 +00:00
Mahmoud Badri
00aad5e89b QmlDesigner: Effect maker UI tweaks
- Corrected property name font size
- Disabled zoom controls when not needed
- Updated Zoom Fit icon
- Show vec2, 3, and 4 properties in 1 line

Change-Id: I6d5474163b708790b61b6d3462068b138431bd49
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-09-07 09:36:40 +00:00
Eike Ziller
2792166574 Merge remote-tracking branch 'origin/11.0'
Change-Id: Ifab8b72af33de4decf20d2a879bea4dfba1e9fbe
2023-09-07 11:15:32 +02:00
Knud Dollereder
759b560bab Cleanup ConnectionEditor models
Simplified interface for the BindingModel and DynamicPropertiesModel.

Change-Id: I772f31be704afe2a43c6368aefab1b026b85ec8b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-06 17:14:38 +00:00