Commit Graph

87591 Commits

Author SHA1 Message Date
Miikka Heikkinen
1cf6e7844a QmlDesigner: Change wheel to adjust camera speed in fly mode in 3D view
Mouse wheel no longer zooms 3D view when done in fly mode. Instead,
it adjusts the camera speed value.

Fixes: QDS-12291
Change-Id: I0bb5960d67cb25d545d3ac2ce2567c75f057ea72
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-26 13:01:54 +00:00
Miikka Heikkinen
97b646e30a QmlDesigner: Fix typo in approachObject
Fixes: QDS-12616
Change-Id: Ib73c10dfc2806df2f98083019d67a78a6bb44a0f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-26 12:02:53 +00:00
Thomas Hartmann
d69e719e2c QmlDesigner: Add FrameAnimation
Task-number: QDS-12130
Change-Id: I0abf9b7c1dea37624362a2480c09c873a87b3e69
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-04-26 11:15:59 +00:00
Christian Kandeler
7309a46b1f Update qbs submodule to HEAD of 2.3 branch
Change-Id: I032c554de5920d9a44d8f6ca544ba3cb61fa7bae
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-26 11:14:10 +00:00
Henning Gruendl
7df037cba3 QmlDesigner: Fix alignment in EffectsSection
Change-Id: I55fb53233c1993e1897c010d37fad4bf0c12d326
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-26 10:35:44 +00:00
Mahmoud Badri
ccf0a68c42 QmlDesigner: Fix bundle material instance not removed
after removing a bundle material from project

Fixes: QDS-12527
Change-Id: I72b4d99d15a6fbd454d45bdf0ba1a1b469e1a5bb
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-26 10:20:17 +00:00
Mahmoud Badri
17a28ea850 QmlDesigner: Allow removing a content library material
Fixes: QDS-12541
Change-Id: I8efdd5c5f6185961bd8440e06d0adb60ad9d79f2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-26 09:41:17 +00:00
Alessandro Portale
4443ee96aa QtSupport: Fix Qt Abi detection after Android initial SDK setup
If QtVersion::qtAbis() is called while the Android SDK is not yet set
up, AndroidQtVersion::detectQtAbis() returns an empty Abi list. After
the Android SDK setup, the Abi detection is repeated.

The recently introduced use of std::optional for Abis prevented that
"second chance" for Abis detection. After the Android SDK setup, Qt
Creator now had to first be restarted in order to have functioning
Android Qt Kits.

This change adds an Android specific hack in QtVersion::qtAbis() which
gives AndroidQtVersion a "second chance" to detect Qt Abis.

Amends: ee4f6ca1ae

Fixes: QTCREATORBUG-30568
Change-Id: I5d8a4fa7081d80015375c76305bb559d890b5f79
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-26 09:26:12 +00:00
Thomas Hartmann
9b4aa051d4 QmlDesigner: Add double as dynamic property
Task-number: QDS-10439
Change-Id: I572d2fe943b187bee53a34cc4f832e6220f90d9e
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-04-26 09:25:18 +00:00
Christian Stenger
6b7c6bde5a QmlJSEditor: Avoid crash on temporary documents
Fixes: QTCREATORBUG-30739
Change-Id: I62872fc23529674d5fca6dcb6255872eab12a9da
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-26 05:12:57 +00:00
Cristian Adam
3f46037b37 Debugger: Execute additional attach commands for LLDB
This allows setting _Preferences > Debugger > GDB > Additional Attach
Commands_ with the content:

  process handle SIGSEGV --pass true --stop false --notify true

which results in the debugger not stopping in assembler for Java runtime
exceptions.

Task-number: QTCREATORBUG-29928
Change-Id: I8edf0d79dcccfe7ddb27502edb122fb5fb2c646c
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-04-25 16:44:43 +00:00
Marco Bubke
ffe30a313e QmlDesigner: Fix basic label specifics
Change-Id: Ifb1fbdde28ab870b1eb9d2fbaa85d75fe8ca2e1a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 14:43:19 +00:00
Marco Bubke
05e5aa7f0c QmlDesigner: Add kind to module id
In some cases we need to find out what kind a module is.

Task-number: QTCREATORBUG-30735
Change-Id: Ibd5a70ee6fe0f619009fd645f444d3fbb2fd6e01
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-25 14:43:12 +00:00
Thomas Hartmann
d6065db983 QmlDesigner: Fix JavaScript wizard
The old wizard syntax stopped working. Using QML file wizard as
template.

Task-number: QDS-12520
Change-Id: Ib188f898c28be8b7ad9284f431ef0526fbc7bf7e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-25 14:25:20 +00:00
Ali Kianian
fa86d63188 QmlDesigner: Refresh the puppet when DataStore is usable
Change-Id: I42bb69ffab3da7dd49284a1af513ef860f76fbcc
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-25 12:57:08 +00:00
Marco Bubke
3edd18a9da QmlDesigner: Deprecate more NodeMetaInfo
There is now allExportedTypeNames which provides the same information.
Maybe we have to add more information to the modules like a flag for the
module type.

Change-Id: I1a8c0b33fc70a157d16a153102331447f370a032
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:50 +00:00
Marco Bubke
31aec73423 QmlDesiger: Add tracing to meta info
Change-Id: I0ef7b061c729e6ad161db77a03f375f4452ad273
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:43 +00:00
Marco Bubke
1cc99b996a QmlDesigner: remove useless code
That was submitted by accident

Change-Id: Ie5606604295ec2e942548690a77c3855f7614a9f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:36 +00:00
Marco Bubke
4268c50f30 QmlDesigner: Fix property editor lookup
Task-number: QDS-11951
Change-Id: I22563aca2aacf515d2a2e66d87e39c418ea3b7d4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-25 12:46:29 +00:00
Marco Bubke
7f8d7f511d QmlDesigner: Skip non property
Task-number: QDS-11951
Change-Id: Ic84f46b74f9c65501bb4f0f9883de1bceb176818
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:23 +00:00
Marco Bubke
280239ca36 QmlDesigner: Fix controls properties
Fixes: QDS-12450
Change-Id: I1b49a2ba0d199ca98fcd92367db9b966ab7ec1d5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:18 +00:00
Miikka Heikkinen
dc35a7fd3a QmlDesigner: Add Shift and Alt modifiers to fly mode
While in fly mode, Shift will speed up the WASD/QE movement by 100% and
Alt will slow it down 50%.

Also changed how shortcuts are disabled in fly mode. ShortcutOverride
events are now used to suppress conflicting shortcuts, which has the
advantage over old method as it will also suppress application global
shortcuts (such as Alt key moving focus to application menu).

Task-number: QDS-12291
Change-Id: I5c97d10b6f8955f3b3214e8e254a80cae7357ce5
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-25 12:30:54 +00:00
Teea Poldsam
b4a8d75d17 Doc: Update Applying Effects to Transitions
Fixes: QDS-11494
Change-Id: Ib4a8e09f1ec158aa96f90e78e7a232520f78061a
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-04-25 11:57:41 +00:00
Mahmoud Badri
23e8be1ef4 QmlDesigner: Fix deleting collections using the keyboard delete key
Fixes: QDS-11735
Change-Id: I188856918da6d478e16383017d808205ee20ee8c
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-25 09:50:10 +00:00
Shrief Gabr
e79cab5d99 QmlDesigner: Notify save indicator on row/column deletion
Task-number: QDS-12499
Change-Id: I8d61bc3abdd9b8bda299a93c88579f2d0e392221
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-25 09:47:50 +00:00
Mahmoud Badri
cc187e1ce6 QmlDesigner: remove a texture from content library user tab
Fixes: QDS-12542
Change-Id: Iee3ea0bd8a3ce6cb41c27a645801eef608cd8da8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-25 09:19:34 +00:00
Miikka Heikkinen
99e04056f1 QmlDesigner: Add "Edit Material" context menu option for material nodes
Fixes: QDS-12372
Change-Id: Ie412216514973aa6d108f3595489f92e13497576
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-25 08:23:35 +00:00
David Schulz
041727fb29 LanguageClient: fix compile with latest Qt dev
Change-Id: Ifc6b5cfacb1e4e559646304b4ab5889eeb85bf3f
Reviewed-by: hjk <hjk@qt.io>
2024-04-25 08:03:11 +00:00
Tim Jenssen
fb4e1c5a8e QmlDesigner: add missing include "contentlibraryeffect.h"
Change-Id: If0db36ff3a836a31500c434fa465962b81e46016
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-24 15:31:34 +00:00
Tim Jenssen
4e5498051b QmlDesigner: increase necessary Qt version to 6.5.4
Change-Id: Ib276421fb5e8c7ca55b382fc4ade0281c9f73e7c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-24 15:31:11 +00:00
Tim Jenssen
10f855f3f0 QmlDesigner: fix crash on exit
- use Utils::UniqueObjectPtr because it is a widget and
  can get a parent which deletes it
- delete the DesignerPropertyMap as last, so there is no
  connection to QmlEngine objects
- renamed view -> widget, where it was easy to rename it

Task-number: QDS-12480
Change-Id: I260909f2965f2943a9693b00876efcbb385d4259
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-24 15:24:02 +00:00
David Schulz
d717e7be04 TextEditor: fix backspace on block start
Amends ec88d279a8

Change-Id: I7d83b5ffa617f8d45acc6998ce674b1afcf3a31b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-24 14:20:12 +00:00
Shrief Gabr
a1829f0317 QmlDesigner: Remove "Unknown" from available datatypes
Task-number: QDS-12555
Change-Id: I9c3261ac23188bcd7db875bec49091d044231a9f
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-24 12:29:26 +00:00
Henning Gruendl
d051348069 QmlDesigner: Add show behind to EffectsSection
* Add show behind property to DropShadow EffectsSection
* Change visible property name in EffectsSection

Task-number: QDS-12587
Change-Id: I338ea4370eeb725d54a06cc021f061c73e8aa837
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-24 10:28:14 +00:00
Eike Ziller
7f7d4889d2 Add an environment variable for disabling atomic save
There are situations where e.g. anti virus software leads to saving files
failing. Provide a way to disable atomic save for debugging purposes.

Task-number: QTCREATORBUG-30728
Change-Id: I1f3df009f89f6c27b2e0c9f91869b2a75f5575d8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-04-24 09:39:21 +00:00
Teea Poldsam
3b1acea866 Doc: Update Adding Action Areas and Transitions
Fixes: QDS-11407
Change-Id: I38cb4ff1d92b91ec41df01dd374c98b681eacfe0
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-04-24 08:37:25 +00:00
Thomas Hartmann
ff4f5133da QmlDesigner: Set proper engine ownership
Change-Id: I603cb34209a231226f1ef7ccb269ab8813f2758d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-23 15:52:01 +00:00
Thomas Hartmann
735d6af931 QmlDesigner: Set proper ownership on returned C++ object
Change-Id: Id9971cdec65bb84b310196ef84d0bccca9a12e57
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-23 15:51:30 +00:00
Miikka Heikkinen
c351e8c9c7 QmlDesigner: Fix picking 3D models from 2D view
Adding new nodes to the scene for some reason doesn't include them
to the full window render done for picking purposes. Changed the render
to be done via grabItem() on the target View3D instead, which seems to
work more reliably.

Fixes: QDS-12577
Change-Id: Ia5f01b9521fd898f8cf073f96d32fc31bf936a37
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-23 14:04:25 +00:00
Mahmoud Badri
63107ff2f7 QmlDesigner: Add content library user textures context menu
Fixes: QDS-12574
Change-Id: I3213d0601167e6963db7fbb1091ade4cb09bdc55
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-23 13:53:55 +00:00
Miikka Heikkinen
651d7f5d85 QmlDesigner: Select correct underlying View3D for "Edit in 3D View"
If the selected node is not View3D, check if the topmost item in
scenePosition is View3D and target that instead for "Edit in 3D View"
action.

Fixes: QDS-12347
Change-Id: I06b59f55246e828cced8dd3c15ee9b297e5edeb7
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-23 13:16:53 +00:00
Tim Jenssen
7dfa746920 Merge remote-tracking branch 'origin/13.0' into HEAD
Change-Id: I1f87297930db420606aab8d7016c290483f262c0
2024-04-23 14:03:46 +02:00
Robert Löhning
987cd409f3 SquishTests: Make sure that button in Designer is renamed properly
This misused typeLines() to close the dialog by pressing "Return".
Although the entire name of the button should be selected at first,
I witnessed the new name being appended to the old one.

The new code uses replaceEditorContent() to explicit select the old
name and replace it with the new name. After that, it explicitly
presses "Return" to close the dialog.

Change-Id: I5ec946f57000396b70428e08ab795a1ee3eba91a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 12:03:13 +00:00
Marco Bubke
2c38f9ae74 Fix max component version
Change-Id: Ib7328c00a461f22e5c924a441844260f15fb0dd3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-23 11:56:05 +00:00
Marco Bubke
b07d2f0c1d Include Qt and GoogleTest as system include
That is silencing warnings in Qt and GoogleTest headers .

Change-Id: Ia6fda019c271788fbb341a8de0cf6d7b757f38bf
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-23 11:38:09 +00:00
Christian Stenger
facd32b2e0 SquishTests: Remove duplicate object
Change-Id: I7ceed8ef40684323b8404c3fe7c529fbd5b7be74
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-23 11:08:44 +00:00
Mahmoud Badri
a369d075ad QmlDesigner: Implement adding an image to the content library
Also some cleanups in same files.

Fixes: QDS-12506
Change-Id: I0c211206b6b7c29857a30f18d6077c2ddd76849c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-23 09:51:51 +00:00
Robert Löhning
ec33fc0476 SquishTests: Avoid using occurrence value for SideDiffEditorWidgets
Change-Id: I7c519347a25b0c541b019dd1cae65df4a74c8826
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-23 09:35:37 +00:00
Robert Löhning
457488a106 SquishTests: Avoid using occurrence value for IconButton
Change-Id: I0a4d9497801dbd39c2c735cac760c5dc6a0298fd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 07:04:42 +00:00
Robert Löhning
93d0085517 SquishTests: Avoid using occurrence values for OutputPaneToggleButtons
The occurrence count can't be understood without looking at
the running application and can even change at runtime.

Change-Id: I34677fd2fe2a0a8a7f2cdcd9f37ec938efe1a5ea
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 07:04:23 +00:00