Commit Graph

8715 Commits

Author SHA1 Message Date
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
Tim Jenssen
72f82f420a Merge remote-tracking branch 'origin/qds/dev'
Change-Id: I8a8692100cbd2429d1952009b73f29d8a374f9bd
2024-04-24 17:37:48 +02: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
Tim Jenssen
ef0ee52bf9 Merge remote-tracking branch 'origin/qds/dev'
Conflicts:
	doc/qtcreator/src/overview/creator-only/creator-keyboard-shortcuts.qdoc
	doc/qtcreator/src/qtquick/qtquick-live-preview-devices.qdoc
	doc/qtcreator/src/qtquick/qtquick-profiler.qdoc
	src/plugins/qmlprojectmanager/qmlprojectmanager.qbs
	src/plugins/remotelinux/linuxdevicetester.cpp

Change-Id: I3683c1799df05209d05413383456b285a2daf96e
2024-04-23 16:05:55 +02: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
Tim Jenssen
7dfa746920 Merge remote-tracking branch 'origin/13.0' into HEAD
Change-Id: I1f87297930db420606aab8d7016c290483f262c0
2024-04-23 14:03:46 +02: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
Marco Bubke
e262ec1ebb QmlDesigner: Integrate item library entries from project storage
Task-number: QDS-12102
Change-Id: Id6fbfcfb44d3b8c290f5e5d74addf33ef4d9a5e5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-22 15:34:53 +00:00
Henning Gruendl
d83e7d3d3d QmlDesigner: Add proper ranges in EffectsSection
Change-Id: If3f8b395c9a63c535f43be84d7a855196c67769e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-22 15:22:46 +00:00
Henning Gruendl
bb6110082a QmlDesigner: Hide visible CheckBox EffectsSection
Hide the visible CheckBox in the EffectsSection when there is no effect
currently added to the item.

Change-Id: I68dede067a92bf5f733c582424ed5b2c2745e651
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-22 12:54:10 +00:00
Shrief Gabr
dad555a088 QmlDesigner: Fix save indicator behavior on selection change
Task-number: QDS-12499
Change-Id: If91aab8d133a9269d9fc381ea0a130d3953aa69d
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-22 12:48:04 +00:00
Eike Ziller
e5640386f8 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	doc/qtcreator/src/qtquick/qtquick-live-preview-devices.qdoc
	src/plugins/projectexplorer/projectexplorer.cpp

Change-Id: I682b330a278a329fc6294baeff6a28040abd10bc
2024-04-22 12:18:10 +02:00
Alessandro Portale
89682a866e Android: Fetch latest command line tools for "Set Up SDK"
Don't install outdated ones.

https: //developer.android.com/studio#command-line-tools-only

Change-Id: Ifd9c6a2e90a63c6113c859910365689f19b3a532
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-04-21 17:17:07 +00:00
Shrief Gabr
778688154d QmlDesigner: Fix model editor layout issues on adding rows/columns
Task-number: QDS-12352
Change-Id: Ie37d1afe2a243d08a09a55778cf0bf00de8f327c
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-19 14:34:22 +00:00
Thomas Hartmann
0496c872a3 QmlDesigner: Allow to add a signal
Change-Id: Ib34cb19c9a046d8a404c5be06099280f29686662
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-19 12:42:36 +00:00
Eike Ziller
35fb079104 German translation: Unify to "Quell-" and "Quelltext"
Remove a few usages of "Source" instead of "Quell".

Consistently use "Quelltext".

Task-number: QTCREATORBUG-29370
Change-Id: I15feb7fb614e70e1a59057a5cd47453be38cf7c3
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-19 12:18:51 +00:00
Eike Ziller
277f4bad9f Translations: Fix lupdate warning
About duplicate messages.
Amends 7f8adab0d0

Change-Id: I21c54ce8b3ddbaed5294e00c1b758f3386c9e777
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2024-04-19 11:24:37 +00:00
Thomas Hartmann
cf05fa6846 QmlDesgner: Fix whitespace
Change-Id: Iaa0fd96bd553d1f0d081d30b2e8772e3db878b1e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-18 15:24:43 +00:00
Thomas Hartmann
2618d1b544 QmlDesigner: Create the import for the first node created
Change-Id: Id0c251857a69844318fecd40923fcd6a7e1ef33a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-18 15:22:39 +00:00
Alessandro Portale
bfbbd7226b Themes: Reinstate DerivePaletteFromTheme for "Flat" theme
The Flat theme did not enforce the application palette, anymore, if run
on a system in dark mode. But it should, otherwise the system palette is
applied to parts of the application and might alter the appearance.

This reinstates the mechanism.

Fixes: QTCREATORBUG-30709
Change-Id: I2698cb09c8f299bd8f733214f2b0d8236aaa4660
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-18 13:50:13 +00:00