Commit Graph

88532 Commits

Author SHA1 Message Date
Marco Bubke
fa07abf6d8 QmlDesigner: Rename ProjectData into DirectoryInfo
The design is now directory based. So the name should reflect that.

Task-number: QDS-12665
Change-Id: I7479c37357a4fd33f5f3b4c93d63d2fdd4ca6ef9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-07 11:08:53 +00:00
Eike Ziller
770f1b0376 LanguageClient: Avoid calling throwing functions
Similar to with std::optional we want to avoid calling throwing
functions for std::variant, which includes std::get.
In many cases this also avoids the chain of `std::holds_alternative` +
`std::get` calls. And we never declare any `throws`.

Change-Id: I14f62ddef921b6bee90226ea34d1ffa62629bdc3
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-07 10:41:32 +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
Leena Miettinen
1218175c78 Doc: Write "toolchain" as one word
We still have some occurrences in the UI where it is written as
two words, though.

Change-Id: I245e4185c8ede4313bbe64641f38a3850fa8cbeb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-07 09:25:16 +00:00
Leena Miettinen
f9b097436b Doc: Restructure info about remote Linux devices
Task-number: QTCREATORBUG-29361
Change-Id: If78cdeb28b0efb522aea871ae9f20e7742afd127
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-07 09:22:49 +00:00
Marcus Tillmanns
d96615eee8 Utils: Add function to format colored text
Change-Id: I6ae4d113e0aca434e99d9864188187100c24e47d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-05-07 08:57:19 +00:00
Christian Kandeler
bb2d565ecc Utils: Fix output linkification
The case where links are combined with other formatting was not correctly
implemented.

Fixes: QTCREATORBUG-30774
Change-Id: Ie56a7f4c9a1f8a9b23848cc6fd4b7749bb6cecd7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-07 08:11:03 +00:00
Teea Poldsam
dd10b5972c Doc: Fix QDS doc warnings
Fixed some links and one command issue.

Fixes: QDS-12704
Change-Id: Ie281718675cc3a71d02248096a57a5dceffce512
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-07 06:13:13 +00:00
Cristian Adam
5e4281dafe CMakePM: Add conan/vcpkg-dependencies to "Clear CMake Configuration"
This way one could really get a clean build as one would expect when
issuing "Clear CMake Configuration".

Change-Id: I7067bc4f6f858aeb408612eab5e658e637c0c957
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-06 16:26:04 +00:00
Cristian Adam
5cc8abd8bd CMakePM: Add "Clear CMake Configuration" to context menu
Fixes: QTCREATORBUG-24658
Fixes: QTCREATORBUG-30771
Change-Id: I6429e861a77663513ed3243396bdd67042c11faf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-06 16:25:49 +00:00
Marco Bubke
4b38f462f3 QmlDesigner: Cleanup QScopedPointer
std::unique_ptr is a clear super set of QScopedPointer with the same
behavoir. There is Utils::UniqueObjectPtr too which prevents dangling
pointer if the parent is set.

Change-Id: I16c88f51b69f005445a079be494b44506271e53b
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-06 15:48:36 +00:00
Marcus Tillmanns
642ef026bd Lua: Add tests
Change-Id: Iac2a47498b9463d647ef131a908fd6b851295993
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-06 14:36:21 +00:00
Mahmoud Badri
688e697fc0 QmlDesigner: Add user 3D bundle to content library
Fixes: QDS-12391
Change-Id: Ia078e62274277774949b0fc6a679c17ddbf91968
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-06 12:45:23 +00:00
Teea Poldsam
5201e51d98 Doc: Fix language in 3D view doc
Fixes: QDS-12701
Change-Id: Iae97930bb671fcc9f9b2a7e1cf8a6e2ab60ee3c1
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-05-06 10:30:24 +00:00
Marcus Tillmanns
81bc72c8a0 Lua: Cleanup
Moves LuaEngine creation into initialize()
Removes uneccessary PluginLoader class

Change-Id: I9eddbe4d0cba7ba3c7c1ce825ec18845de7d4654
Reviewed-by: hjk <hjk@qt.io>
2024-05-06 10:11:19 +00:00
Tim Jenssen
4279bdb31c QmlDesigner: fix crash at shutdown
Found at sentry https://the-qt-company-00.sentry.io/issues/4729592969

Pick-to: qds/4.5
Change-Id: I3e4903eebf5d328361a04f276659bd143eed0925
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-06 10:10:48 +00:00
Cristian Adam
6f8621e967 GitHub/Coin: Update LLVM to version 18.1.5
Change-Id: Icf0359e934943508ecd4d96b02ab1ca22ae5a9af
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-06 09:57: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
3249b106e5 Make it possible to add wizards paths via plugin meta data
That makes it easy with Lua plugins, and is useful on the C++ side as
well.

Change-Id: I660956bed47e4c1e27a001ad8999d6701cda86ee
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-06 09:46:29 +00:00
Cristian Adam
6656204b1e App: Use 'fusion' style only on fractional dpi on Windows
On 200% on 4k screens there is no reason to use the 'fusion' style since
the 'vista' native one works perfectly fine.

Task-number: QTCREATORBUG-16095
Change-Id: I1ffd02891aa5ef30c0172edd949d63d4270400c4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-05-06 09:27:43 +00:00
Teea Poldsam
61d936af89 Doc: Update Reacting to External Events
Fixes: QDS-11507
Change-Id: Id6ba8895ee4141127feb199c7db05c26dcc9473d
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-06 09:05:14 +00:00
Marcus Tillmanns
70dba4977f ClangTools: Remove unused variable
Change-Id: Ieff874cb6db24714a5a62fd3f59ea5d69c9358a8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-06 08:45:02 +00:00
Eike Ziller
ca3646daba C++: Do not freeze Qt Creator while checking file sizes
Before actually indexing files, the C++ model checks the files against a
file size limit (if set, which is the default).

Do not iterate over all files and check their size in the main thread.
If the files are on a device, this operation is not fast. Move the
filtering to the parsing thread itself.

Change-Id: I2202cc44c28f38159ca593db2399dde30f95f9bd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-06 08:42:45 +00:00
Leena Miettinen
effb365ab3 Doc: Rewrite info about requiring Xcode
You can also use Qt Creator on macOS without Xcode.

Change-Id: Id896980c15692956e83e74cc96b36b764e931cd8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-06 07:00:31 +00:00
Eike Ziller
a79f02ca4a Merge remote-tracking branch 'origin/13.0'
Change-Id: I77d3656aec10063a90095d5299b85304692d8b32
2024-05-06 08:14:24 +02:00
Marcus Tillmanns
a8d6dde8e3 Lua: Change Process to directly use Async module
Change-Id: Ie91a308d55b06f35b2f2114a46b347d83e779db2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-06 05:59:46 +00:00
Eike Ziller
bd99669503 QML: Add an "external" editor for opening .ui.qml files in Design Studio
Using the logic from the landing page in design mode.

Users can select Qt Design Studio from the Open With... menu, or even
set it as the default editor in Preferences > Environment > MIME Types,
"application/x-qt.ui+qml"

Task-number: QTCREATORBUG-30754
Change-Id: Idd4e688f722dcf38735db7c1b9b31af02caeb045
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-06 05:57:43 +00:00
Marcus Tillmanns
6ecd0f4023 Lua: Change fetch module access to async
Change-Id: I32bd760e347e2bd4465bd028e31fb3c4ff220aa5
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-06 05:43:22 +00:00
Marcus Tillmanns
d76082da59 Lua: Make FilePath:searchInPath async
Change-Id: Ida94856c26bab38d95753fb4d5475d57e3315212
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-06 05:38:05 +00:00
Jarek Kobus
e2612705b1 Android: Hide AndroidSdkManagerDialog
Provide executeAndroidSdkManagerDialog() function instead.

Change-Id: If7033ce797710f4dfbb7df0630962316b20c8a12
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-05 19:59:17 +00:00
Jarek Kobus
1de932437a Android: Hide QDialogButtonBox inside cpp
Change-Id: I0f10933884d3a95e774defe9b1f5125a5b1eee39
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-05 19:58:55 +00:00
Jarek Kobus
f5511bcd26 Android: Hide OptionsDialog inside cpp file
Change-Id: I26cacdd743b51d57e154cb0dd454b8cdf07cb153
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-05 19:58:47 +00:00
Jarek Kobus
c66e7556cf Android: Rename AndroidSdkManager{Widget -> Dialog}
Do some small cleanups.

Change-Id: Iec6c77cb0a33ebdfcd72c3751cb1fd44ab3ea078
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-05 19:58:38 +00:00
Jarek Kobus
679a51d12b Android: Create and execute AndroidSdkManagerWidget on demand
There is no need to always instantiate it inside
AndroidSettingsWidget.

Force data refresh on model construction.

Change-Id: I1adcd933e8684df9819d3dbd9cef2d615cff84a8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-05 19:58:29 +00:00
Aleksei German
09dcb1d730 QmlDesigner: Enable MCU Gradients in ColorEditor
Specifics using ColorEditor should be able to use new MCUs-specific property

Task-number: QDS-12691
Change-Id: If4d6b1241744ccbc7a9df8b7752ce4ab40502d43
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-03 16:15:56 +00:00
Aleksei German
77827660e1 QmlDesigner: Bump MCUs metadata
Task-number: QDS-11588
Change-Id: Ib1e5212406a856f32611d0a43d603e7c31a605c0
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-03 16:15:10 +00:00
Jarek Kobus
f62dea66f6 Android: Simplify parsing argument details
No need to call split() for the output - instead,
just look for the index of "Common Arguments:" and the
following newline.

Change-Id: I008adeb1a8c39b0e3c0dd2364566396bf0235511
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-03 15:52:20 +00:00
Alessandro Portale
edde770676 Android: Use less Grid features in AndroidSdkManagerWidget
Grid is only needed for the empty space in the upper right. Remove usage
of Spans.

Change-Id: Ib612589f3d19ee659af63926a13adc1e9ddbde7d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-03 15:49:44 +00:00
Alessandro Portale
18e12d4fe6 Android: Use LayoutBuilder for JLSSettingsWidget
Change-Id: Ied43a275d142da44fedb31e52bb1b441b21df3d5
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-03 15:48:46 +00:00
Alessandro Portale
00654cd4bd Android: Log the actual Process CommandLine in sdkManagerCommand
No need for the temporary one.

Change-Id: I810e795907f4a10e8ea1041bbbd89591dae3d3ca
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-03 15:48:34 +00:00
Jarek Kobus
8b87f8f0b7 Android: Pass const reference instead of a copy
Change-Id: I5058478c99b6316c836003239490c606ca0efb4b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-03 15:37:07 +00:00
Jarek Kobus
d356257bd6 Android: Run Process asynchronously from the main thread
Instead of running it blocking from a separate thread.

Change-Id: Ia971395faf7d34062ab4bcfa91082c0bf77cdccf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-03 15:29:29 +00:00
Jarek Kobus
5af69018f6 Android: Make parseCommonArguments() static
Change-Id: If1d840ac589131e58302eb1073b37a0feac99448
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-03 15:07:17 +00:00
Jarek Kobus
bb5cdfeb4c Android: Do some cleanup
Cleanup after employing task tree...

Change-Id: I79ffa385886b0a635a5fdfdbc496dcf6b042aa71
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-03 15:06:55 +00:00
Leena Miettinen
74994b435d Doc: Turn "Connecting Bare Metal Devices" into how-tos and reference
Task-number: QTCREATORBUG-29361
Change-Id: Ia0d93029367ae0d24278323d6c36030d1b167177
Reviewed-by: hjk <hjk@qt.io>
2024-05-03 14:25:16 +00:00
Christian Kandeler
732f37685c Update qbs submodule to HEAD of 2.3 branch
Change-Id: Ib3182e394222e4323982983b557cabbc60e1c0d8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
v13.0.1
2024-05-03 14:11:14 +00:00
Jarek Kobus
5b7dbf129d Android: Reuse recipes
Change-Id: I9b4a0fdc793a5eb2ea80be38f1a48b51a6bdeeb1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-03 14:03:05 +00:00
Leena Miettinen
f0ea3a0db5 Doc: Update the Android docs
- Turn "Connecting Android Devices" into how-to and reference
  topics.
- Update info on Qt for Android requirements.
- Update screenshots.
- Remove the "Mobile Platforms" topic and move some info to
  the overview.

Task-number: QTCREATORBUG-29361
Change-Id: Idd4dd64dc869cdb6b42efe3c969029684832ea5e
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-05-03 13:43:33 +00:00
Leena Miettinen
2f5057579e Doc: Turn "Connecting iOS Devices" into how-to and reference topics
Task-number: QTCREATORBUG-29361
Change-Id: I68fd249e702e2c262182b12c032a0e8325781eff
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-03 13:43:23 +00:00
Pranta Dastider
c985be4516 QmlDesigner: Update the supported image list in the QDS doc
This patch update the list of supported image formats
in the documentation of Qt Design Studio.

Fixes: QDS-12688
Change-Id: I9280eeb5e8d37e1d51ef5c6bcb2917d81bdede80
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-03 13:37:21 +00:00