Commit Graph

88532 Commits

Author SHA1 Message Date
Miikka Heikkinen
8bfe805645 QmlDesigner: Allow rotation of 3D import preview
3D import preview can now be rotated using left mouse button and
dragging the preview image. This causes camera to orbit around the
previewed model, similar to rotation to 3D edit view orbit camera.

Close/Cancel button logic was also improved.

Fixes: QDS-12795
Change-Id: I0c7d1ad28f8fe779b9bedc4bf76be704078d91a6
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-23 10:48:44 +00:00
Eike Ziller
7190c049de Locator settings: Use a real checkbox
We do not use "Label: [ ]", we use normal checkboxes of the form
"[ ] Label"

Amends 2166647682

Change-Id: If77b44fe4d27f9bec749f47b6675189d8e8a070f
Reviewed-by: hjk <hjk@qt.io>
2024-05-23 10:48:16 +00:00
Eike Ziller
3a60ab1c91 Fix capitalization of group box titles
Consistently use book case

Change-Id: Ia0e382255fe2f311a1bd9a380f4bf8af2320c215
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 10:47:20 +00:00
Marco Bubke
d345254579 QmlDesigner: Add project storage error mechanism
Task-number: QDS-12761
Change-Id: If782b5d81b53979033e2738292dedac91e1adcbf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-23 10:43:52 +00:00
Marco Bubke
f296f9d77c QmlDesigner: Parse components recursively
Change-Id: I8fa892cce8e34b5e58cbdde04c57e30b9fc74866
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-23 10:42:43 +00:00
Miikka Heikkinen
fd2c7db691 QmlDesigner: Use correct Enumeration type for instance values
Puppet used to return just string for enumeration types.
Now it will use Enumeration type properly.

Change-Id: I602891e34c03cb659ee0a8e4571b39b6e24f9e1c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-23 10:25:11 +00:00
Christian Kandeler
df96d78e68 CppEditor: Add missing initialization
Change-Id: I13d065756ae031d8a359cce80a6e5aba0d359606
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-23 09:02:19 +00:00
Pranta Dastider
5f23a07ba7 QmlDesigner: Update Qt Academy course links in documents
This patch adds some of the Qt Academy course links in
the relevant documents.

Fixes: QDS-12747
Change-Id: I8309681869922be3277e775c312ffa1210d64a29
Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io>
2024-05-23 08:46:38 +00:00
Mats Honkamaa
1c216f0a38 Doc: Add glow best practices docs
Task-number: QDS-11695
Change-Id: Icf57fe5d94194e5be3d741a19f9f3dea51114048
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-05-23 08:38:42 +00:00
Mahmoud Badri
8dfef06aec QmlDesigner: Remove the optional func param from Model::generateNewId()
Not needed anymore after using UniqueName class.

Change-Id: I252659376af7e8aaf5e4642f9b9bfd2c57cc19fb
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>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2024-05-23 08:17:10 +00:00
Jiajie Chen
24d7370e8e RunControl: Add missing code migration to std::shared_ptr
In `IDevice: Replace QSharedPointer with std::shared_ptr' (#536681), the
type of IDeviceConstPtr has changed to use std::shared_ptr, but the code
in RunControl was not updated, leading to compilation error:

error: no member named 'isNull' in 'IDeviceConstPtr'
  421 |     if (!device.isNull() && device->type() == ...
      |          ~~~~~~ ^
1 error generated.

Change-Id: I812034f37b14c9c62040f09e039a68eb4edfd4d6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-23 07:40:14 +00:00
Marcus Tillmanns
afae1d7093 Lua: Add macro expansion of the meta folder
Change-Id: I5c5370665002feee886aa0a7411a485edafb8469
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-23 07:19:38 +00:00
Eike Ziller
30d755ccb4 COIN: Respect the DisableTests feature setting
COIN already skips running tests with this feature, but
also build Qt Creator without test support.

Change-Id: I10e8323466a4baf4cac7128efbdbd54b16bb8e2c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-23 06:47:51 +00:00
Eike Ziller
3a1b18108d COIN: Respect the Sccache feature setting
If the platform configuration doesn't include Sccache in the features list,
we should not use sccache for building.

Change-Id: I3ab459165e77923f59f037f844bd72e89abfd42b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-23 06:45:55 +00:00
Teea Poldsam
93861d6d56 Doc: Reorganize the sidebar
Fixes: QDS-12809
Change-Id: Ic28b94db2752992c4b08fe0c6ac15a159399a486
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-23 05:54:46 +00:00
Jarek Kobus
8b7b389fb4 Android: Small cleanup in AndroidQmlPreviewWorker
Change-Id: I56933f1dd327b233082e1f8ac81e0e7f3d19694b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-23 05:48:25 +00:00
Jarek Kobus
28308b016b Android: Run pid watcher in the main thread
Change-Id: Ia320827ed97caa3dff0611a13c52e648c9d8a79a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:48:15 +00:00
Jarek Kobus
a7ece15f6e Android: Reuse TaskTree for findProcessPIDAndUser()
Don't run blocking processes in a separate thread.
Run them asynchronously from the main thread.

Change-Id: I5343f05d992d974720e786e2814cba2d6b295cd4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:47:04 +00:00
David Schulz
1a89bfbe34 TextEditor: explicitly set focus to bookmarks note text
Allows the user to directly start typing in additional information for a
bookmark after triggering the shortcut. This seemed to have happened
automatically before, but since this is desired behavior anyhow it's
okay to call it explicitly.

Fixes: QTCREATORBUG-30829
Change-Id: I77eef2092052e61397f3a73f15c32e909eda01a0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-23 05:47:01 +00:00
Jarek Kobus
5453d13290 Android: Inline AndroidRunnerWorker::adbKill()
Change-Id: I2c4fefac4f18b65fe73619cc70090133eb4dbbf5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:46:54 +00:00
Jarek Kobus
aac42d6292 Android: Hide some methods of AndroidRunnerWorker
Change-Id: I018e311dce4e3ddd9f61e6c6734e325b2eb15889
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:46:45 +00:00
Jarek Kobus
f0eeb67975 Android: Employ TaskTree for running avdList command
Run the command from the caller thread.

Change-Id: I710c41c6da93e27d79c351e1dc5e7f9f01d6cc51
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-23 05:46:36 +00:00
Tim Jenssen
0433b8c479 Qml2Puppet: fix stand alone puppet builds
Change-Id: I24f5ca625429c636052d0c92c495a20a6942c92f
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
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-22 12:59:20 +00:00
Ali Kianian
b5db9f8fb3 QmlDesigner: Remove Model Editor
Task-number: QDS-12808
Change-Id: I9d1a716cda8d4a972b335270961ee7b489ed07c3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-22 11:50:12 +00:00
Eike Ziller
f7120daa2e FancyLineEdit: Make sure to not leave any threads hanging around
Add them to the global future synchronizer, so they are canceled and
waited for before deleting any plugin instances.

Change-Id: Iec78b7566905815c4d2b4cc7410d10b2da16c7b7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-22 11:45:59 +00:00
Jarek Kobus
982ad24243 CommandLine: Reuse new c'tor
Change-Id: Id154881b4f5d8c488e5c1f5e0f843d36bf838759
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-22 09:13:41 +00:00
Jarek Kobus
d857af4cec Python: Add missing include
Otherwise getting:
invalid application of ‘sizeof’ to incomplete type
‘ProjectExplorer::BuildSystem’

Amends 85cb3f7651

Change-Id: Ie423bfb05dd852735fb5fa64a19cc1c4f9780e0b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-22 07:56:58 +00:00
Mats Honkamaa
d9f4987d71 Doc: Add link to Design Effects
Change-Id: Ia62f86bc586a6ccb5b60b95fdfef97068decb408
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-05-22 07:51:42 +00:00
Leena Miettinen
ae9a307184 Doc: Fix QDoc warning in PluginSpec docs
The variable name "version" had changed to "pluginVersion".

Change-Id: I8299593a4888191e931fed74dc9a4052503fe682
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-22 07:02:39 +00:00
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