Commit Graph

85691 Commits

Author SHA1 Message Date
Jarek Kobus
f1ee608ccc ClangToolRunner: Use explicit lambda captures
Change-Id: If81a9e24e3a9bf37f8b0a668d440eea35fe32025
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-15 12:51:53 +00:00
hjk
5a5942f47f Designer: Rename formeditorplugin.cpp to designerplugin.cpp
Change-Id: Ic8df98e64b56448ae70cab617693d68062f685d2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 12:50:59 +00:00
hjk
d5938cf2bc Designer: Hide plugin class definition in .cpp
Change-Id: I722fa069e5bd00b3f5f2cbfbe38c0a2e0247dcb5
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-15 12:50:49 +00:00
hjk
34fd4e8ebf Marketplace: Rename marketplaceplugin.h to marketplaceplugin.cpp
And clean up a bit.

Change-Id: I227c86c2f5f8d3e41d66e4cc85f55319bf031d39
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 12:49:43 +00:00
Leena Miettinen
ac437147e0 Doc: Describe installing YAML and JSON language servers
Qt Creator offers to install them if it finds the NPM package
manager on the computer.

Task-number: QTCREATORBUG-30209
Change-Id: I2ab147dfae6a639b2b9f21acabd6f4d2ec339ac6
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-15 12:29:07 +00:00
Christian Stenger
e8f05a0bfe Tasking: Fix windows build
Amends 7e7318d47d.

Change-Id: Ia0ee5d156bc1a79ab47819876e54e9e16b70b0bc
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 12:14:00 +00:00
hjk
aefd28ccaa AppMan: Partially FilePath-ify utility function
Change-Id: I3d90b8cf3b3bdd93e6ce5107f73a39037bf58346
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2024-01-15 12:05:06 +00:00
Jarek Kobus
2571de911f DocumentClangToolRunner: Reuse TaskTreeRunner
Change-Id: I6db7f83de1bcc22d668e671ea006830c470c9160
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-15 12:02:04 +00:00
hjk
bd0ef97580 Git: Hide plugin class definition in .cpp
... and move tests into a separate class.

Change-Id: Ic9e4ad063b132cf51b1433b93bf61262540ba005
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-15 11:48:30 +00:00
Jarek Kobus
5f200ed5c7 AutoTest: Pass a list of results inside testParseResultsReady()
This limits the number of signals being sent.

Change-Id: Ie4b0661571a9d1bbd5708e33e21e0911e7a9fcbd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-15 11:28:18 +00:00
David Schulz
3acfda421f Fix link to the GPL Exception in README.md
Change-Id: Icf660ed8b39501dba93bdcd6bae1e848ae7e9ef3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-15 11:25:03 +00:00
Mathias Hasselmann
0496f20ae2 Markdown: Open external links from text editor
Fixes: QTCREATORBUG-30119
Change-Id: I77ab4b8e030db32b08ed3a8a39562b1943a65dcc
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-15 11:15:32 +00:00
Mathias Hasselmann
8dde6b0a67 Markdown: Follow local anchor links in text editor
Github and others turn `[^footnote]` into anchor links to the next
occurrence of `[^footnote]: Description`.

Task-number: QTCREATORBUG-30119
Change-Id: Ieebcad8ef58ccd8c7faa6aa83a165ce3f7ea1a01
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-15 11:15:16 +00:00
Mathias Hasselmann
444da70fcf Markdown: Open links to local files in text editor
Task-number: QTCREATORBUG-30119
Change-Id: I942ffcec7c84945c4246b31c23d8f7913642f649
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-15 11:13:54 +00:00
Jarek Kobus
74d17600d8 ValgrindProcess: Reuse TaskTreeRunner
Change-Id: Iabe4894562d9a18609cb13ead922dd648fc8e259
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 10:20:52 +00:00
Jarek Kobus
79395e9df4 DataExchange example: Reuse TaskTreeRunner
Change-Id: I9075dca4c121f0a6041087bc8407569308135614
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-15 10:20:40 +00:00
Jarek Kobus
f63d31daa2 Demo example: Reuse TaskTreeRunner
Change-Id: Ia083a2317647c26886b9f483e5ae411e1e51c983
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 10:17:07 +00:00
Jarek Kobus
7c3e8b420e ImageScaling example: Reuse TaskTreeRunner
Change-Id: I727a961bcfca20ebc0584b1ddeeaa412aff63335
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 10:16:29 +00:00
Jarek Kobus
2a1553bb9a BranchModel: Reuse TaskTreeRunner
Change-Id: Idce8e4463e55b9361d85f460a44b7302bf20170f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-15 10:16:02 +00:00
Jarek Kobus
e0c6ca656c Slog2InfoRunner: Reuse TaskTreeRunner
Change-Id: Iec788b8c265feb1b7a8fa49e633ea9e62681e583
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 10:12:14 +00:00
hjk
892e7c0f3a Git: Separate internal plugin access API from plugin class
Plan is to hide the plugin class definition to the .cpp later.

Change-Id: I27f6d2dd23adb4f3ab47d99b0626956889d2750f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-15 10:08:10 +00:00
hjk
4434b09d49 EmacsKeys: Hide plugin class in .cpp
Change-Id: I5b2bb608743fad30505898bbbf0699db84866c3c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 10:07:25 +00:00
Jarek Kobus
02be4ac613 QnxDeployQtLibrariesDialog: Reuse TaskTreeRunner
Change-Id: Ic64bd6821991ee594e48b4fa325de262a9764784
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-15 10:00:41 +00:00
Jarek Kobus
bd83ea8b8c AutoTest: Use LoopRepeat for test scanner
In this way we don't construct a giant recipe
(~7000 tasks for Creator project) but simply repeat
the task execution many times.

Change-Id: I06758e2afa721f73e28adb42e6fccee0f955e01f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-15 09:37:02 +00:00
hjk
f3d11bf0b8 Ios: Hide plugin class in .cpp
Change-Id: I10577ed877c6038ffd714a1a414ed8ba7ec801ee
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 09:32:53 +00:00
hjk
1165e078fe GitLab: Hide plugin class definition in .cpp
Change-Id: I362bcbd09ef4694f0478c8982ea627cb9d8c310b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 09:32:31 +00:00
hjk
b52368b0de Help: Hide plugin class definition in .cpp
Change-Id: I02a96c53131e1371d7abc3ac3bd471feeec46276
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 09:06:14 +00:00
hjk
68f67d5a1a Debugger: Move plugin class definition to .cpp
Change-Id: I82327b20fb3bd970fe66b43228ca2f014c877f12
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 09:06:08 +00:00
David Schulz
640b4d530c Core: compress application icon updates
The current code updates the application icon for every task added to
the progressmanager. There are cases were we add a lot of tasks in one
go, for example when receiving diagnostics from the code model. This
might not even change the application icon (since it only updates for
errors), but we never the less create a new icon and send it to the os.

Optimization 1: Only trigger an update if the text differs from the
previous icon detail text.

Optimization 2: Do not directly update the icon but start a timer to
collect multiple updates and update the icon when the event loop is re-
entered.

This only affects Windows and Mac since the progressmanager_x11
implementation does not update the application icon.

Change-Id: I80cbb6f2520a83e79e2dba1b4079ab77fb7bf453
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-15 09:04:43 +00:00
The Qt Project
d9557e5d55 Merge "Merge remote-tracking branch 'origin/12.0'" 2024-01-15 08:46:40 +00:00
Eike Ziller
a819a2bd9f Merge remote-tracking branch 'origin/12.0'
Change-Id: I62eb6d73b3ed59d0dd9760fc1921e353c993c166
2024-01-15 09:36:58 +01:00
Jarek Kobus
9c85062432 BranchView: Reuse TaskTreeRunner
Change-Id: I86b7d799c7dc5cd941e1159caff8e630ad0fdd46
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-15 08:36:55 +00:00
Jarek Kobus
e4866a1667 NavigationWidget: Avoid using keys()
Instead, iterate directly over the container.

Change-Id: I393ac1d42b08b7fcf2052ba601a550f28ad84c69
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-15 08:31:46 +00:00
Jarek Kobus
b653dc3e80 NavigationWidget: Move statics outside of class
Change-Id: Ibbdb867b52eff75000fbdbc5e15694ab5b5f5646
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-15 08:31:38 +00:00
Jarek Kobus
d8663701ab TaskTreeRunner: Introduce aboutToStart(TaskTree *) signal
It enables the access to the internal TaskTree.
Emitted by TaskTreeRunner::start(), after the task tree
is instantiated and before it is started.

The lifetime of the passed task tree is controlled by the
TaskTreeRunner and is limited to the one particular execution.
Don't store pointer to the passed task tree.
If unvoidable, store the QPointer instead.

It may be used e.g. for connecting to the TaskProgress.

Change-Id: If0af11eb136c9cbff2e4c6e91f8b18a114880f74
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 08:30:51 +00:00
Jarek Kobus
781ca08207 FileStreamer: Reuse TaskTreeRunner
Change-Id: I3ea6f07f18fa8a326325d41bf771b85e7e8165ee
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 08:30:37 +00:00
Jarek Kobus
7e7318d47d TaskTree: Introduce TaskTreeRunner
This addresses the 30th point in the bugreport below.

Task-number: QTCREATORBUG-28741
Change-Id: Ifa157311b3aae413b19075d36e11c75e6066881d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 08:30:28 +00:00
Jarek Kobus
14f6954026 TaskTree: Disconnect from task's done() signal on destruction
If a task or task's adapter sends done() signal directly
from the destructor (which isn't really desired),
ensure we disconnect from this signal beforehand,
otherwise this may start invoking normal handling of task done()
and interfere with the destruction.

Fix NetworkQuery d'tor.

Add a test for it.

Add some TODO items.

Fixes: QTCREATORBUG-30204
Change-Id: I56a34d0f00c961c15bd1bcffef45520a4be5bce0
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 08:29:57 +00:00
hjk
0dd9d9a327 Core: Move VcsManager test class definition closer to tested code
Change-Id: Ibc97d4874eca871d7d283dc97bf61235e9ea5539
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-15 07:57:26 +00:00
Eike Ziller
28a8d6949b iOS: Implement deployment via devicectl
For devices that that supports. The goal is that iostool will be
unneeded in the end for these.

Call `devicectl device install app` with the right device id and bundle
path and parse its output.

This doesn't use our custom provisioning check, but relies solely on the
errors that are returned by devicectl.

Task-number: QTCREATORBUG-29682
Change-Id: Ibae0908841004a12e1fc91b154bedea4b37db053
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2024-01-15 07:31:39 +00:00
Eike Ziller
1a29b9e36c iOS: Add a "handler" property for the tool that is used for device ops
To the IosDevice. So other parts of the code know if the device can (and
should) be handled via devicectl instead of iostool.

Change-Id: I700bd1528fad505c3f4b6442d73e24b09ceba68a
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2024-01-15 07:31:29 +00:00
Eike Ziller
b2eac9acf8 iOS: Use layout builder for details in device preference widget
In Preferences > Devices > Devices > Type Specific.
This makes it fit the style of other devices, and automatically makes it
possible to select and copy text from it.

Change-Id: I637858a939ada261504970611ffdb7eccf003c1c
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2024-01-15 07:30:56 +00:00
Jarek Kobus
34b01f7530 BranchView: Return recipe instead of TaskTree
Change-Id: I51c6c4f7d03f264e69c637f081017d88a5ac027b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-13 19:49:15 +00:00
Jarek Kobus
1bf2c447d3 Process: Add a test for starting unexisting process
With different combinations of processImpl and eventLoopMode.

Change-Id: I7a066741f46bc51c1d670527e03358cd77d6b29e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-13 13:38:59 +00:00
Jarek Kobus
7802e475ce Process: Fix EventLoopMode::On
Queue the call to start() so that it's executed after the nested
event loop is started, otherwise it fails on Windows with QProcessImpl.

Fixes: QTCREATORBUG-30066
Change-Id: Ibb17ef0f668f52c05b26a521e18c94e637992ba5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-01-13 13:38:49 +00:00
Jarek Kobus
85a27b3ddd TaskTree: Implement progress reporting for LoopRepeat
When a number of repeats is known in advance,
make the progress reporting aware of it.

Add a test for it.

Change-Id: I676a4aa9eb469cfe40a2729d231c706dff3ca07c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-13 03:02:41 +00:00
Jarek Kobus
ae57346f30 TrafficLight: Undecorate strings in order to compile against Qt 6.2
Change-Id: Iac3a65cca5b07f405fb64fe4cefc7cdf3d509759
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-13 02:41:23 +00:00
Jarek Kobus
420653d3eb PluginDialog: Compile fix against Qt 6.2
Change-Id: I49a2990094d9d49f9a70f9782cfb53a3181a31dc
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-13 02:40:25 +00:00
Alessandro Portale
8a4b3c0891 Icons Svg: Bump Inkscape version from 1.1.1 to 1.3.2
Let it have its way of partially rewriting the document.

Change-Id: I4ea3d6a5ae271356fe111bd5f5e9591d0f75b532
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-01-12 23:29:15 +00:00
Jarek Kobus
8e84809feb TaskTree: Add a special field for Repeat case
If the number of iterations is known in advance it may
help in calculation of total task numbers for progress
reporting purposes.

Change-Id: Ie36de67a4f3271820aca539afe0816974773a152
Reviewed-by: hjk <hjk@qt.io>
2024-01-12 18:16:09 +00:00