Commit Graph

88653 Commits

Author SHA1 Message Date
Eike Ziller
85cb3f7651 PythonRunConfiguration: Clean up includes
Change-Id: I2cfef759e4b3fc773184691a9b19fc132cf3be03
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-22 06:19:30 +00:00
Leena Miettinen
30aab193c8 Doc: Fix a QDoc warning in Spinner docs
Change-Id: I147040314b24460bc30b1c9804d9a60f24f9de9f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-21 15:02:52 +00:00
Mahmoud Badri
9a6bd997b5 QmlDesigner: Convert UniqueName keywords to array of stringviews
Also change the class to namespace, rename "get" to "generate"
and add unit tests.

Change-Id: Ib52bf7e3e0110e33acb40ca6e3d9bfc61cefdca0
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-05-21 13:48:06 +00:00
Leena Miettinen
94cfacab00 Doc: Add direct link to the Getting Started with Qt Creator course
...in Qt Academy. No login is required.

Fixes: QTCREATORBUG-30805
Change-Id: Iec62319b8affe087149f084db4e2341d4f11e51b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io>
2024-05-21 13:46:59 +00:00
Eike Ziller
eb45240649 Remove PluginManager::futureSynchronizer()
Use the global synchronizer from Utils::futureSynchronizer() directly

Change-Id: Ic8843bc1ff7951c041529a258f36117f08ec4b35
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-21 13:02:46 +00:00
Christian Kandeler
881b66cec4 Fix qbs build
Change-Id: I22ac5e5ece2c0424942f04ae65d3b02ef89c5a31
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-21 11:54:24 +00:00
Christian Kandeler
6a8f7ae53b LanguageClient: Let clients opt out of sending the didSave message
... and make use of it in ClangdClient.
When a file gets saved, clangd checks all open documents for whether they
are affected by that. While the answer is usually "no", there is still
one thread per document being started to find that out, which triggers
users who keep a close watch on CPU usage. To alleviate this, we now
send the didSave message only for header files.

Fixes: QTCREATORBUG-28580
Change-Id: Id761cec8b04e95a795c8bd8754466bf03b6f2c28
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-21 10:39:39 +00:00
Pranta Dastider
6cf945af59 QmlDesigner: Update Qt Design Studio to Qt Creator workflow doc
This patch updates the Qt Design Studio to Qt Creator workflow.
Adding the new way to generate CMake and then importing it in
Qt Creator.

Fixes: QDS-10787
Change-Id: I31c54c92ddca8872977ac066d06d7877e3770671
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-21 10:20:10 +00:00
Eike Ziller
c676ec825f AsyncTask: Centralize setting global future synchronizer
Move the global FutureSynchronizer to Utils and use it
by default for AsyncTask (if that is in the main thread).
This way setting a synchronizer is less prone to be forgotten.
Individual uses can still override this.

Change-Id: I1a12bf4d7f4cb5be99668bf0a4797108c2fe6448
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-21 09:56:32 +00:00
Miikka Heikkinen
14e0196442 Show 3D import preview
Show preview of 3D import in item library import dialog
when importing a single 3D asset.

Fixes: QDS-11111
Change-Id: I13135be1e931cbee034ca8a89654c0827b937bdf
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-21 09:45:30 +00:00
Miikka Heikkinen
872c4bf092 QmlDesigner: Fix double deletion of rewriter actions
Actions were deleted after being inserted into actionsToRemove,
which caused them to get deleted again, leading to crash.

Change-Id: If6597f117859ca92cfc5af67c730e2f84e5c0639
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-21 09:09:13 +00:00
David Schulz
3cd72806f8 ProjectExplorer: introduce workspace project
A workspace project can be utilized to open projects that either do not
have a project manager or which uses a project manager we do not support
natively. The workspace project basically scans the folder recursively
and adds all files and folders to the project tree.

The user can provide a project name in the .qtcreator/project.json
project file. It is also possible to exclude files and subdirectories
from the project via the project trees context menu.

Change-Id: If84a4d96c6217ae024af4e2869eb600e1faad372
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-21 09:08:53 +00:00
David Schulz
79116f5557 ProjectExplorer: allow defining a dir filter in TreeScanner
This is going to be used to include hidden files in the result list of
the scanner.

Change-Id: I512465eba4c38c6d26107ae4022319f1c700b60c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-21 09:08:36 +00:00
Jarek Kobus
60f4822d5f Android: Supply newly created device with path
Otherwise, the newly created device is going to be removed
and recreated on subsequent HandleAvdsListChange()
causing flickering of the devices combobox in settings.

Change-Id: Idcf58f24eb7f4d4200881cfa912d0866f54d362a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-21 08:58:54 +00:00
Christian Kandeler
dda9234255 CppEditor: Quickfix clean-ups
- Merge cppquickfixes.{h,cpp} and cppquickfix.{h,cpp}.
- Remove unused functions, classes and typedefs.
- Some renamings and adaptation of comments.

Change-Id: I1fbcec7ee227f068527fb57552eb161a7e98bf9f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-21 08:25:26 +00:00
Christian Kandeler
554a1ffb4b CppEditor: Move ReformatPointerDeclaration quickfix into its own files
Change-Id: Ib33bbc2276b1e9992700967d91b8843047fb329e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-21 08:25:02 +00:00
Christian Kandeler
d7360c2b08 CppEditor: Move RearrangeParamDeclarationList quickfix to its own files
Change-Id: I71354ebf11d943531fef1f417e389ae28b964ccb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-21 08:24:32 +00:00
Eike Ziller
90b3068ecf Merge remote-tracking branch 'origin/13.0'
Conflicts:
	doc/qtcreator/src/editors/creator-only/creator-language-server.qdoc

Change-Id: If93df2592a66679eeff9c8a337372e3aad65f1f1
2024-05-21 09:40:46 +02:00
Johanna Vanhatapio
46350083de Doc: Improve the documentation for 3D
Some editions to comply with the MS Style guide and to
improve the structure.

Task-number: QDS-12670
Change-Id: Iddb0778327880ec65bdb590d1e02e4ca15e72051
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-21 05:45:21 +00:00
Robert Löhning
a46fc4e8a2 SquishTests: Ignore hide/show entry in kit tree
Change-Id: Idb32c143d17867e7ccd86e4814604785eb4fc08a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-21 05:37:48 +00:00
Christian Stenger
85617f1369 Git: Avoid crash when reloading files
Explicitly reset the document when the document gets closed.

Task-number: QTCREATORBUG-30824
Change-Id: I4fb3d6fd6041990e5b8b4f6b7c4fd9ebc62f5a4a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2024-05-21 05:34:34 +00:00
Mahmoud Badri
fc79bad535 QmlDesigner: Remove Model::generateIdFromName()
- Added UniqueName::getId()
- Cleaned up generateNewId() and made it use UniqueName::getId()
- Moved UniqueName to designercore

Also reversed how the predicate of UniqueName::get() works.

Change-Id: I89c50f7d80610243f56be165b1495ef428da457c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-20 12:58:22 +00:00
Miikka Heikkinen
73ce3a891f Allow scene environment as background for non-View3D scenes
For non-View3D scenes, the environment from the previous View3D
is used.

Fixes: QDS-12398
Change-Id: I6adc82cd0205ebe443b5834d9bb0f4906e2cd009
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-20 11:06:11 +00:00
Tim Jenssen
cbd36f93fa Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: Ief07ead0b4cf513c70bd74d4f5e28e4642edc78e
2024-05-17 17:57:18 +00:00
Tim Jenssen
fe7b46c28e crashpad: fix include
Change-Id: Ia5bd19db4bb05de673632fa7790b72a4824313bb
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-17 17:52:35 +00:00
Jochen Becher
b468ea0bdd ModelEditor: More use of Utils::FilePath
Change-Id: Ib1030959ae5eea763d3b93684b68ae6ae927839b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-17 17:23:27 +00:00
Christian Kandeler
1afe89a54e CppEditor: Fix Windows release build
Change-Id: Ie1fd2f29caab09f09e179e8ad7505a8a0fac6d8a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-17 14:11:19 +00:00
Christian Kandeler
3c18fe3cb1 CppEditor: Move ConvertToCamelCase quickfix to its own files
Change-Id: Ic45ad1732fbf1253088db1b8adb93d752ed7cd1c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 14:10:44 +00:00
Tim Jenßen
ed97f8172a qds: increase version to 4.6.0
Change-Id: I5d99ba1e92399170d9fd828df573f33503ee4b12
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-17 13:54:27 +00:00
Christian Kandeler
a6758ab76c CppEditor: Move ConvertNumericLiteral quickfix to its own files
Change-Id: Ic372fa9bab08ea294ca0890610696c0f06b8fecb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-17 13:29:18 +00:00
Christian Kandeler
072d9103c3 CppEditor: Move SplitSimpleDeclaration quickfix into its own files
Change-Id: I74f656ed29ae2eb15afa89a0ad01c91333b99345
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 13:04:43 +00:00
Christian Kandeler
e48a40bd8d Update qbs submodule to HEAD of 2.3 branch
Change-Id: I9afd32c952cb4d57ed0daf8ff9860a35f3d78be0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 12:55:31 +00:00
Christian Kandeler
ae89f79917 CppEditor: Move ConvertToMetaMethodCall quickfix to its own files
Change-Id: Ic2c64e8825cf9d7ee4b7e90fc6cdda5aca9bb8c7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 12:48:04 +00:00
Christian Kandeler
977702d933 CppEditor: Move CompleteSwitchStatement quickfix into its own files
Change-Id: Ibb4032c4c9715af62f644e84985712b68a11fdd9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 12:47:32 +00:00
Christian Kandeler
7fec30a2c4 CppEditor: Move AssignToLocalVariable quickfix to its own files
Change-Id: Ia0072846e97e4db50c60acf19af5e695e8472a6b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-17 12:34:30 +00:00
Leena Miettinen
946bbb477e Doc: Fix QDoc warnings in BaseAspects docs
Change-Id: Iee6e29040dfffaa4fa7da99cb0b854ef22b45042
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-17 12:25:39 +00:00
Christian Kandeler
f0695dacf9 Move ConvertFromAndToPointer quickfix to its own files
Change-Id: Ie5f80072e5225ee0394ad0dc1dde2309133aae9d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-17 12:16:49 +00:00
Christian Kandeler
a82ad37bde CppEditor: Move ExtractLiteralAsParameter quickfix to its own files
Change-Id: Ib443b2ae2b3b07685471384b0d26c8ef9deac1b2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 12:16:12 +00:00
Eike Ziller
5b83dd2430 CMake: Fix translatable string
Translatable strings should not start with a space, but always adding a
fixed string to an existing string is not a good thing to do in any case.
Languages/translators might have different opinions on this. There is no
good way to do this without breaking the original string, so just do it.

Amends 0e30918955

Change-Id: I4f240d1e0e45f12ee3a7e88dd11a0b539557ab4e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-17 12:00:18 +00:00
Christian Kandeler
d30ed4c738 CppEditor: Move ExtractFunction quickfix to its own files
Change-Id: Iff66f8bc7dc48c9c7d38c77cfe4f43915236fb1c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 11:38:34 +00:00
Christian Kandeler
e634dd769f CppEditor: Move quickfixes for rewriting comments into dedicated files
Change-Id: If27459e7219642f6518a6c9099ca0bdae7502511
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 11:37:51 +00:00
Christian Kandeler
4cd59fc357 CppEditor: Move control statement quickfixes into dedicated files
Change-Id: Ie4fb4bb466c151cc7666aecb5307fee6f6fd56d8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-17 11:00:16 +00:00
Christian Kandeler
3c0258448e Move quickfixes for logical operations into dedicated files
Change-Id: Ie0009820b7320ed71331e1611d6cf9701c54c089
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 10:23:49 +00:00
Christian Kandeler
44ab666928 CppEditor: Move "create decl from use" quickfixes into dedicated files
Change-Id: Id93f4a5cdf7f2a36397458f3b00bb2a0cdefd69f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 09:58:46 +00:00
Leena Miettinen
ced23f3f89 Doc: Use "p4 set P4CONFIG" on all platforms
Fixes: QTCREATORBUG-30816
Change-Id: Id95062f24bcd2b225581f3158c779caac6780a14
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-05-17 09:51:42 +00:00
Ali Kianian
51a27f3a12 QmlDesigner: Close the color editor popup before adding
Fixes: QDS-12498
Change-Id: Id3c565ffb9fca7f186ebeb0cf8051194c7944d4d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-17 09:39:33 +00:00
Christian Kandeler
b3e4d552d3 CppEditor: Move quickfixes for string literals into dedicated files
Change-Id: I60d9d30981a68a6393ba39f566bd174b0f391793
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 09:36:13 +00:00
Christian Kandeler
c5325effc8 CppEditor: Move "add include" and "add forward decl" quickfixes
... to dedicated files.

Change-Id: Ifb2c00241b3e77c33fdfc79227486e431ecab5d7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 09:35:39 +00:00
Leena Miettinen
c7803fe6ae Doc: Mention QML Language Server in "Adding Language Servers"
- Add a link to "Turn on QML Language Server".
- Add the \QMLLS macro and use it everywhere.

Fixes: QTCREATORBUG-30823
Change-Id: I75ff67967ad6bf592dceeae46486713012aafd50
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-05-17 09:07:23 +00:00
Christian Kandeler
b0f8fe63cc CppEditor: Move "insert definition" quickfixes into dedicated files
Change-Id: Ib314f43dd44d34ab1e2d9a867e95de2261e6c86a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 08:33:43 +00:00