Commit Graph

8783 Commits

Author SHA1 Message Date
hjk
4bf55f3239 Debugger: Fix some internal code model related dumper
Type.unqualified() is gone.

Change-Id: Iea3378e0ff4172c197ae8ad025a6ebcd58a2cbbe
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-29 06:17:41 +00:00
Tim Jenssen
4515fba526 Merge remote-tracking branch 'origin/qds/dev'
Conflicts: src/plugins/qmldesigner/CMakeLists.txt

Change-Id: I250c8e5284ddb0f335c440999b8920762419c89b
2024-05-28 19:06:18 +02:00
Ali Kianian
ed771ace4a QmlDesigner: Enable docking a header in PropertyEditorPane
A header component is defined in PropertyEditorPane.
This header can be docked to the top.
A header is defined for MaterialEditorPane

Task-number: QDS-12851
Change-Id: Ie5393f917803241da1f286bd05c226fd055b1174
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-28 12:17:03 +00:00
Ali Kianian
934a15b16e QmlDesigner: Make material editor toolbar fixed on the view
Task-number: QDS-12850
Change-Id: I230478e175e58180fb462943b3eb936f883fcf52
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-28 12:16:52 +00:00
hjk
3697aac20e Debugger: Speed up QObject recognition
Change-Id: Ib9847725c1e97ad774173ecb95094791ff5d1bbc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-24 13:52:51 +00:00
Eike Ziller
8b5f5744dc Rename Qt Designer -> Qt Widgets Designer
Fixes: QTCREATORBUG-30756
Change-Id: Icb4a2513e230b71b5bb5033ead6a09ad3a8963ab
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-23 11:37:08 +00:00
Eike Ziller
3a60ab1c91 Fix capitalization of group box titles
Consistently use book case

Change-Id: Ia0e382255fe2f311a1bd9a380f4bf8af2320c215
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 10:47:20 +00:00
Marco Bubke
f296f9d77c QmlDesigner: Parse components recursively
Change-Id: I8fa892cce8e34b5e58cbdde04c57e30b9fc74866
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-05-23 10:42:43 +00:00
Ali Kianian
b5db9f8fb3 QmlDesigner: Remove Model Editor
Task-number: QDS-12808
Change-Id: I9d1a716cda8d4a972b335270961ee7b489ed07c3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-22 11:50:12 +00:00
Ali Kianian
51a27f3a12 QmlDesigner: Close the color editor popup before adding
Fixes: QDS-12498
Change-Id: Id3c565ffb9fca7f186ebeb0cf8051194c7944d4d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-17 09:39:33 +00:00
Henning Gruendl
a7913d5430 QmlDesigner: Update EffectsSection tooltips
Change-Id: Ib0cf243f84d125ab488ff4f597bbc4dd1637c1d3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-16 15:14:15 +00:00
hjk
6aab6f61b5 Debugger: Provider Qt version externally to bridges
Extracting within the bridges is expensive.

Change-Id: Icf69db4b112230cc23e331abc0b3eb0de1323f46
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-16 10:03:08 +00:00
Mahmoud Badri
16d9535c8d QmlDesigner: Hide content lib user when a warning message is shown
Fixes: QDS-12679
Change-Id: I5cc673eb24f6479a3cb8e876e0f31a4d2d5cb658
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-16 08:44:29 +00:00
Mahmoud Badri
f462be8e80 QmlDesigner: Prevent adding component materials to the content lib
Also remove the experimental restriction on the content lib user section

Fixes: QDS-12637
Change-Id: Ice2ac3f32a934d7c65ea7f406a2b5f8c4b5fed0c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 14:02:28 +00:00
Eike Ziller
18e817ce3c Fix capitalization of refactoring actions
Consistently use book style for refactoring actions (which appear as
items in drop downs and menus).

Change-Id: I31cfd40dfc5d4d14a5949072168682a12cf566ac
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-14 13:52:12 +00:00
Mahmoud Badri
7ffd4805ca QmlDesigner: Handle content library user items empty state
- Make sure search is working
- Hide sections with no items
- Other tweaks

Fixes: QDS-12682
Fixes: QDS-12625
Change-Id: Ia304743323c0459dd314752dba0cf1dc5e4c4889
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 10:22:15 +00:00
Henning Gruendl
e86814c491 QmlDesigner: Fix Connection editor closing
Pick-to: qds/4.5
Task-number: QDS-12013
Change-Id: I8add3418bb43b87e45153c012353646833413664
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-13 14:10:33 +00:00
Henning Gruendl
c29f514543 QmlDesigner: Fix ColorEditor closing
Fix ColorEditorPopup closing when opening gradient dialog.

Pick-to: qds/4.5
Change-Id: I438bd41d2efff30b372c04bc17c85210811cd0ff
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>
2024-05-13 14:09:23 +00:00
Mahmoud Badri
4f23a553d1 QmlDesigner: Enable content lib user 3D context menu
Also some relevant tweaks.

Change-Id: I7bace9ce6bd7b45951cc18f7175b4646251196f0
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-13 09:25:18 +00:00
Thomas Hartmann
e4bdb92d0f QmlDesigner: Fix adding keyframe
Keyframes were always added on the selected model node
instead of the modelnode belonging to the property.

Task-number: QDS-12622
Change-Id: Iae44cfecd862d79b14c062854d5f329da595f729
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-05-13 08:02:46 +00:00
Michael Weghorn
23b7ac84a9 Debugger: Use integer from native GDB value for typedef
Extend the solution from

    commit d86cf5e235
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Thu Sep 24 12:02:06 2020 +0200

        Debugger: Retrieve and remember int from native GDB value

to also retrieve the int representation for numeric values
from the corresponding native gdb.Value if a typedef to
an integer or bool type is used, not only when an integer
type is used directly.

This makes expressions for bifield members in the
debugger's expression view show the correct value
when the type of those bitfield members is a typedef
to an integer type.

Extend the "Bitfields" dumper test accordingly.

One real world example where incorrect values were
previously shown is GtkWidgetPrivate from the
GTK library [1].

[1] ebc84a6185/gtk/gtkwidgetprivate.h (L39-76)

Change-Id: Ib39e00ebbfc8d7d9ab10dc89af61f37ec41fb4ee
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-08 06:29:35 +00:00
Aleksei German
11802e70d3 QmlDesigner: Fix for ColorEditors Pickers Canvas
Pick-to: qds/4.5
Task-number: QDS-12714
Change-Id: Ie8a6b8be88f4f020cbc82f66015dc7db76d14f56
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-05-07 15:13:42 +00:00
Mahmoud Badri
09e012cbb7 QmlDesigner: Rename "Effect" to "Item" in the content library
Item includes any item except materials and textures

Change-Id: Icf981661dcd611638fe33fae18f65ad62a5e617c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-07 14:44:10 +00:00
Tim Jenssen
ca43b1c0fa Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I524162811ad42e406d7b8e5f38e7043e776005e1
2024-05-07 13:31:11 +00:00
hjk
67072d3f5b Debugger: Re-work bridges
The type cache has been split into smaller caches for individual
aspects. Type ids are now integral, not strings.

In addition, there is new supporting code for logging, timing and
profiling

Change-Id: I6db72a149650d42aecf8b899869c542b1303d43b
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-07 10:15:34 +00:00
Mahmoud Badri
688e697fc0 QmlDesigner: Add user 3D bundle to content library
Fixes: QDS-12391
Change-Id: Ia078e62274277774949b0fc6a679c17ddbf91968
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-06 12:45:23 +00:00
hjk
de3841f138 Debugger: libc++ 16 dumper for string
Change-Id: Ic3eed66d7af54a0251ec58886b68dda611682bef
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-06 09:47:31 +00:00
Eike Ziller
a79f02ca4a Merge remote-tracking branch 'origin/13.0'
Change-Id: I77d3656aec10063a90095d5299b85304692d8b32
2024-05-06 08:14:24 +02:00
Aleksei German
09dcb1d730 QmlDesigner: Enable MCU Gradients in ColorEditor
Specifics using ColorEditor should be able to use new MCUs-specific property

Task-number: QDS-12691
Change-Id: If4d6b1241744ccbc7a9df8b7752ce4ab40502d43
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-03 16:15:56 +00:00
Aleksei German
77827660e1 QmlDesigner: Bump MCUs metadata
Task-number: QDS-11588
Change-Id: Ib1e5212406a856f32611d0a43d603e7c31a605c0
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-03 16:15:10 +00:00
Miikka Heikkinen
df20f8924a EffectComposer: Fix slider value precision
Effects with slider controlled real values now properly cut the values
to two decimals.

Fixes: QDS-11773
Change-Id: I056a295e5a126536d3003490c938361e4ce382b3
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-03 12:59:49 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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