Commit Graph

62024 Commits

Author SHA1 Message Date
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
The Qt Project
74d7c84c8d Merge "Merge remote-tracking branch 'origin/14.0' into qds/dev" into qds/dev 2024-07-23 14:08:09 +00:00
Marco Bubke
2808b5175b QmlDesigner: Modernize string constants
Inline variables have weak linking. So the linker will reduce them to
one instantiation.

Change-Id: I8aa02aa1181a59faf955f31d2683a76e8aef2df6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-23 13:53:20 +00:00
Tim Jenssen
e5d8d1cef0 Merge remote-tracking branch 'origin/14.0' into qds/dev
Change-Id: I1c354102209ba0c3505e3e2745e64ce77cc22bb3
2024-07-23 15:28:59 +02:00
Tim Jenssen
180e8c74a4 QmlDesigner: puppet needs to know the databaseFilePath
Task-number: QDS-10540
Change-Id: I8df5b38ffa6b0f96c06f3b5aafbbe3f960f9dab8
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-07-23 13:04:10 +00:00
Tim Jenssen
173716cbec QmlDesigner: fix build on MSVC2019
Change-Id: I635e40cba17531c1d56e5cbcc4f86853edb0e9ae
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-07-23 13:04:03 +00:00
Shrief Gabr
231cbdb254 QmlDesigner: Change splash screen for Insight
Fixes: QDS-13225
Change-Id: Ia636b03c96c9d295990f9f9e2c4e0aca852835c4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-23 11:01:15 +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>
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
Ali Kianian
0da625b616 QmlDesigner: Categorize application output for Connection Editor
Task-number: QDS-13244
Change-Id: I54ed1485a9b5781e4c16f121521d6462cfecd1d0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-22 17:02:26 +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
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
hjk
95cf4a46ff ProjectExplorer: Remove left over assert
Amends 07df45cdeb.

Change-Id: Ic4520020cd57eac72631efee05ca9b55e62e34e6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-22 09:42:22 +00:00
hjk
00d26f4e8e Meson: Rename ToolKitAspectWidget -> MesonToolKitAspectImpl
Following the (changed) global naming scheme.

Change-Id: If98d644b52013af4f973540cd56d1186d3656e52
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 08:36:37 +00:00
Marcus Tillmanns
231de93b26 Core: Add Open next/previous document actions
Fixes: QTCREATORBUG-1208
Change-Id: I27c84e2c4fb64751b0aa92042518e8351eed0034
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-22 06:51:33 +00:00
Jarek Kobus
de7f0e3a2a ModelIndexer: Dismantle the fake thread
Since no object was moved to the started IndexerThread thread,
all signals scheduled to this object were dispatched
in main thread. So, the thread was started, but no code
was ever executed in there.

Remove the IndexerThread class and do some cleanup by the way.

Change-Id: I9ae185b8e0c38557e5b0ba3dd87f3c70141227d3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-22 06:32:53 +00:00
Jarek Kobus
dcaa3afd6d Various Plugins: Replace setPaused() with setSuspended()
Fix warnings about deprecated QFutureWatcherBase::setPaused().

Change-Id: I7c4637bcaf141bbda46e34da48306a25c68f039f
Reviewed-by: hjk <hjk@qt.io>
2024-07-22 06:09:07 +00:00
Marcus Tillmanns
2145023c8c Fix compile error
Change-Id: Ibd4593381df017c80129ac9d56a5031e46bd908f
Reviewed-by: hjk <hjk@qt.io>
2024-07-22 05:48:46 +00:00
Jarek Kobus
2a5c2765c4 ProjectExplorer: Introduce JsonWizardGeneratorTypedFactory
Limit code repetition by introducing convenient class template.

Change-Id: I90b45a305c5a6f28bf75a602c14ff055928cda48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-22 05:37:40 +00:00
Christian Stenger
0d2ae24580 Haskell: Add wizard files to qbs build
Change-Id: I5aa07fa430baa8b860e3ae540d8b0c1e1ce765c5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-22 04:04:55 +00:00
Alessandro Portale
b534aac6ab ExtensionManager: Make links clickable
Change-Id: I9c98f9bf2e7e3baef42fa9d0d60012881418ef44
Reviewed-by: hjk <hjk@qt.io>
2024-07-20 10:38:15 +00:00
Christian Kandeler
9d0c144892 ProjectExplorer: Let toolchains be (de)registered in bulk
When some code adds or removes a bunch of toolchains at once, that
should be made explicit and also be reflected by the respective signal
emissions.
Fix some leaks and typos along the way.

Change-Id: I4a1f12a2378316c5faf70e85a88adc467f076caf
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:44:47 +00:00
Christian Kandeler
eb6c95b50d ProjectExplorer: Fix restoring toolchains
Amends ec5e055a90.

Fixes: QTCREATORBUG-31263
Change-Id: Ic86149d9916cdef6991fed4b9972f4d44dfe8b7c
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:43:48 +00:00
hjk
8830a38c7d ClangTools: Handle a Qt deprecation warning
Q_WEAK_OVERLOAD
    QT_DEPRECATED_VERSION_X_6_4("Use the 'qsizetype *suffixIndex' overload.")
    [[nodiscard]] static QVersionNumber fromString(QAnyStringView string, int *suffixIndex)

We are now well-prepared to handle Qt version strings with more than
two billion characters before the suffix.

Change-Id: I2aed2c3b8650ff6fba68a174b13d826dc9ab446e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:42:23 +00:00
hjk
e9e793fb6a Autotools: Hide AutotoolsBuildSystem definition in .cpp
Change-Id: I7ef251452c522593da955a64024068682f7fdfb1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:41:57 +00:00
hjk
e7dcbb6b44 CompilationDatabaseProject: Simplify a bit
Change-Id: I83b6d2e77a4a5585af3c816aba1a7710d8d24ad6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:38:20 +00:00
Marcus Tillmanns
b0262115dd LuaLS: Add sendMessageForDocument
The original "sendMessage" function sends a message to each client.
To send a message to a specific Language client the sendMessageForDocument
and sendMessageForDocumentWithId functions are added.

As a fix the way that settings are copied into the Lua wrapper and the id used
to find clients was changed.

Change-Id: I577ee1f9da983c80e4ef00b8e86ccb2bfe369314
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:34:54 +00:00
hjk
f2505ee90a CompilationDataBase: Hide build system definition in .cpp
Change-Id: I49fe7eae6bc323c4d618a463d701021591f4d15d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:08:51 +00:00
Eike Ziller
84cc7208de iOS: Improve error message when installation on Simulator fails
In case of error, post the output of the simctl command in compile
output and issues pane.

Fixes: QTCREATORBUG-25833
Change-Id: I62a0f7b10b5188a7c8b4e1db543b66d0661d4e6a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-19 14:05:12 +00:00
hjk
c895f67b6a Vcpkg: streamline vcpkgmanifesteditor.cpp a bit
Change-Id: Iabb1056f789b1e30f95d469ea18ccfb04e978b46
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 13:51:09 +00:00
Marcus Tillmanns
afa121778b Lua: Hide REPL by default
Change-Id: Ieeac4bd49cd39dc16cf9637b1a487faf024bf44a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-19 13:44:09 +00:00
Lukasz Papierkowski
f4d8eaca00 LUA: Client and Utils bindings update
Change-Id: Icad01906aa9f9405004ce342399fcb42354e77df
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
2024-07-19 13:33:29 +00:00
Christian Stenger
95ef7c8ff0 Lua: Fix MinGW build for qbs
Change-Id: Ia0afe744add081d8f255ad6328b6ae55ca07fc11
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-19 13:04:42 +00:00
Marcus Tillmanns
a858e305d5 Lua: Improve SelectionAspect binding
Change-Id: I4fa4bd2ae64078ca702637625975cf8fbfa7c116
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 12:49:17 +00:00