Commit Graph

88653 Commits

Author SHA1 Message Date
David Schulz
1c2fbaa846 Debugger: track variable fetch time in dumper tests for cdb
Change-Id: I85073edc2e3660e2bfaff32f53e4a2f98f03c514
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 09:22:59 +00:00
David Schulz
5c23ab8c2d Cdbbridge: report dumptime of fetchVariables
Change-Id: I866fd5dbf547a4d6ec1ab9806080419735131d19
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 09:22:54 +00:00
Marcus Tillmanns
b0354eaf16 Utils: Add gzip support to unarchiver
Change-Id: I223d97169cd9e1850d221370d8dd16b770918e20
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 08:44:53 +00:00
Marcus Tillmanns
4bbbf29e7d Lua: Remove wizard meta files
We removed the wizard stuff from lua, but I forgot to remove the documentation

Change-Id: I9d96d1d38ed4090c51361ee1e37fedb5a7358870
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 08:44:23 +00:00
Christian Stenger
b87e3a53db Fix json templates
Amends 6cd7aed8eb.

Change-Id: Ia8369c69530854488007ef28c191fdfbca4c082c
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 08:22:46 +00:00
The Qt Project
294af2ec29 Merge "Merge remote-tracking branch 'origin/13.0'" 2024-05-31 07:42:04 +00:00
Christian Kandeler
e1e4c58e10 Fix qbs build
Amends 17f497c719.

Change-Id: Ia7d6c22177f78fe13d5c0a57a2ac85b52ff1b132
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-31 07:10:23 +00:00
Leena Miettinen
6cd7aed8eb Add long descriptions to some plugins
Edited the short descriptions to answer the question
"What can I do with this extension" to help users decide
whether they need it.

In long descriptions, tell users what else they need to
be able to use the plugin.

Change-Id: Iefce7505b61fc77cf38cc915f1f7dbd25c9cb570
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-31 06:42:53 +00:00
Christian Stenger
2ebc4525f5 ExtensionManager: Fix qbs build
Amends 1a1d938170.

Change-Id: Ie978802b41502285e75b48827cfc2dcf819b1fcd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-31 06:41:24 +00:00
Marcus Tillmanns
17f497c719 LuaLS: Rename LuaLSP to LuaLS
Its a "(L)anguage(S)erver", not a (P)rotocol

Change-Id: I2e0637c21bfa8b55b587fede6d7597ae917ccdae
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 06:38:00 +00:00
Christian Kandeler
f3110327ba ProjectExplorer: Handle files with no line number in GCC output parser
This necessitated changes in the LdParser, as it turned out that a lot of
linker messages were not actually caught there, but by accident in the
GccParser (mostly by a now-superfluous regex).
Note that the LdParser is still pretty awful; we just did the minimum
that was necessary to keep the tests passing.

Fixes: QTCREATORBUG-30806
Change-Id: I97ef08ca2bb8990841a95621f07368e879734856
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 06:31:15 +00:00
Eike Ziller
d29eebf9de Merge remote-tracking branch 'origin/13.0'
Change-Id: I51f8df79cf2b0f853e2951ed35b2a80369078411
2024-05-31 08:25:10 +02:00
Marcus Tillmanns
1c6ea674d7 Lua: Add binding for FilePathAspect::setValue
Change-Id: Ia0c40f35c1504b72f56cb2d2b6dcdc721b1c9d7b
Reviewed-by: hjk <hjk@qt.io>
2024-05-31 06:16:25 +00:00
hjk
42a66746e1 Lua: Rename some 'layout' bits to 'gui'
Change-Id: I1476cfe922c3d95c3c4309531bb4e063b18273e5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-31 06:15:17 +00:00
Christian Stenger
acb5a0a362 Axivion: Add possibility to add and remove configurations
Change-Id: I6748eef02e68de7714e94292826eb710b625efd3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-31 05:57:23 +00:00
Christian Stenger
d8e07f52ee Axivion: Reflect multi server on project settings
Change-Id: I289204fb67ae629f9fddf3c8fb0c8e4d29154e1b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-31 05:57:15 +00:00
Christian Stenger
5a906c3f6c Axivion: Change displaying server inside settings
Use a combo box instead former label layout to be able
to choose a server from a list of servers later on.

Change-Id: Iaca33e18fd32dd514144a44f23552152927f5bd4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-31 05:57:06 +00:00
Christian Stenger
de968e7ffe Cppcheck: Fix commandline usage
The parameter added as first additional parameter is not a
file path, but a string holding additional arguments.
Amends 26cfa86969.

Task-number: QTCREATORBUG-28586
Change-Id: I6808e491f59f7eda8a63c5c990a7cc9c084135b9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-31 05:35:29 +00:00
Christian Kandeler
73824ad1f2 ClangFormat: Fix qbs build
Prevent LLVM from smuggling -fno-rtti into the command line.

Change-Id: Idc428c8f7e4808233cdc3bcb25e46613573f59b4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-31 05:28:40 +00:00
Christian Stenger
f1277f6cf2 Lua: Add lua plugins to qbs build
Change-Id: I4c8428e64c5e322582742e686bf921ebea7df842
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-31 04:32:09 +00:00
Alessandro Portale
1a1d938170 ExtensionManager: Introduce extensions service response parser and model
This adds a parser for the JSON response of the extension rest API. The
data, combined with the PluginSpecs of local plugins, serve as data
model for the extension mode view.

A couple of "packs" are provided as test data.

Change-Id: I5ce961a9de9bf54ca745e5e5a5e584b1698e6ac6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-05-30 16:32:48 +00:00
Christian Stenger
fb2a1ecd37 Android: Fix build before Qt6.5
Change-Id: Ie2b674edcbd12a9c10ca1875d96da50e02914fe8
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-05-30 13:23:41 +00:00
Christian Stenger
fcadc9a2b2 Wizards: Provide mechanism to skip pages
Our wizard infrastructure makes it hard to dynamically remove
or add wizard pages on the fly while using the wizard.
So, instead of removing pages and re-adding them on need
just provide a way to skip pages.
Skipping pages is provided with this patch limited to
wizards which are known to be sub projects.
For now this is just a preparation as no wizard actively
sets the property for being a sub project or makes use
of this mechanism.

Change-Id: I3efd079ccb5be2203d2b17b3765d9f178998d5f4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-30 13:23:10 +00:00
Eike Ziller
81aed65406 Meson: Fix crash after adding first meson/ninja tools
- start Qt Creator without any meson or ninja tools registered
  (also not auto-detected)
- add meson and ninja in the settings and apply
- open kit settings and select a kit

This would crash, because the constructor of the meson
ToolKitAspectWidget saw that there was no tool registered and triggered
setting the default tool. Doing that in the widget constructor results
in an endless loop because changing the tool triggers an update of the
kit which triggers an update of the ToolKitAspectWidget which doesn't
exist yet (because the constructor didn't finish yet), so it would be
created again which results in the same situation and endless recursion.

Do not change the selected value in the widget constructor. This is the
same logic as for the CMakeKitAspect(Impl).

Fixes: QTCREATORBUG-30698
Change-Id: I35d56018d8f02a2716dfac763fa86d4426393172
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-30 13:14:34 +00:00
David Schulz
f00394b371 TextEditor: avoid setting a null cursor on select all
Change-Id: If7ccdf1e1d4846b279305e30d3a990754f942128
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-30 11:43:43 +00:00
Christian Kandeler
9bdf8329a0 CppEditor: Consider unexpanded token ranges when refactoring
When moving or deleting pieces of code, we are normally interested in
the actual content of the file in the respective locations, not in what
any macros present there will expand to.
This supersedes commit 76ae5780c4.

Fixes: QTCREATORBUG-10279
Change-Id: I0fb547b23244cd5875e80c019a3595f3f9c33d52
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-30 11:04:18 +00:00
Christian Kandeler
0947cc1999 CppEditor: Blacklist another gcc-only option for clang tools
As per https://lists.qt-project.org/pipermail/qt-creator/2024-May/
009262.html.

Change-Id: Id8993f874c7bfc8d1cbdf03045a0f0f953d86ca4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-30 10:41:10 +00:00
Christian Stenger
876f131b84 Wizards: Allow showing and hiding for VCS elements
Preparation for being able to hide the VCS UI elements for
sub projects as they derive anything related from the parent
project.

Change-Id: Id0cc951f313335d022b3370b24f10abfd6f7532a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-30 10:35:28 +00:00
Alessandro Portale
e9e37a7be7 EffectComposer: Fix copyright year in plugin metadata
Change-Id: I52742b05170a003a9dcc08eb1522a9e65825c96e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-30 10:12:26 +00:00
Eike Ziller
62c555acd7 COIN/GitHub: Use Qt 6.7.1
Also update the PRECHECK to use Qt 6.7 provisioning, so we get a
job that tests the Qt Creator build with tests disabled too
(on Windows).

And remove the 32bit Windows sdktool+cdbextension+wininterrupt-only
build, which is no longer done for 14.0

Change-Id: I49e5348c83e4cdd22797df559c448f962e005f15
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-05-30 09:10:46 +00:00
Assam Boudjelthia
b82da570cd Android: support namespace in build.gradle
The use of "package" in AndroidManifest.xml has been deprecated
since AGP 7.4, and has been moved to build.gradle file instead,
set as "namespace". Qt Creator has been relying on the package
name being present in the manifest and projects not having that
will fail to deploy. This change adds support of that to Creator.

Task-number: QTBUG-106907
Change-Id: I04850a11c5840d5167f7a3d09ae76cd51dbe72ca
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-30 09:01:54 +00:00
Marcus Tillmanns
fbb2f70747 Utils: Implement StringListAspect::addToLayout
Change-Id: I48806e397a8fa51c9b31860645a16c242e789a3d
Reviewed-by: hjk <hjk@qt.io>
2024-05-30 08:51:06 +00:00
Artem Sokolovskii
01e0e43443 Core: Reopen last closed editor
The short-cut to reopen the last closed editor is not set by default
to allow users to set by themselves.

Change-Id: I1f57e34c3b1a30873fd550f5cb008e5640e6a1c5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-30 08:03:41 +00:00
hjk
c96f502c6c Lua: Robustify LayoutBuilder integration
"Executing"  'Row { "a", b, "c" }' with unquoted b  previously crashed.

Change-Id: Ifb505c1a836a6041b05911e322cad596c3969e03
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-30 06:43:14 +00:00
Christian Stenger
8a90428251 Wizards: Fix updating path chooser
Do not update the path chooser from the same slot where the path
chooser gets validated or we end up inside a soft assert of the
path chooser's (locked) guard.
Currently no harm as the project chooser is not used actively
and no page is declared as a sub project on this page yet.

Change-Id: I641bb7da55de5919c772b1fa29693f4fa75d4a7c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-30 05:07:16 +00:00
Artem Sokolovskii
c14845181d ClangFormat: Fix indentation in the middle of line
Before, indentation applies in the middle of the line if an electric
 character is typed.
Now it happens only if the character is typed at the line's end or start
 and if new line character was typed. It should reduce jumping while typing.

Fixes: QTCREATORBUG-30731
Change-Id: I018cb4a03af5e6450be2cd423cb29bd384048871
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-29 15:54:04 +00:00
Cristian Adam
968051eb72 CMakePM: Presets: Add ability to register a Debugger via "vendor" field
This adds "Debugger" as a dependency for the CMake Project Manager.

The "vendor" field of a configurePreset can look like:

```
      "vendor": {
        "qt.io/QtCreator/1.0": {
          "debugger": "C:/Qt/Tools/mingw1120_64/bin/gdb.exe"
          }
        }
      }
```

or with all the DebugItem details as:

```
      "vendor": {
        "qt.io/QtCreator/1.0": {
          "debugger": {
            "DisplayName": "GNU gdb 11.2.0 for MinGW 11.2.0 64-bit",
            "Abis": ["x86-windows-msys-pe-64bit"],
            "Binary": "C:/Qt/Tools/mingw1120_64/bin/gdb.exe",
            "EngineType": 1,
            "Version": "11.2.0"
          }
        }
      }
```

Fixes: QTCREATORBUG-30836
Change-Id: Ia89ff29ce5fad713ee8617477ec798bd86f2f811
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-29 15:47:10 +00:00
Leena Miettinen
73e8dfba44 Doc: Remove the "Add WebAssembly kits" topic
This now happens automatically.

Task-number: QTCREATORBUG-30604
Change-Id: I205f57127333297ac53ae7276a683ffd70b10519
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-29 15:02:18 +00:00
Alessandro Portale
b6bda47ff9 Debugger: Remove left-over, now unused variable
Change-Id: Ie7829e102f80deaf658a03e748a17ad126973111
Reviewed-by: hjk <hjk@qt.io>
2024-05-29 13:57:32 +00:00
hjk
efae651924 Utils: Introduce a convenience function creatorColor()
... forwarding to creatorTheme()->color(...)

Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-29 13:49:25 +00:00
Artem Sokolovskii
d41f15390f ClangFormat: Fix indentation after closing parenthesis
Indentation was incorrect when closing parenthesis
 was typed in the function and empty function is below.
Now it indents as expected, test case was added.

Fixes: QTCREATORBUG-29911
Change-Id: Ic1ccf8cecb0d5723e6ab1a77177d8161119f6a54
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-29 13:04:10 +00:00
Christian Stenger
b5dd1330e4 Wizards: Let wizard know its supported project types
Preparation for later to make sub projects aware of the projects
they may be added to.

Change-Id: I95630adca6f756377d939b6c3169ada2c5a93236
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-29 12:45:23 +00:00
Christian Stenger
26030bf0a8 Wizards: Only show error message if not empty
The path chooser may be invalid while initializing the page
and shortly display the empty message before becoming valid.
At the moment no harm, as the path chooser is not used actively.

Change-Id: I0c0701c05262e35f550b40dcb03329b6e2308587
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-29 12:01:58 +00:00
hjk
ded8cf3fdb Lua: Make Layout-derived classes directly show-able
Change-Id: I2bea8187626c239b5b2e9ddb32d291db97ddc9ac
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-29 11:52:43 +00:00
hjk
a1146cbef4 Utils: Fix two deprecation warnings
QSize actualSize(const QSize &size, Mode mode = Normal, State state = Off) const;
    QT_DEPRECATED_VERSION_X_6_0("Use actualSize(size) instead")
    QSize actualSize(QWindow *window, const QSize &size, Mode mode = Normal, State state = Off) const;

Change-Id: Idfe068c7734ac92551b51c323e2cfb3bc221590d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-29 10:37:12 +00:00
Cristian Adam
322944469f CMakePM: Add/remove CMake parameter for "Package manager auto Setup"
The CMake parameter is CMAKE_PROJECT_INCLUDE_BEFORE used in the "Initial
Configuration".

This commit will add or remove the above parameter in the "Initial
Configuration" list.

Previously, the parameter would have been added only on the first time.
Now with project CMake settings this is needed also for already
configured projects.

Change-Id: I7293032ef3e7e6e0ad0b51c68ef5fbe0cab48919
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-29 10:17:15 +00:00
Leena Miettinen
b4d345db2a Doc: Restructure "Building Applications for the Web"
Remove the requirements and link to Qt for WebAssembly docs.

Task-number: QTCREATORBUG-29361
Change-Id: I73b708953834fa0b239805c0ea10232c3fa440f5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-29 09:54:31 +00:00
Christian Stenger
62c1a6bee2 QmlProjectManager: Fix includes
Change-Id: I3368dc456dacc863a06821a614d3d40a2ac8000b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-29 09:24:17 +00:00
Christian Stenger
373ad2d9ba QmlPuppet: Fix build without Quick3D
Change-Id: I38bf66d61d3f40ecb2930290ee7966b653aea8a5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-29 09:14:45 +00:00
Alessandro Portale
8aa273a350 Android: Recover translations
One message was split into two. Easy to fix for us, messy for
translators.

Change-Id: I833d6f12caee2602c165a3d97d808458818fd0c8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-29 09:00:06 +00:00