Commit Graph

88653 Commits

Author SHA1 Message Date
Miikka Heikkinen
7a9a30d68c QmlDesigner: Add reflection probe icon gizmo
Fixes: QDS-11964
Change-Id: I35fce676c282988e7faa1376da90e4cd53f353ae
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-29 13:33:13 +00:00
Eike Ziller
52979e8037 Examples: Re-add the clear button for the search bar
when something is typed there. Got lost during redesign.

Change-Id: I6a765aa542243d2e20e00f6e965dbfbd26a12803
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-29 12:15:50 +00:00
Mahmoud Badri
c9c3303ad8 QmlDesigner: Refactor bundle importer
so that it can be shared by more than 1 bundle. Also some relevant
tweaks.

Change-Id: I421648c26ac4a0d51612f21a5475f0938dfff331
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-29 12:10:40 +00:00
Shrief Gabr
6bd4daa53f QmlDesigner: Prevent data change on adding row/column
Fixes: QDS-12498
Change-Id: I56ec2b0c81b3a77a375d46fa7fa8bc203d446c28
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-29 11:54:55 +00:00
Ali Kianian
1c34bbbc35 QmlDesigner: Add Boolean delegate for the model editor
* Also the edit property of the StudioControls.CheckBox is removed,
because it might override the edit property of the item.

Fixes: QDS-12059
Change-Id: I2fe66061e2018cdbea44a51ffca2fb0e696d5bbc
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-29 10:00:26 +00:00
Christian Stenger
ca0c3bc55c AutoTest: Extract helper function for re-use
Change-Id: I38993e28090ff68803bfc417d1590e1b2eb97bbe
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-29 09:56:47 +00:00
Teea Poldsam
fce30cb9d9 Doc: Update Simulating Conditions
Fixes: QDS-11505
Change-Id: I91e793529d0d447ae82e02aedc6c32565f243df0
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-04-29 09:35:27 +00:00
Teea Poldsam
f666788df4 Doc: Update Simulating Events
Fixes: QDS-11504
Change-Id: Ie9cac661f947efa7fac452a0f16493a1dc81f024
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-04-29 09:35:07 +00:00
Mahmoud Badri
1b48ab6a1c QmlDesigner: Update effect composer's help link
Fixes: QDS-12601
Change-Id: Ib1f6008cf4ac3e50dc5c0b12233e65622eb142eb
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-29 09:27:10 +00:00
Ali Kianian
d683e6d3c0 QmlDesigner: Enable sorting a model by id
Task-number: QDS-11808
Change-Id: I088424b97b4e50a882aebcda82c784f95bd9948e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
2024-04-29 08:09:33 +00:00
Eike Ziller
7832f47408 Merge remote-tracking branch 'origin/13.0'
Change-Id: Icbfedcf475dc1da03731ad076c503927a9363e8d
2024-04-29 09:07:57 +02:00
Knud Dollereder
f08a31fd66 QmlProjectManager: Ignore build folder when parsing the project
Fixes: QDS-12519
Change-Id: Idff419d22eb7c13fdce27fcbed7f04426f85dc94
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-29 07:00:59 +00:00
Eike Ziller
6f56310e31 EditorManager: Make sure the current view is visible
If an editor area is hidden, for example by unchecking the "Editor" view
in Debug mode, this might hide the current view. This is ugly, because
opening an editor in that state either opens the editor in an invisible
view, or in case of Debug mode with hidden "Editor" view it switches to
Edit mode. Which is detrimental if the user has a separate editor window
open that could be used instead.

When an editor area is hidden, try to set a current view that is visible
(which might be the same as before).

Fixes: QTCREATORBUG-30408
Change-Id: I0eb65fddbc857b6efb12972b861b9f44204bd715
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-29 06:10:47 +00:00
Alessandro Portale
8fcf3a26c1 Themes: Prevent Qt from changing the app palette behind our back
And remove the "GTK_THEME" hack

Even though Qt Creator now looked fine when started with a
light/mixed theme on a dark system theme, we still had to force
a light default palette on the application at startup.

The issue is that when the user switches the system theme
to dark during Qt Creator's runtime, Qt notices that and changes
the default application palette to dark.

Prevent that by setting a detached default palette on the
application on startup, even if we do not intend to apply custom
colors to it.

Task-number: QTCREATORBUG-28497
Change-Id: I7a43f108c2299967a14f382e52b62c31491e673d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-26 18:09:49 +00:00
Jarek Kobus
7bd8d963ab Android: Reuse withCancel()
Simplify the recipe by reusing withCancel() helper.

Change-Id: I79c583fa3f0bedc7a3c0c3cfa99f5c506f07336b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-26 17:02:00 +00:00
Thomas Hartmann
1f24a2fa4a QmlDesigner: Allow using selected node in QmlModelNodeProxy::moveNode()
Change-Id: I4c08a3fbfe750a8a9673828acfe542f9b8365e66
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-26 15:43:58 +00:00
Alessandro Portale
947ce1659b QmlDesigner: Fix configuration for disabled QmlDesignerUtils
Change-Id: I9ee2459178fbe4ebc55fa5ef36ecf94f2d9f40cf
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-04-26 15:25:38 +00:00
Jarek Kobus
ef0cbf523a TaskTree: Introduce withCancel() helper
The withCancel() method takes a function returning the sender
and its signal pair. When the signal is emitted, the queued
call to the running task tree is scheduled, and when dispatched
the *this group is canceled and the returned item finishes with an
error.

Change-Id: I898a7221d91a78225c73abc6885a18a2e7c2ae45
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-26 15:01:04 +00:00
Mahmoud Badri
b0b1542814 QmlDesigner: Use QJsonValueConstRef instead of auto
This used to not build on linux. Doesnt seem the case anymore.

Change-Id: Ia58d388bfe4f5cc794b29f8e25a9a8d6b3f229c3
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-26 13:23:32 +00:00
Miikka Heikkinen
7ba7624bb6 QmlDesigner: Restore auxiliary properties after rewriter model attach
Successfully restoring auxiliary properties requires scene model to be
complete, so we must wait until model is attached.

Fixes: QDS-12615
Change-Id: I906e9b50df14fcdbc0cad8370c5466db5c1aab02
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-26 13:04:35 +00:00
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
Eike Ziller
09ebc4151f EditorManager: Keep track of current view
in sync with the current editor.

Before, we either tracked the current editor _or_ the current view if
there was no current editor. This made usage more complicated. Tracking
the current view in sync with a current editor makes setting these two
more complicated, but on the usage side are simpler. It also allows us
to just set the current view (which also sets the current editor to the
view's current editor), and to specifically signal changes of the current
view, and to keep a history of previous current views later.

Task-number: QTCREATORBUG-30408
Task-number: QTCREATORBUG-23654
Change-Id: I32967cea10972ca8b6939a84a0fbb396ca5c3721
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-26 12:15:31 +00:00
Eike Ziller
ee1db27251 FancyTabWidget: Remove an old, unnecessary hack
When clicking on a mode button, the emission of `currentChanged` was
delayed by an event. That was supposedly to "improve the responsiveness"
of the mode bar, but I don't see any difference, and _if_ changing the
mode widget was a performance issue, this wouldn't be the right place to
fix or work around it.

The hack creates issues, because it separates the `currentAboutToChange`
and `currentChanged` signals by an event processing.

Amends bd2ba2307b

Change-Id: I53a7aa74fdcfb733a28574837ca9e95fc2e97f0b
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-26 12:15:07 +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
The Qt Project
925b224c6d Merge "Merge remote-tracking branch 'origin/13.0'" 2024-04-26 09:33:23 +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
Eike Ziller
dea0da7a8b Merge remote-tracking branch 'origin/13.0'
Conflicts:
	src/plugins/languageclient/languageclientutils.cpp

Change-Id: I8d1945f79d93cecee9b22f409bc5f2eefaf6a4cd
2024-04-26 10:59:07 +02:00
Christian Kandeler
77a46dc826 CppEditor: Adapt includes also when the including file was moved
Task-number: QTCREATORBUG-26545
Change-Id: Ica2d8c8504387f4ab15f0a974dfc1566d1fcaa91
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-26 08:14:21 +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
Alexander Drozdov
5c765e7c12 ProjectExplorer: Fix environmentId overwriting with zero
When any settings on the Build & Run -> General page changed, then
environmentId will be overwritted with Zero on settings save.

It cause probles with any project opening: on each QtC run will
be generated new environmentId that mismatch with environmentId in
the .user files. As result, any local settings drops and project
configuration starts from the scratch.

Change-Id: I05e36cdad99b7d5373c8f9ff418d68998b3fd893
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-25 12:17:40 +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