Commit Graph

86167 Commits

Author SHA1 Message Date
David Schulz
fbe054116a Python: Avoid polluting global or virtual environments with pylsp
Install the language server into the Qt Creator resource directory
instead. Reuse the server for all interpreters with the same
version. This also reduces the amount of editor toolbars asking the user
to install a language server for a specific interpreter.

Change-Id: I48ef4ad30fe0097ee8d2b855b0f278e98be5ce57
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-13 11:26:16 +00:00
hjk
1200419059 ClangFormat: De-Q_OBJECT and de-pimpl ClangFormatConfigWidget
Somewhat tighter code.

Change-Id: I8fde17ac66d0b1e49eb6554800f0f40d8f214ee3
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2023-12-13 11:09:41 +00:00
Mahmoud Badri
82a0ae5caf QmlDesigner: Add 'save as' icon and update zoom and save icons
Change-Id: Id05dd67407dd8a4db0056caa94c61b459bd4ab23
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-12-13 09:38:31 +00:00
Cristian Adam
32c389a556 CMakePM: Do not reconfigure during build
On Windows upon a CMake file change and save during a build, the
reconfiguration would fail due to the inability to save the build.ninja
file.

Fixes: QTCREATORBUG-30048
Change-Id: I68bec70b0a95bc4256b736a1c4caf1b4d706e43b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-13 09:19:26 +00:00
Jarek Kobus
657a90ef52 CurveEditorView: Make lambda non-mutable
Change-Id: Ida58d407b3d234cd051fc21935457e7fc6bfa590
Reviewed-by: hjk <hjk@qt.io>
2023-12-13 09:06:08 +00:00
Serg Kryvonos
1865b1b989 'transform' algorithm compatibility to C++20
Change-Id: I3d2e756bb5bbc034b36fd74b2569f089949b898b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-13 08:46:51 +00:00
hjk
e17f0b6164 Core: Rename ActionBuilder::setContainer to addToContainer
An action/command can be used in several places.

Change-Id: Ifa26f64f7d200d93ada13f272de0fa833f886997
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-13 08:37:10 +00:00
hjk
5e2bc6f398 Terminal: Restrict shortcuts
Amends a0c05cabcc. Specifically Ctrl+Shift+T conflicts with
opening the type hiearchy pane when in a C++-editor.

Change-Id: Id4da738162ad9c90d6b45c4142a207ea22511d18
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-12-13 08:27:49 +00:00
Leena Miettinen
1cea4ea42e Doc: Hide links to topics not included into QDS Manual
Move a file to a creator-only folder and add conditions.

Change-Id: I8ebe71116f926dea10fa656ef17717b946ae80e2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-12-13 08:13:59 +00:00
Leena Miettinen
2e7634230e Doc: Turn "Sharing Project Settings" into a how-to topic
Change-Id: I9a2d4058acb93273fdb449e0e5e67abec0ae7a24
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-13 08:13:37 +00:00
hjk
72d5cc7d01 ClangFormat: Use ActionBuilder
Change-Id: Ia276db9928193781ab90d34db01447498f40f4d1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-13 07:58:13 +00:00
hjk
6e41548230 Help: Use ActionBuilder for part of the Help menu
Change-Id: I10ab89afc5005433395e5bf74a49979d90eb9e6c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-13 07:55:23 +00:00
Christian Stenger
e79ef5d66a Git: Fix missing include
Fixes building withi qbs and Qt6.2.

Change-Id: Ic87c81883286dbf96fa62ef3818af25001683737
Reviewed-by: hjk <hjk@qt.io>
2023-12-13 07:18:04 +00:00
Alessandro Portale
0d5ec992ab ExtensionManager: Remove left over testing code
Change-Id: I23c0d9981017eec7f7bc812853647bb812a84440
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-12 16:00:01 +00:00
hjk
3a8314f793 WebAssembly: Support emsdk path with spaces on Linux/macOS
The command passed to bash as argument needs to be quoted.

Task-number: QTCREATORBUG-29981
Change-Id: I0e91ab4c088f8cd4e5a2df82604ea86cf73369fc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-12-12 15:19:54 +00:00
Christian Kandeler
5e996ca11e ProjectExplorer: Do not use a fixed maximum width
... for the MiniProjectTargetSelector.
Instead, use a maximum width relative to the main window width,
similarly to what we did for the height in
ef00a7e28b.

Fixes: QTCREATORBUG-30038
Change-Id: If3de0460ea8e9ce43bfc795d6aba9d466c141313
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-12 14:33:22 +00:00
Marcus Tillmanns
e037bb0621 CompilerExplorer: Fix assert
The default value was not correctly converted to a QVariant.
When a LibraryAspect was de-serialized from the default variant value,
it would create q QVariant<QMap<QString, QString>> which cannot be converted
to a Store by Utils::storeFromVariant and would end in an assert therefore.

Change-Id: I6f7b14d78793a07f027a6b375bc554941ffb83de
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-12 14:31:00 +00:00
Christian Kandeler
cf16ef3139 RemoteLinux: Shut down an unresponsive SSH master connection
Otherwise, all subsequent ssh operations will silently fail.

Fixes: QTCREATORBUG-29982
Change-Id: I781aafcf408a9cb216f632e2beef92ec38652f57
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-12-12 14:27:57 +00:00
Christian Kandeler
f8cdcfd70c ProjectExplorer: Fix shutting down unreachable remote processes
We forgot to reset the state, which gave us a permanently broken run
control, preventing re-starting the application, among other things.

Change-Id: I7c168e31e015fdf7002c57aba0ed2178437a15ae
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-12 14:26:54 +00:00
Eike Ziller
a047ebba50 PluginManager: Add documentation for "SoftLoadable"
Change-Id: I542ffe892490ef796ad76a0afeac103a0c1e12f0
Reviewed-by: hjk <hjk@qt.io>
2023-12-12 14:03:55 +00:00
Eike Ziller
39927ff44d PluginManager: Add an "Deprecated" flag for plugins
For plugins that are still provided, but are no longer supported.
They are disabled by default and show a "unsupported" hint in the
plugin manager (similar to "experimental" plugins).

Change-Id: I6ad72fc0043900b5aa919c225ae94850d1d7a443
Reviewed-by: hjk <hjk@qt.io>
2023-12-12 14:03:47 +00:00
Jarek Kobus
3211fd1e43 GitClient: Make lambda non-mutable
Do a copy of future interface inside the lambda body instead.

Change-Id: If84e37c62e43b815cfea0b5f60fe7fcebca63093
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-12-12 13:53:26 +00:00
Mahmoud Badri
d9774e7faf EffectMaker: confirm save changes before opening an composition
Change-Id: I05659e4cdeba5dc5f437d2fb99bc3768c6a1522d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-12-12 13:49:43 +00:00
Andreas Loth
b60c438f34 Axivion: Remove orphaned function declaration
Change-Id: I519713c9b47ce4d94758dc46f2c9b49450419c45
Reviewed-by: hjk <hjk@qt.io>
2023-12-12 13:32:23 +00:00
Jarek Kobus
327659e81a CppQuickFixes: Make lambda non-mutable
Change-Id: I13a1aadfab05e18d833f3b21240be49fdf4ce06d
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-12 13:06:40 +00:00
Artem Sokolovskii
e396f84d10 SyntaxHighlighter: Move generic highlighter to separate thread
Adds a full copy of KSyntaxHighlighting::Repository class
to the Highlighter class, enabling the relocation of the
Highlighter class to a separate thread. This adjustment ensures
that all Definitions come from the copy of the repository, making
them immutable from external code.

The "reload Definition" function stays supported, as triggering
it results in the recreation of the highlighter for the document,
thereby reconstructing the Repository class.

Change-Id: Id7a4d865228c7e7e20e4770601a3fde55b8a6513
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-12 13:03:59 +00:00
Mahmoud Badri
9d8aa76b4c EffectMaker: Show save popup when adding a new effect
when there is an untitled effect composition in the effect maker.

Change-Id: I3d905202e52b1242949d72f1870d4cc06efe080b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-12 12:16:04 +00:00
Marcus Tillmanns
5f3950c620 Terminal: Defer shell model init
Speculative fix for sometimes slow load times of the Terminal
plugin on Windows

Task-number: QTCREATORBUG-29840
Change-Id: I6782db075bfaa25fbabe2bac2a8f0f3b4af4f833
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-12 12:05:25 +00:00
David Schulz
c622601db5 Debugger: simplify interrupting on windows
Use Process::interrupt again and ignore the superfluous exceptions when
debugging qbs builds with cdb reported by QTCREATORBUG-28279.

Change-Id: I010d41e2b01721d63a3967c9c95d7b10d47a4472
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-12 11:53:30 +00:00
Eike Ziller
a374588604 QmlDesigner/editor3d: Fix build with Qt 6.7
rendercontextcore is now a public header

(qtquick3d 89ca37fb914c6539334df62b38ea8cee80dade9d)

Fixes: QTCREATORBUG-30052
Change-Id: I58ac699ed81e958c0a0fccd14385b3359be1fb08
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-12 11:52:45 +00:00
Jarek Kobus
d1d573ad16 Aspects: Make lambda non-mutable
Amends 16f7652717

Change-Id: Id01ce3f7f0b5c9911097fa3ef2836015a009ed2b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-12-12 11:51:24 +00:00
Jarek Kobus
24397509d4 Libs: Cleanup lambdas
Change-Id: I715a124dd73f23c735dde27d3205ac7613ae04c6
Reviewed-by: hjk <hjk@qt.io>
2023-12-12 11:28:30 +00:00
hjk
d81b4c3aff ScxmlEditor: Remove some unused includes
Change-Id: Ie6b4beb57eaf56bcfef1027c400ea20765e36aaf
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-12 10:56:06 +00:00
hjk
016936a450 Clean up some lambdas
Change-Id: Id947c0935b1aa4579e1c64d3e510db41103fbe27
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-12 10:55:32 +00:00
Mahmoud Badri
e984536b6f QmlDesigner: Fix opening the new effect maker
Change-Id: I23d278dfaa430df09cd31aa63e8034a7787bac7a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-12 10:37:37 +00:00
Jarek Kobus
8d2cee31e4 TerminalWidget: Fix a warning about no return value
Amends a0c05cabcc

Change-Id: Ieb969f7a6c61469f69e8503089e4985fa8380e3c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-12-12 09:34:12 +00:00
The Qt Project
83778b5ef5 Merge "Merge remote-tracking branch 'origin/12.0'" 2023-12-12 09:24:04 +00:00
Marcus Tillmanns
b6ee23d218 ProjectExplorer: Use SyncronizedValue instead
Protect sshParameters with SyncronizedValue instead of
manual QReadWrite lock.

Change-Id: Ib164eb34aa1b8167d00c02ce49fd5bfc9fba6c15
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-12 09:18:12 +00:00
Eike Ziller
10e5a27c27 Merge remote-tracking branch 'origin/12.0'
Conflicts:
	src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp

Change-Id: If96d0f0a3d48c2581e765e4afb8b23924c48bdd6
2023-12-12 10:17:39 +01:00
Cristián Maureira-Fredes
c4464eb072 Add logo and title to PySide install dialog
Change-Id: I7888ee906334de2c93c24c5da2394c9e73101a28
Fixes: QTCREATORBUG-30041
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-12 08:51:44 +00:00
hjk
27ef041d28 ProjectExplorer: Some more ToolChain->Toolchain renamings
Change-Id: I5cb2adf544a846f45f7fe7ce60f67b10ad100d91
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-12 08:14:59 +00:00
Marcus Tillmanns
a0c05cabcc Terminal: Refactor actions
Change actions to use ActionBuilder and
use ToggleAspects for tool buttons.

Change-Id: I0f4a58c3a98cb2804e3d387ea02cac043bd71ae7
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-12-12 05:46:33 +00:00
hjk
daa85c3166 Core: Add a ActionBuilder::setOnToggled function
... and use it in the setup of some IOutputPane actions.

Change-Id: If4c79d4f8ae73ca320e8c35d5f1e2f30a8c7050f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-11 15:08:55 +00:00
Christian Kandeler
1365ee7cb2 CppEditor: Add assertions to CppRefactoringFile::{start,end}Of(AST *)
I've seen this crash once with a null pointer.

Change-Id: I162e36155f030712f697da0bbf39ea5fef849db3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-11 15:06:14 +00:00
Christian Kandeler
8594a7f114 QbsProjectManager: Make use of QbsProjectParser::m_parsing
This was apparently forgotten in
6913947986.

Change-Id: I237d21ecde898a2c9206aaeae74b2d05372cce2e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-12-11 15:01:27 +00:00
Christian Kandeler
c7f88ced89 ProjectExplorer: Fix FilePath construction for git paths
Change-Id: If29c0afcd41789ded5eccc6e098b3fadb390287d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-12-11 14:59:58 +00:00
Mahmoud Badri
2af5ce7fa9 EffectMaker: Generate unique effect name when saving
Change-Id: Ib602b778d810fe0d6c0d70879b1002c1749fe196
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-11 14:59:24 +00:00
Shrief Gabr
8f51c7a75d QmlDesigner: Modify model export functions
Task-number: QDS-11298
Change-Id: I919c8cd4ecac4bad7dab4d4fdf2d1cf3548cd95b
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-12-11 14:51:19 +00:00
Eike Ziller
d3c805630a CMake Debugging: Do not build/deploy
Fixes: QTCREATORBUG-30045
Change-Id: I478abaf29462d9413f3285527459a98b1cae899d
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-12-11 14:50:17 +00:00
hjk
6c22a3ec8c Boot2Qt: Fix menu insertion of qdb flash to device action
Change-Id: I359b4ae398337ae3edb138cca1b3bdaf5cc86424
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-11 14:22:11 +00:00