Commit Graph

89080 Commits

Author SHA1 Message Date
Jarek Kobus
f9bb9feda4 Meson: Use QVersionNumber instead of self-made substitute
Change-Id: I6d4168a0be3e14f39baf469f47bc292779fe286a
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 10:23:20 +00:00
Jarek Kobus
319e87fd6c Meson: Remove empty header
Change-Id: I89f4e3066ef232d53280f8ecbc7a677722a366ea
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 09:51:53 +00:00
Marcus Tillmanns
e78c132249 Utils: Add FilePath::operator/=
Change-Id: Icd1ec095ec241707832cbe5d8438017b3e0ef0de
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 09:14:42 +00:00
Marcus Tillmanns
768c6d5a0e Utils: Fix deprecation warnings
Change-Id: Ia38272aa132f366e297ce376255356abb67c6ce9
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 09:14:35 +00:00
Marcus Tillmanns
b8fb2b11b4 ExtensionBrowser: Fix OsType
The database calls it "macOS", not "Mac".

Change-Id: I624c223b1d6b291a9d6797f3775d81f05684ee86
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 09:14:29 +00:00
Marcus Tillmanns
e5d92aba2a Lua: Document translate module
Change-Id: If4c78329a386d2cd3cfa05ce883a320e84163e23
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-25 09:11:56 +00:00
hjk
665ec382bf App: Use namespace Utils
Change-Id: I9e089f692af9579c2def54e06d953ed3ed4e5b16
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-25 09:03:30 +00:00
hjk
c811b93ece App: Move the -style check into windows-specific code
Creates warning about unused variable on Linux.

Amends 3babe8c73.

Change-Id: I038502afc7e488354da7c871520c39a08ec54aa6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-25 09:03:15 +00:00
Lukasz Papierkowski
98c55d979b LUA: Add hasSelection() to the TextCursor binding
Change-Id: Icd6467d454eeadd80f4c836902428ea961ce60fe
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-25 06:46:57 +00:00
Lukasz Papierkowski
2e7358f0a4 AI Assistant: Check for selection before request for suggestions
Change-Id: I12207d9a9fcfea0b868c5d1c2fe5e2f7c6578f37
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-25 06:46:39 +00:00
Lukasz Papierkowski
b8dbcf3c9c AI Assistant: Add trigger suggestion on user demand
Change-Id: I3f2432266e6fe52311ffa5ac2f2a76af72161a3d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
2024-07-25 06:44:12 +00:00
Lukasz Papierkowski
8b4cb5f9f5 LUA: Add setSuggestions() in TextEditor bindings
Change-Id: I29067ab0beb8eeddc4348bb0ddf2ab37a4af8a09
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
2024-07-25 06:43:28 +00:00
Jarek Kobus
b733a16cce Android: Avoid code repetition
Add extra args to removeForwardPort().

Change-Id: I3aed7974aff327f29db9f62e4714ba2696b81dd6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-24 17:54:48 +00:00
Jarek Kobus
6c15cc6bf9 Android: Simplify removeForwardPort()
There is no need to split the output into separate lines
and search for port number in each line afterwards.
Search for port number in the whole output instead.

Change-Id: Id020bd5a73080be30b6cef47853e027235105ae3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-24 17:54:39 +00:00
hjk
e57b635a6e Core: Hide MimeTypeSettings(Page) implementation
Change-Id: I0307e7e4f6172142c344c977b297ffc705a351ea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-24 13:59:47 +00:00
hjk
8bf578669e Utils: Add LayoutBuilder::Splitter::setChildrenCollapsible()
Change-Id: Id404f061c68401a4d33916637214f01eb423c3e9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 13:54:09 +00:00
Jarek Kobus
e7b97ee375 CorePlugin: Fix warning about deprecated operator int()
Operate now on QKeyCombination instead.
Return false if there are modifiers other than Shift or Keypad.
Otherwise, return the result of comparing key() with the Escape key.

Change-Id: Ica6409a7b7b5ed28e79915691c40a898008735f7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-24 12:41:00 +00:00
Alessandro Portale
8ea9028491 ExtensionSystem: Use description text in PluginDetailsView as MarkDown
Task-number: QTCREATORBUG-31199
Change-Id: I6f7d0c711a083636e8d37beb47a1ec14d139a557
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-24 12:40:07 +00:00
Alessandro Portale
fdfbf273a2 BareMetal: Use LayoutBuilder for DebugServerProvidersSettingsWidget
Change-Id: I66ec71567de0fc9ace233c1fe3dee5c088956acf
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-24 12:39:51 +00:00
Eike Ziller
959f5fa3a2 iOS: Simplify starting simulator
We do not need different code paths for Xcode < 9 nowadays.
Just tell simctl too boot the requested device and make sure the
Simulator app is running.

This also fixes an issue if for some reason a different device is already
booted without the Simulator app running, e.g.

1. make sure Simulator is not running
2. boot a device from the command line with
   `xcrun simctl boot <deviceID>` (get the device ID from the Devices &
   Simulators window in Xcode)
3. start Qt Creator and run an application on a *different* simulator
   device

Without this patch Simulator app opens with the device from (2) and
deployment of the application fails for the different device.
With this patch the device for (3) is booted and the application
deployed and run.

Change-Id: Ifce8c470f2d4d646295ca4e47fbd92308f87adf8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 12:04:47 +00:00
Eike Ziller
5cd35e33b3 iOS: Unify error output handling for all simctl commands
If simctl fails, always include its stderr output in the error, if any.

Change-Id: I7a5643ac81befc9d0595e9c3bd4fa009057ff85b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 12:04:36 +00:00
Christian Stenger
f91af7106a Lua: Fix qbs build
Amends 1220db049e.

Change-Id: I5e9f7898ec4d421fe44105c58cfd17eda68c8a6b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-24 10:58:54 +00:00
Marcus Tillmanns
05b1d9cf68 LuaLSP: Make init Options dynamic
Allows a LSP plugin to dynamically configure the initializationOptions

Change-Id: Idc5d6526a732512b2e4e7394fb1c8b5749cde25d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 10:44:10 +00:00
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
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
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