Commit Graph

87591 Commits

Author SHA1 Message Date
Henning Gruendl
fe461b85e6 QmlDesigner: Add DesignEffects plugin to template
Add DesignEffects plugin to qmlcomponents template for CMake based
project usage.

Change-Id: Ie2a0ac4cf47719c4a2e49532acaa9a092a6dc372
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-03 08:05:22 +00:00
Robert Löhning
b000978278 SquishTests: Remove dead code
The Qt Quick Application template doesn't allow changing
the build system. skipBuildsystemChooser is True above.

Change-Id: I413fa6c3b4d97e1f1212dbab96d2a39458ce3751
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-02 20:22:35 +00:00
Björn Schäpers
cc9ffdb685 ClangFormat: Fix compiliation with LLVM19
Change-Id: I4b166da2e477ffd101a5c4b9aa07c710f7698da9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-02 19:14:36 +00:00
Alessandro Portale
a0b19d9fba Welcome: Restore legibility
After the release of Qt Creator 13.0.0, a couple of bug reports and
comments regarding reduced legibility appeared.

They boil down to:

 1) Text appears blurry
 2) Text is too small
 3) Text contrast is too low

This change fixes the blurryness by setting less custom font weights for
non-HighDpi systems in StyleHelper::uiFont().

Bigger texts are used for the "Session" and "Recent Project" delegates.

The text contrast is being increased by making Token_Text_Accent darker
for light themes and brighter for dark themes.
Token_Background_Muted, which is used as background color is made a bit
brighter for light themes.

Fixes: QTCREATORBUG-30579
Fixes: QTCREATORBUG-30637
Fixes: QTCREATORBUG-30650
Change-Id: I8eeb9db6854a19b0de0bcee14b10e2ef66234e06
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2024-05-02 15:52:11 +00:00
Marco Bubke
3f0ac381b4 QmlDesigner: Guard for missing qml backend
Change-Id: I3ced324b4bde1feadbd71434cbb6ce54a531dbbc
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-05-02 15:47:10 +00:00
hjk
d3fb3a163c Debugger: Ignore stops in libart.so and other Android runtime specific places
From https://issuetracker.google.com/issues/240007217#comment17
"Some a background on the technical aspect of SEGVs:

Android Runtime (ART) uses SEGV for various internal purposes (it
triggers a SEGV and handles it without crashing the app, the app doesn't
know it happened). When the native debugger is connected, the debugger
must intercept all SEGV signals.

When running the debugger on Android API level 27 and newer, we make the
debugger skip these SEGV signals (i.e., forward them to be handled by
ART), because we know how to handle real SEGV signals inside ART.  For
older Android versions (26 or older), we did not have this support, so
the debugger stops at every SEGV (i.e., it cannot know if the signal is
a real crash or an ART-internal thing)."

Arguably, this should be caught by the LLDB Android platform bits, but...

Task-number: QTCREATORBUG-30759
Task-number: QTCREATORBUG-29928
Task-number: QTCREATORBUG-30080

Change-Id: I8cabe4a0675c596a9617520aff0d62ad11321f0e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-02 15:36:26 +00:00
Alessandro Portale
67ab041903 Android: Disable "Make [NDK] default" button while NDKs list is empty
When pressing the "Make [NDK] Default" button while the list is empty
leads to a crash. The button should actually not be enabled if the list
is empty.

This change disables the button while the NDKs list is empty.

Fixes: QTCREATORBUG-30716
Change-Id: I5f10fd180f62d20210f1b0c0261e4d821d0582dd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-02 15:24:08 +00:00
Thomas Hartmann
34e4710f7a QmlProject: Fix tests
Change-Id: I988b1e623ee672109172ac8f746406a62b6a895b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2024-05-02 14:32:37 +00:00
Shrief Gabr
a327f38d5e QmlDesigner: Ignore Image cell warning for Url column
Task-number: QDS-12157
Change-Id: Ia2a46ef878d522f6c5a08fb817c2ef1332cb113b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-02 13:57:37 +00:00
Cristian Adam
2c4b7fa02a Core: Use Windows API to create path to explorer.exe
Searching after "explorer.exe" in PATH can fail, as seen in a report on
#qtcreator channel on Discord.

Explorer.exe is always part of %systemroot%, which can be
programatically obtained via SHGetFolderPath function.

Fixes: QTCREATORBUG-30765
Change-Id: Id2c4f3bd9c51234cb9e16d936202dfbcb1975606
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-02 13:40:56 +00:00
Miikka Heikkinen
4cb9857293 QmlDesigner: Handle material type without using item library entries
Recent project structure changes invalidated material bundle metainfo
files, as we can't support both new and old structure with them.
They were only used for populating possible types in material editor,
so adjusted this functionality to only allow changing the type between
basic types. If the material is a custom component, then the only the
current type is displayed and the type combo box is disabled.

Fixes: QDS-12628
Change-Id: I07b1a482977f0ecc94c35f3d485302c85c6153f9
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-02 12:21:40 +00:00
Mahmoud Badri
c8215e986d QmlDesigner: Reload bundles when id change
i.e. when opening a project that has a different import folder style
from the currently open project.

Fixes: QDS-12639
Change-Id: I8d341c38ec771dc5e28c4436cd9ad191e27c38a8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-02 12:13:10 +00:00
Eike Ziller
ff6e8656d7 Add change log for 13.0.1
Change-Id: I7f6dd377ebcae45bf3acd526daa5f3981df1a981
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-02 11:37:47 +00:00
Thomas Hartmann
ac5d88716b QmlProject: Add more image formats
Task-number: QDS-12660
Change-Id: Idabe761b8ef7d1a02fb0a4a05632a8e11e036cce
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-02 11:11:06 +00:00
Pranta Dastider
0100eb2c1a QmlDesigner: Update tooltips for QtQuick Studio Design Effects
This patch update tooltips for QtQuick Studio Design Effects.

Fixes: QDS-12568
Change-Id: I7f500a765ca58a27b7efe3923f637856684215f2
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-02 10:56:17 +00:00
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
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
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
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
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
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
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
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