Commit Graph

62024 Commits

Author SHA1 Message Date
Jarek Kobus
24dab04a33 Meson: Reuse ProcessRunData instead of self-made Command struct
Change-Id: Ie4a989976e3684b0931d5cdb49fbc06b76ebcb67
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 10:51:30 +00:00
Jarek Kobus
0984b7b0c8 Meson: Hide versionNumber() in cpp and make it static
Change-Id: I0132de7b6a7df7dd5d6ae4f1ddef52d5af33729a
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 10:51:23 +00:00
Jarek Kobus
d10c720dfc Meson: Get rid of unused mesonInfo field
Change-Id: I29c482a81e7628bc877761dca8fc83b326120b06
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 10:51:16 +00:00
Jarek Kobus
61b139dbfe Meson: Inline InfoParser inside mesoninfoparser.h
Change-Id: I29a811ce963f94f90d3cbb07adf72ff3729c3f5e
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 10:46:11 +00:00
Ali Kianian
64a9f8a15a QmlDesigner: Edit the style of Materrial Menu of 3D View
Fixes: QDS-13265
Change-Id: I98c3091a859783b3f1c450fd20e70351ce48303c
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-25 10:41:57 +00:00
Jarek Kobus
41bdcabe5f Meson: Get rid of MesonInfo, use QVersionNumber directly
Change-Id: I482cfdfe988c10e592b0f2bf106b6ace41cf44ad
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 10:23:28 +00:00
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
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
Ali Kianian
7c17349296 QmlDesigner: Repolish materials action in 3d context menu
1. Instead of a single action, a menu is shown. This menu contains all
of the materials of the selected node.
2. If multiple nodes are selected, the intersection of the materials is
shown.
3. Having several identical materials in a nodes are supported.
4. For each material, there are two options
* Remove (Removes the material from the selected nodes)
* Edit (Opens the material editor for the selected material)

Task-number: QDS-12375
Change-Id: Icc19a4127dc490490e4464ce840e89e5379c5e8c
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-25 09:05:33 +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
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
Marco Bubke
3e05959468 QmlDesigner: Use more string views in the model
To decouple the string implementation from the internal string. It
should lead to much less allocations too after the rest of the code is
converted too.

Change-Id: Ifb49f57b9e5ac5af4963e1257c535ddef6044d93
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-24 14:10:51 +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
Eike Ziller
8758c3c8dd Editors: Fix crash after triggering dropdown menu after closing editor
The context menu kept a handle on the editor and document, and these
could be deleted behind its back. Use QPointers to actually check.

Fixes: QTCREATORBUG-31232
Change-Id: I613abbe6dc0fbac60c2e527f715a7b8c2f083893
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-24 12:56:07 +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
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
Shrief Gabr
86abda20b0 QmlDesigner: Prompt to restart only if Insight Tracker status is changed
Fixes: QDS-13262
Change-Id: Ia295cb13752077366ec13cb2b9b5b76825ea2acf
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-24 10:01:15 +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
Henning Gruendl
7e30662611 QmlDesigner: Add custom context help NavigatorView
Task-number: QDS-13252
Change-Id: Ib7228265619c95dd8421813bf545844bc1ecb58d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-24 06:31:01 +00:00
Henning Gruendl
52a5cfdb30 QmlDesigner: Fix NavigatorView context help
Remove line increment in jumpToModelNode code as it erroneously puts the
cursor in the text editor to the next line of a selected item.

As the NavigatorView and others currently using the context help
function of the text editor, which internally depends on the cursor
position, and hence on the assumption that when selecting an item via
any view the cursor is placed on the item an not inside the item,
pushing the cursor down by one line breaks that assumption. As a result
the context help searches for nothing or a property (e.g. id) and not
the selected node.

Task-number: QDS-13252
Change-Id: I00810a0ff8ddd49177ebf18e3eea7b6b05cc0af3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-24 06:30:56 +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