Commit Graph

8593 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Mahmoud Badri
ad408553af QmlDesigner: Enable expanding content library user categories
Change-Id: Id3b49773b02e4922a06b71e6ed7a7098ed4d4062
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-18 13:20:15 +00:00
Alessandro Portale
6324d530f3 Themes: Make Classic theme work on dark systems
Amends: 89e9597365

Fixes: QTCREATORBUG-20889
Change-Id: I800b4c32f123bf0eef4b4d26ea4359573dfdca8a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-18 10:22:51 +00:00
Tim Jenssen
90c4826c29 QmlDesigner: remove annoying output
Change-Id: I7f74ece071923208764b767a70436145888fbb54
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-18 06:20:46 +00:00
Eike Ziller
28b14de384 Tr: Some "JSON" fixes
Change-Id: I20dd41a4a979fa35fe8696b00586096ca5c33d4b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-18 06:06:58 +00:00
Eike Ziller
7f8adab0d0 Translations: Fix various \n, full stops, spaces
Add missing full stops, remove space at beginning and end, remove end
lines at end

Change-Id: I4ce28f578e13e100dcfbd8ef70630462faf407fc
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-04-18 06:06:45 +00:00
Eike Ziller
168136b9e6 German translation: Consistently use "verwenden"
instead of "benutzen"

Task-number: QTCREATORBUG-29370
Change-Id: Id6f894189962152df6d71ba845b7f8cee7a1ef9b
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-18 06:06:30 +00:00
Eike Ziller
e1e4afa403 German translation: Some less '-'
We already used "Stackframe" and "Analysewerkzeug", remove the '-'
variants.

Change-Id: I2e64a7db05d531254f599e3da08f03af19a412f6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-18 06:04:23 +00:00
Eike Ziller
fe50d1cce1 German translation: Consistently use "fehlschlagen", not "scheitern"
Change-Id: Id27cb829245d1b9b76ab90efc818d081d391b5f5
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-18 06:03:57 +00:00
Eike Ziller
89e9597365 Set palette also for light/mixed (flat) themes if needed
We cannot assume that the default palette on the platform
and its theme fits the Qt Creator theme. If the system is dark, but Qt
Creator's theme is light, we need to set the theme palette on the
application.

Some themes already enforce the theme palette unconditionally (design-
light, and the dark themes). We don't want to set the palette
unconditionally for our flat default themes though, because for example
on macOS the light and dark colors that we get from the system are
always good and match the Qt Creator theme (because we tell the system
that our application is light/dark explicitly). Add a new
DerivePaletteFromThemeIfNeeded flag as an alternative to
DerivePaletteFromTheme for this.

Fixes: QTCREATORBUG-18281
Task-number: QTCREATORBUG-23187
Fixes: QTCREATORBUG-26817
Fixes: QTCREATORBUG-28589
Fixes: QTCREATORBUG-30138
Change-Id: Id0042980807fa2efd663b856a45255bb453227fd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 14:03:10 +00:00
Ali Kianian
f006cfb233 QmlDesigner: Warn the user if the project is not imported
When the project is not importd in the design document, DataStore cannot
be found by the project manager. User should add it to make the Model
Editor work. So we will warn the user in the Model Editor view.

Task-number: QDS-12119
Change-Id: I313e5553e8b0a0ef3b97c50d61db80c0a8d382f8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-17 12:02:35 +00:00
Eike Ziller
1f16237736 Themes: Remove ApplyThemePaletteGlobally
It is always the same as DerivePaletteFromTheme, so just use that in all
cases.

Change-Id: Iac9b91bb7792778601a59f761e015ff292f86da7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 10:41:41 +00:00
Mahmoud Badri
4591293fd9 QmlDesigner: Add user texture bundle
Fixes: QDS-12390
Change-Id: I512a8748bbb6a282589f05293507c110162e7f1d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-16 14:01:58 +00:00
Thomas Hartmann
b5aac705ea QmlDesigner: Indicate if a file is modified
Task-number: QDS-12361
Change-Id: I7a6c5f112b0f193f5bb975a331e2f0d44d19ddc2
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-04-16 11:59:38 +00:00
Thomas Hartmann
1488548739 QmlDesigner: Fix reflection for CheckBox
Change-Id: Ib0268e5a015fb74c6691e7b3c51ca03f1f90ba55
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-04-16 09:42:52 +00:00
Knud Dollereder
4ee7b297ce QmlDesigner: Adapt wizards to the new project structure
and removed some unused templates

Change-Id: I7e3e4a94ef31cbf5c98a0c1ad26dcaaa340c1e97
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-16 09:08:41 +00:00
hjk
b74f871b5b Debugger: Add a helper to visualize dumper profile data
A stripped-down and modified version of pyprof2calltree.

Change-Id: I9e37a4e13f312b40144394572ef6603bb2161487
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-16 07:14:16 +00:00
Aleksei German
e8a47b1b8a QmlDesigner: Fix Properties Section for Effects
Change-Id: I249723f45b83731232acc9e68a6c4e27b85d6d11
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-15 16:11:44 +00:00
Shrief Gabr
e5c50c6dea QmlDesigner: Change default view3D id in Extended 3D projects
Task-number: QDS-12351
Change-Id: Ib3ecb8e2f6ca1561819f19001d851b0932e9583f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-15 09:52:56 +00:00
Thomas Hartmann
36f666174f QmlDesigner: Add import for DesignEffects
Change-Id: Ib6a2c8bd8e6d04fe532fe524225d501c40a7a042
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-12 15:39:30 +00:00
Mahmoud Badri
247d2dbf6d QmlDesigner: Cleanups in the content library
Change-Id: I4bbb6f6d89c3e35a265624365eb61664280e9151
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-12 08:57:24 +00:00
Henning Gruendl
df123a0080 Fix syntax and remove warning
Change-Id: Ifea0ebae64365792eefe47995d0ae6a1192590d1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-11 16:24:01 +00:00