Commit Graph

88532 Commits

Author SHA1 Message Date
Marco Bubke
11f7ece0d8 QmlDesigner: Type annotaion reader set defaults
So far the defaults were false but some of the are true.

Task-number: QDS-12663
Change-Id: I710913ed371d6e094cf68c154bb9353c21ee0c16
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-02 10:34:21 +00:00
Mahmoud Badri
7525ef79de QmlDesigner: Use only 1 content library importer for all bundles
Change-Id: I59e8efda2e5704caf72297b8dee5178eb8ecfc71
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-02 10:17:53 +00:00
Cristian Adam
480f5366d2 CMakePM: Do not force Kit's Qt version as projects Qt version
Amends c6d1c962ee

Fixes: QTCREATORBUG-30712
Change-Id: I1d78d108a7566f4f59ff0f479eb4b5eddb8a986f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-02 10:02:09 +00:00
Marco Bubke
522805629a QmlDesigner: Propagate annotation type traits recursivly
Task-number: QDS-12661
Change-Id: I593eeaaa3800c450a0c2b9f08ae1993ddc29cd8f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-02 09:39:25 +00:00
David Schulz
5920d9cb9e Python: remove rope_completion language server setting
Rope is not part of the default installation of the python-lsp-server
pypi package and enabling it by default results in an error at startup.

Fixes: QTCREATORBUG-30757
Change-Id: I975ac98d9f4c5b25f5be085461e5b626d3a93fbc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-02 06:25:38 +00:00
Knud Dollereder
d877e1bb1f QmlProjectManager: Fix splitting a path by separator
Fixes: QDS-12633
Change-Id: Ide81944e6f9bf08723576aa86d3a1f977c4a7e3d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-30 14:44:57 +00:00
Ali Kianian
5a8b389ddd QmlDesigner: Create and assign a model to the dropped GridView
The delegate for GridView is different from ListView.
Also cellWidth and cellHeight should be specified for the GridView
Also the delegate for the listView is modified to clip and elide the
text.

Task-number: QDS-12306
Fixes: QDS-12386
Change-Id: I7e75b9e7f234c5e021637e703088539886a8f25f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-30 14:43:21 +00:00
Thomas Hartmann
c7790ab981 QmlDesigner: Suppress QDS compnent warnings in template
Change-Id: I409866d43282d425795e8afe0bcb824d860a2a84
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-04-30 14:21:24 +00:00
Marco Bubke
15f05d0bbc QmlDesigner: Drag and drop is now working with project storage
Type annotaions are now saving the type name and dropInFormEditor is by
default true.

Task-number: QDS-12450
Change-Id: I757f59b296de321c4d0190a36ec581379f646735
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-30 13:46:24 +00:00
Miikka Heikkinen
cae233f5db EffectComposer: Shorten the generated effect path
Changed "ComposedEffects" to "Effects".

Task-number: QDS-12629
Change-Id: I45e2fd8443af72531d3c3e80f32227eacb948d26
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-30 13:22:02 +00:00
Alessandro Portale
fcf3cf4770 Android: Allow users to use other Java versions than 17
Fixes: QTCREATORBUG-30684
Change-Id: I59940f43530fe5f36fdf4fc1655365ff321619f9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-04-30 12:54:28 +00:00
Eike Ziller
0f4efacb91 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	doc/qtcreator/src/overview/creator-only/creator-reference.qdoc
	doc/qtcreator/src/qtcreator-toc.qdoc

Change-Id: Ibea5488fda972321c448c64fad7f657e84d62cdb
2024-04-30 14:23:09 +02:00
Miikka Heikkinen
6cc8c13c7c QmlDesigner: Tweak generated components folders
Old type names were too long, shortened various names:
"GeneratedComponents" -> "Generated"
"ComponentBundles" -> "Bundles"
"MaterialBundle" -> "Materials"
"EffectBundle" -> "Effects"
"UserMaterialBundle" -> "UserMaterials"

Fixes: QDS-12629
Change-Id: I3a49e57bbc8d401cadd8c5de6648c7229579d2b2
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-30 12:13:10 +00:00
Teea Poldsam
8ed54cb3a8 Doc: Update Applying States in Flows
Fixes: QDS-11506
Change-Id: Ic2e9993b96cf9ecc3f40fc9701f9044945610a99
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-04-30 11:54:24 +00:00
Eike Ziller
289b42aba4 Fix tab order in "file deleted" dialog on Windows/Linux again
This was fixed with e9320a8122 and shortly
after broke again with 4d6827dde9

Amends 4d6827dde9

Fixes: QTCREATORBUG-28676
Change-Id: I4a69b1ea1430613d1aa22620b8f10ebff73d66ab
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-30 11:30:27 +00:00
Leena Miettinen
2275b43cc4 Doc: Update info on Qt for MCUs
Task-number: QTCREATORBUG-29361
Change-Id: I926e09748265ca123fd1a52838da1d05de7f7766
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
2024-04-30 11:27:02 +00:00
Eike Ziller
ae4c893301 Fix the directory opened when exporting coding styles
On macOS. Make sure to use an absolute path for the file dialog.

Fixes: QTCREATORBUG-28832
Change-Id: I75f4166ee2bc3238a01089231bde4cf990269024
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-30 11:26:35 +00:00
David Schulz
7a47cf0a11 Utils: fix crash on hiding a tooltip
Closing the tip label indirectly calls ToolTip::hideTipImmediately via
its eventFilter that closes the tool tip on any FocusIn/Out event on the
application. Since m_tip is reset in hideTipImmediately the outer call
crashes when this nullptr gets dereferenced. Avoid this crash by
resetting m_tip before closing the tip label.

Fixes: QTCREATORBUG-30738
Change-Id: Id3e690141be196db8ac6c4dab3d97627c0657140
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-30 10:56:11 +00:00
David Schulz
15e56078b6 Debugger: Improve keyboard navigation in locals view
Expanding items in the locals view results in replacing the original
tree item with a newly created one. This ultimately resets the selection
and the current item of the view, which in turn makes it cumbersome to
navigate by keyboard.

Save a list of selected inames and the iname of the current index when
requesting the update and try to reselect them after the update
finished.

Fixes: QTCREATORBUG-27569
Change-Id: I9d8f51631e4ee490e19307877cbef44798506016
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-30 10:56:02 +00:00
Christian Stenger
1fc135822f AutoTest: Allow limiting scan inside project settings
Enables to limit the scanning for tests and respectively any
further action to a list of user defined patterns.
If limitation is enabled and any of the filter patterns does
match the file will be processed.
If no filter pattern matches the file will be ignored.

Change-Id: I6a6de8f4137485e83b750997fb3c948dc6e79c68
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-30 08:04:36 +00:00
Marcus Tillmanns
8b682ac7f5 Terminal: Fix TERM env variable
Some (Fedora) OS/Distros set a default value for TERM such as "dumb", which then breaks
command line tools such as "clear" which try to figure out what terminal they are
running in. Therefore we have to force-set our own TERM value.

Fixes: QTCREATORBUG-30737
Change-Id: I50ac86f17c92dc7bc477cc59ed43ec22025593fb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-30 07:11:01 +00:00
Marcus Tillmanns
0543085a64 Lua: Add luatemplates
Change-Id: Icc9e7505156eb8749da64e1f4022f27a57018a67
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-30 04:48:23 +00:00
Christian Stenger
caf31c4fe9 CPlusPlus: Support completion of list iterators
Fixes: QTCREATORBUG-30608
Change-Id: I169efe675e13540ecc5fbbd6b15dd13d8522db7d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-30 04:45:01 +00:00
Marcus Tillmanns
87193a0311 Lua: Fix leaking Actions
Change-Id: Ia2fd5eecfd76491c34650817e09be11252be1dec
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-30 04:28:50 +00:00
Orgad Shaneh
acd0894d73 ClangTools: Fix compiler warning
warning C4101: 'e': unreferenced local variable

Change-Id: Ic09058a9caa845b5dee7e356e7a53899ba87e7f0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-29 18:45:58 +00:00
Cristian Adam
84f0f6ba8b CMakePM: Fix crash with specific CMakePresets.json
The code was not taking into consideration an empty QStringList.

Fixes: QTCREATORBUG-30755
Change-Id: Ifb9f5dc3ffefd94d44b16b161bc04d381f3f6786
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-29 14:39:09 +00:00
Mahmoud Badri
25f8081032 QmlDesigner: Refactor update bundle imported state
Remove the useless round trip from model to view and back

Change-Id: I38a5826e165014f64d7855139b58e9691b0f6310
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-29 14:38:59 +00:00
Shrief Gabr
465a2e7ac4 QmlDesigner: Fix fly mode speed on macOS
Task-number: QDS-12337
Change-Id: I7590cd79a8d3b0b27cad7edb5e11be091223b6fb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-29 14:26:15 +00:00
Mahmoud Badri
af6dcb6659 QmlDesigner: Remove "Internal" namespace from the bundle importer
Change-Id: If082d7fe724b6db2aaad8c1a6bf56f68bbbb3baf
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-29 14:16:22 +00:00
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