Commit Graph

72811 Commits

Author SHA1 Message Date
hjk
0db551bfe7 QbsProjectManager: Hide plugin class definition in .cpp
Change-Id: I06944d633950ca5f6a81775ee3aede92796d8458
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-16 07:04:42 +00:00
hjk
446d79ad67 CMake: Split big plugin tests into smaller pieces
... which can then live closer to the tested code.

Change-Id: Icd975a76424ea2258c1bb93afdbaabdf1959340a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 17:04:37 +00:00
Mahmoud Badri
7dd789fab4 EffectMaker: Enable effect animation by default
Fixes: QDS-11609
Change-Id: I143a91cbc6c16f9e2a613e2cf56199820d40dd66
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-01-15 16:02:16 +00:00
Henning Gruendl
ae28fb67b5 QmlDesigner: Fix all changed signals get skipped
Fix "positionChanged" signal getting skipped when creating the list of
potential signal connections.

Task-number: QDS-11625
Change-Id: Ic0e3e7170044c635e83bc22ac1fc82c92102f584
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-01-15 15:23:35 +00:00
Henning Gruendl
afdf82a6c1 QmlDesigner: Add "on" to signal handler
Fix missing "on" for signal handlers generated via the context menu.

Task-number: QDS-11626
Change-Id: Ide32bfdddf4ee16e650e0adac9fbb3fda9694f3b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-15 15:23:13 +00:00
hjk
e0dae4d0b3 Perforce: Hide plugin class definition in .cpp
Change-Id: I6ae58a937b069ccc6a9b9f411bc42178f57133e6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-15 15:10:38 +00:00
hjk
3206876c03 Mercurial: Hide plugin class definion in .cpp
Change-Id: I027e058eb555a3b4ccc06eaa11c8e0ecf38f51e2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-01-15 15:08:50 +00:00
Marcus Tillmanns
06658d981c Utils: Fix (Q)Process::interrupt
Since switching to a QProcess based implementation a different
code path is used to interrupt processes (QProcessImpl::sendControlSignal, instead of ProcessLauncherImpl::sendControlSignal).

The QProcess path still used outdated ProcessHelper::interruptProcess.

This patch removes the old path and replaces it with the correct
"ProcessHelper::interruptPid" for QProcess based processes.

This also fixes GdbEngine::interruptInferior2 which could not interrupt
processes during "Attach to running server"

Change-Id: I9e1917100acf89c07cab0d9c687e57bb555d9d83
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 15:04:37 +00:00
Cristian Adam
2be9a658ad PE: Make default build directory template relative to src dir
Qt Creator is using the following scheme to generate a build directory:
"../%{JS: Util.asciify("build-%{Project:Name}-%{Kit:FileSystemName}-%
{BuildConfig:Name}")}"

This implies that for docker devices the parent directory for the
project needs to mounted in order to have write access rights.

This is usually not the case and docker fails to configure projects.

Changing the template to "./build/%{JS: Util.asciify(%
{Kit:FileSystemName}-%{BuildConfig:Name}")}" makes sure that the build
directory is created
into a directory that has write access for docker.

Fixes: QTCREATORBUG-29972
Change-Id: I4839d76bf272ed7e59c60446636e4a394a0dea24
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-15 14:46:47 +00:00
hjk
5f44e54623 Core: Remove some unused #includes
Change-Id: I35018a6cc94444d00cc62a0934482d98969c7028
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-15 14:44:57 +00:00
Jarek Kobus
9df6fadf2e GenericLinuxDeviceTester: Reuse TaskTreeRunner
Change-Id: I86b7dcb8ef9a27d338dd0a4ce585c223bf90665f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-15 14:36:57 +00:00
Jarek Kobus
e4f5a0f50b SyntaxHighlighterRunner: Delete private from the right thread
Before we were deleting the SyntaxHighlighterRunnerPrivate
from the caller thread. However, in case of
ThreadedSyntaxHighlighterRunner the private objects
lives in m_thread thread, so delete it from there.

Change-Id: I4e6d57ef1840a9d34ce02f2bb4423e9e47550f4d
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-01-15 14:28:00 +00:00
Jarek Kobus
89e446fb4d ClangTool: Pass AnalyzeUnit to clang setup handler
Change-Id: I4cfbe5c241fcf8d42e5ad597db1dd84bff439ec4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-15 14:16:18 +00:00
hjk
27471f6c55 LanguageClient: Decouple plugin and LanguageClientManager a bit
Change-Id: I052156bbc52838e61eb2782af7b48e308eef4a3a
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-15 13:55:41 +00:00
Jarek Kobus
9d59b790ae McuSupport: Fix lambda
Change-Id: Ic29580c7b3108118dbf4f96fdebe13918f0b98ae
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 13:37:57 +00:00
Jarek Kobus
cbfd1f3371 McuSupport: Make some functions static in cpp
Change-Id: I08d7aac24edf98a7beb262c7146d6ff583dc4694
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 13:37:51 +00:00
hjk
eddb962bc9 McuSupport: Hide plugin class definition in .cpp file
The plugin class is not meant to be accessed from other plugin items
nowadays.

Change-Id: Iffb295cd80bd4dd8799c8a1329dd016bf7dd167e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 13:31:11 +00:00
hjk
1307fe5eef McuSupport: Move askUserAboutMcuSupportKitsUpgrade closer to its user
Change-Id: I41f0eac4ce37db682c0d9be06acf84691eb225c0
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-15 13:13:41 +00:00
Jarek Kobus
38968c4dbe Designer: Compile fix
Amends d5938cf2bc

Change-Id: I2c48c0807362fb6963cb6f11402af6e6dea1d53b
Reviewed-by: hjk <hjk@qt.io>
2024-01-15 13:12:56 +00:00
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
Karim Abdelrahman
94125f9416 QmlDesigner: Disable MCU unsupported workspace and views
This patch disable unsupported 3D workspace and some views
from view menu and toolbar combobox

Task-number: QDS-10336
Change-Id: Ic97baead8029a93ae95707b9349f81f02adb6335
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-15 12:43:38 +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
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
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