Commit Graph

89152 Commits

Author SHA1 Message Date
Marcus Tillmanns
df583b2cd0 Lua: Add to/from json convenience functions
Change-Id: Ibf69c8021d676bd6efbbdb5331f1925808fcfe38
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 10:43:57 +00:00
Christian Stenger
d0fe8ac061 Meson: Fix qbs build
Change-Id: Ib06c3fa58be117c315ec828d406221494d4e5481
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 10:38:48 +00:00
Marcus Tillmanns
1220db049e Lua: Add support for translation
Change-Id: I5398480233c830bb08c641bc8193b068fb037032
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-24 10:04:26 +00:00
Eike Ziller
8777b01cb3 Fix missing symbols in Meson plugin
Amends 3cf8a37c7d

Change-Id: Ied585d199f40d0e8ac75ca74201e549cbcc68b55
Reviewed-by: hjk <hjk@qt.io>
2024-07-24 08:29:41 +00:00
Andrew Shark
f2a5c6f0ce Move icon selection mentioning to correct place
The icon of kit is located next to "Name" field, not next to "Run Device Type" field.

Also, it should not be double-clicked. Just single clicked.

Change-Id: I962dbe2647beeae8f7c5038b2ead3903336172ab
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-07-24 08:22:06 +00:00
Eike Ziller
4ec2f0bf54 German translation: font -> Schrift
- "Schriftart" is the graphical style
- "Zeichensatz" is a collection of characters, similar to what printers
  had, used for typesetting
- "Zeichenkodierung" is character encoding
- "Schriftschnitt/Schriftstil" is a variant of a "Schriftart", like
  weight, italic etc.
- "Schriftfamilie" is the collection of all "Schriftstile" of a
  "Schriftart"

"Schriftschnitt/stil" seems to be the most direct translation of "font",
but keep it simple and just use "Schrift".

Change-Id: I8705dda02879a69fe94c529a96644d6ba4efe706
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-24 08:12:58 +00:00
Eike Ziller
2b2746c274 German translation: Unify "remove" -> "entfernen" vs "löschen"
Unfortunately we are not very consistent with "remove" versus "delete"
in English either.
Anyway, default the translation of "remove" to "entfernen" (like for
breakpoints etc), except where it obviously refers to deleting files
where we use "löschen".

Change-Id: I4898fe4c85fe0372d6cd314dd71e9583f8084480
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-24 08:12:46 +00:00
hjk
3cf8a37c7d Meson: Merge toolitemsettings.* into toolssettingspage.cpp
Change-Id: I69cc4032c6b5c8fc9e5c86753994781a4f65a35f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 08:07:55 +00:00
hjk
1decf593b1 Meson: Merge tooltreeitem into toolsmodel
Change-Id: I949e36740545ea1521a22efb6b1db16548dfae64
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 08:07:45 +00:00
Eike Ziller
4fb63e4c9d iOS: Remove unused variable
It was set, but nobody was actually using it.

Change-Id: I99c6fcd4605591d65e5f3fb3f489a3de0c61fb24
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 07:45:24 +00:00
hjk
b02783db02 Meson: Remove empty targetparser.h
Accidental leftover from 508189339.

Change-Id: I104512e3999297669c358e4e1d2b5672ced125c8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:44:15 +00:00
hjk
c1b113d599 Meson: Compactify mesontools.{cpp,h}
Change-Id: I1f34fc5394aabfba1d2b069f12b9175f410aaf4f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:17:47 +00:00
hjk
3ca8c6a0a5 Meson: Merge toolwrapper and mesontool file pairs
Change-Id: I6383a5ee060957ba133ddf98a1a383bbe2489369
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:17:37 +00:00
hjk
23b31e24bf Meson: Start generalizing again
Change-Id: I9fc18edb0e159c448193b4cc7c4bd82b2d5f409a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:16:26 +00:00
hjk
a4a92a04a1 Meson: Streamline setup a bit
Change-Id: I8d146b2b79beb9b09dcf6f8ed498039d79af0e76
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:16:12 +00:00
hjk
ed10d7a449 Meson: Merge ToolWrapper classes
Change-Id: I140088263059944b39c913acd1df07312b249953
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 07:12:14 +00:00
hjk
36a6fa1664 Meson: Start simplification of tool loading
Change-Id: I5a70c17bd219dc8dc18061842808166b76b26828
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-24 06:30:09 +00:00
Marcus Tillmanns
c76025ed41 Lua: Allow category icon as filepath
Change-Id: I364b9d7c33e17986df3156dd59c359f111f05c00
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 06:15:24 +00:00
Marcus Tillmanns
7d4e2427fd Lua: Add pluginDirectory field to PluginSpec
Change-Id: I83066df3ce519d7e928bb79523ef43111b9bb1c0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 06:15:20 +00:00
Jarek Kobus
7cb3ba0b2f WebAssembly: Add missing include
Amends 62f68a2f99

Change-Id: I79166c7764a66b51545ab5124e3f4850b2d7567d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 04:28:15 +00:00
Jarek Kobus
b52bded0a7 Android: Don't pass error string
Instead, emit remoteProcessFinished() directly from the
startDebuggerServer() function. Make this function void.

Change-Id: Ibeeb2a1e3aabb9b3021203003e31a7b44eef573e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-24 04:15:15 +00:00
Christian Stenger
c9da771625 QmlJS: Fix requesting context help
Import versions as well as versionless imports can confuse
the help engine when performing context help lookups, which
leads in some cases to falling back to the wrong help items.
Remove the version for looking up help items.

Fixes: QTCREATORBUG-31280
Change-Id: Ida765369f52804186ca005ceec23cd9d795220c5
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
2024-07-24 04:04:43 +00:00
Jarek Kobus
529f8c453c Android: Remove unused functions from AndroidConfig
Change-Id: Ie2a0801eec65a97cc5b67994a6f9b2b07242137f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-23 18:31:08 +00:00
Jarek Kobus
f5dd0c63ac Android: Replace blocking run of Process with non-blocking
Make the getconf process a yet another task in the recipe.

Change-Id: I4c25cb512740471fa603ee0b9a46a41879ba90cd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-23 18:30:57 +00:00
Alessandro Portale
62f68a2f99 WebAssembly: Provide diagnostics for an unsuccessful emsdk detection
Setting up a working emsdk requires a couple of steps:

1) Installation/clone of emsdk
2) Installation of an SDK
3) Activation of an SDK

If the setup is incomplete, Qt Creator cannot use the emsdk. Until now,
users got no explicit indication of an unsuccessful emsdk detection and
no hint of what could be wrong. This change adds visual diagnostics of
potentially missing emsdk setup steps.

Fixes: QTCREATORBUG-30057
Change-Id: I2dc2d3388be75e8586dc18d24b0a5b57bcffaadb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 16:15:31 +00:00
Alessandro Portale
72509fbe10 WebAssembly: Simplify initial settings UI update
This removes the need for a delayed call of
WebAssemblySettings::updateStatus(), and a possible visual glitch where
too many widgets are visible for a split sencond.

Change-Id: I2b4b39f6576d16d4fde6b3e3df1ce09e6805086d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 16:14:40 +00:00
Jarek Kobus
ddbf884c12 QmlDesigner: Fix warnings about deprecated operator+
Use operator| instead.

Change-Id: I34392de11a9430922a644851602d5cce4c72df42
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-23 10:54:38 +00:00
Jarek Kobus
841db70d32 QmlPreview: Remove unimplemented methods
Change-Id: Ic1b4ae5c39ef5e1093d2b8a45b08f7bec75d2b9c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-23 10:54:17 +00:00
hjk
a43d687a10 ProjectExplorer: Add a trival BuildConfiguration
So people can at least add a custom build step

Change-Id: I78f3601233c776501bdc73fb7d67cbfeb886ced2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 10:04:46 +00:00
hjk
89aa5c984f ProjectExplorer: Make custom build step id accessible
Change-Id: Ia1877c4b14fbdc91e6cc1e24b0ee0182f548c5fd
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 10:04:40 +00:00
Eike Ziller
0be6d0d972 Add native name to language setting options
If someone wants to switch to a language because it is their native one,
it makes most sense to show the option in their language.
Nevertheless the english name is useful too, so keep it.

Change-Id: I3afb81202e6799525c1c9c503ac3a97c608c3c8a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-23 09:20:15 +00:00
Marcus Tillmanns
73494e3235 CompilerExplorer: Remove unused member
Change-Id: I7cbab5db00d79c52f5fe4b78f9e6b5f1f382ba5a
Reviewed-by: hjk <hjk@qt.io>
2024-07-23 09:04:23 +00:00
Christian Stenger
370c2d7787 Debugger: Fix snapshot handling
Avoid sharing the workers with the engine creating the
snapshot to avoid closing both when stopping the debugger
engine for the snapshot.
Correctly detach at finish to avoid having a runcontrol
appearing still running.

Fixes: QTCREATORBUG-31220
Change-Id: Iccb54b0fc2d7f5bf54b42a116e56c1a840b1f46e
Reviewed-by: hjk <hjk@qt.io>
v14.0.0
2024-07-23 09:03:40 +00:00
Eike Ziller
42536411ef Improve debugging of context changes
Add some more information to the core logging category.

Change-Id: Ie2b4a473cfb4b5f721860457282ee668d828cefa
Reviewed-by: hjk <hjk@qt.io>
2024-07-23 08:20:18 +00:00
hjk
42e327f960 CompilerExplorer: Move to new editor factory setup scheme
Also clean up #includes a bit.

Change-Id: Ia8793e1eb549209df31cdfbd6d9290f5d42360d3
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-23 07:55:33 +00:00
Alessandro Portale
7b4b1e2a72 Debugger: Fix debugger type detection of Android NDK LLDBs
NDKs usually ship the python libraries required by the NDKs LLDB.
However, these libraries reside in a different location.
DebuggerItem::addAndroidLldbPythonEnv takes care of finding that
location.

This change re-adds the recently remopved
DebuggerItem::addAndroidLldbPythonEnv call, so that LLDB can again be
detected.

Amends: b56a447a83

Fixes: QTCREATORBUG-31279
Change-Id: I78cb7dfd1abd96f7bc52e4adff9dddd054f8ac0b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-23 07:54:04 +00:00
Lukasz Papierkowski
1f75b35bb2 Lua: Fix language client
Change-Id: If87adc59e997626ad4ca77a75802f7c068cf26e5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
2024-07-23 06:18:46 +00:00
Alessandro Portale
931f55200b ExtensionManager: Keep "Load on Start" checkbox up to date
If a plugin was selected in the ExtensionManager, and meanwhile, the
"load" status of that plugin was changed via the plugin dialog, the
change was not reflected in the ExtensionManager.

This change connects the "Load on Start" checkbox in the
ExtensionManager with the PluginManager's "changed" signal to keep the
state in sync.

Fixes: QTCREATORBUG-31177
Change-Id: I6946e23e8491e9c896026b55315acf76bb50cb92
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-22 19:55:45 +00:00
Pino Toscano
eee3fc6907 ClangFormat: explicitly link with LLVM
The ClangFormat plugin uses the LLVM API explicitly, so explicitly link
with the LLVM library when available, using its cmake target. This way
the linking is done no matter whether the target for the clang format
library declares LLVM as its public dependency.

Change-Id: I997c720935750fd01229d4d4c20c1bdcadca9ac7
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-22 18:36:48 +00:00
Andre Hartmann
25bf06968a Git: Add full blame and showing file from Instant Blame
Add actions to get the full file blame at the current lines
revsion respective its parent revision and to show the whole
file at the lines revision.

Change-Id: I2c6a1e98967cd40d658afe6bfedf0a0d9e988186
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-22 18:36:38 +00:00
Eike Ziller
d410155395 QmlDesigner: Fix context help in code editor
Context help is only triggered for the first widget in the focus widget's
parent hierarchy that has an IContext registered.

This change amends 411100b037 which
removed the TextEditorActionHandler by registering an editor-specific
IContext for the individual TextEditorWidgets.

The code editor in QmlDesigner registered an IContext for a widget that
_contains_ the actual editor widget and handled context help there. Now
the editor widget has an IContext, which means that the IContext that
QmlDesigner registered was never asked.

Directly register the QmlDesigner IContext for the text editor widget
itself, so it takes part in context help resolution.

Fixes: QDS-13248
Change-Id: Ib49129d9de20bdfa022a8e75ba454c7674040699
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-07-22 13:41:10 +00:00
hjk
a9ee4ed5e8 Nim: Hide NimBuildSystem definition in .cpp
Change-Id: Ib6fe898ccb0c58725c336819e4a02a441a304c3a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 13:27:32 +00:00
hjk
750e9c3b6b Nim: Standardize Project classes setup
Change-Id: If95e98e406c1a9bacd75ccf3b58416185e6152a2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 12:07:44 +00:00
hjk
0982613a73 Meson: Simplify Command structure
Also, change from .toString() to .path() which is the right thing
to uses in this context.

Change-Id: Ic1fe001267a729e9f68a313bea476eb17b718ba3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 12:07:15 +00:00
hjk
3197ef3ea6 Meson: Merge the tool wrapper files
Change-Id: I055006e29ee8c2067275e64043c7a7ffcc460390
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 12:00:40 +00:00
Eike Ziller
bec20925d0 German translation: Unify to built-in -> integriert
Change-Id: I88c06f2aa9ea7d6c524e7825087bdb1929e5941f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-22 11:42:52 +00:00
Robert Löhning
e2d0ec02fe SquishTests: Don't expect Creator to detect 32 bit cdbs
It stopped using them in Version 14.

Change-Id: I81c481d48474ae6024187b876720026ed668575c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-22 11:20:53 +00:00
Eike Ziller
d513663828 German translation: Unify to feature -> Funktion
Change-Id: I298c9eb2edeb4dc36dc4fe774fb4d3cf2a872032
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-22 10:46:03 +00:00
Eike Ziller
da9b4803e7 German translation: Sync a string between ProjectExplorer and TextEditor
Change-Id: I833c58d0fbc3ad5565ee1c6346a9b0bd0bf13cbd
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-22 10:45:25 +00:00
hjk
d09063de87 Meson: Hide the tool aspect implementation
Change-Id: Ib8cf56385d7e369a2c185d6cbd62613b4b28bc79
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 10:34:06 +00:00