Commit Graph

85780 Commits

Author SHA1 Message Date
David Schulz
fb2fd513be Python: disable generateKit button after clicking
The button should only be enabled if no kit can be associated with the
currently selected python interpreter.

Change-Id: I0357bf999c8abd2bc11b4ac5b2e79a10a0d94f01
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-16 08:52:04 +00:00
David Schulz
d67379481c Python: optimize venv and pip checks
Checking for the venv and pip module can take some time. Since this is
done now whenever the kits are validated this has performance
implications for multiple actions. For example showing the target
selector wizard page or opening/switching sessions.

Use a cache to reduce the number of python processes started to check
the existence of the modules, and if the module can be found store that
info in a persistent store to avoid checking it again after a restart.

Change-Id: Ib899da0e6b2da28fbee2b5baff7f923e4595260a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-16 08:51:47 +00:00
Eike Ziller
fd6e45c407 Doc: Fix supported Linux platform
Qt 6.6 officially no longer supports Ubuntu 20.04. Even though it mostly
works, some parts like openssl (for https connections) do not work (out
of the box)

Change-Id: I5133e94048d3014475678ab849a61ccc62331df4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-01-16 08:24:13 +00:00
Eike Ziller
699b91d371 iOS: Fix small issues when connecting/disconnecting devices
- Make sure that the updating TaskTree is deleted on quitting QtC by
  maintaining a hash of running updates per device
- If an update is triggered for a device while another is running,
  cancel the first one
- If the device is disconnected while an update is running, cancel the
  update. Otherwise this leads to wrong connection information in QtC

Change-Id: Ia76921d01b47229da1b5decd6b890303f4acfbf5
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-16 08:00:00 +00:00
David Schulz
e70b99c7da TextEditor: avoid autoIndent when using default TextIndenter
Most programming languages use indentation to group stuff. So if we have
no special language support for a text file it is useful to start a
newline on the same indent depth as the previous line. But if we trigger
an explicit reindent (default ctrl+i) we usually don't want to change
the indentation if we don't know exactly where it should end up. This
also applies to refactoring changes, for example from the lsp.

Change-Id: I8268dc88cbceddfc7112757fd7d2fef940ab9a39
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-01-16 07:29:16 +00:00
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
f8e9592824 QmlDesigner: Prevent saving an effect with invalid name using keyboard
Fixes: QDS-11605
Change-Id: Ice1cdc715c24534d045491ede3dbfc0c3e0cbe59
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-15 16:02: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
Vikas Pachdha
8d5b3b4ad6 Docs: Update figma qt bridge plugin docs
Update screenshots
Remove stale docs
Document start screen and page organization

Task-number: QDS-11614
Change-Id: I16160ffae415a258e1250d6529f976e9dbe0e376
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-01-15 15:13:46 +00:00
Vikas Pachdha
65b0d04558 Docs: Document page organization for Sketch
Task-number: QDS-11614
Change-Id: I22e5e7668ae1617f459dce1549847ab163265b61
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-01-15 15:13:38 +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
Leena Miettinen
ab81f02b13 Doc: Describe the Generate Kit option for Python interpreters
Task-number: QTCREATORBUG-30209
Change-Id: I5eec3797d226109eccf4dde5f32b21076c18f2b4
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-15 13:20:44 +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
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