Commit Graph

88532 Commits

Author SHA1 Message Date
Tim Jenssen
ef0ee52bf9 Merge remote-tracking branch 'origin/qds/dev'
Conflicts:
	doc/qtcreator/src/overview/creator-only/creator-keyboard-shortcuts.qdoc
	doc/qtcreator/src/qtquick/qtquick-live-preview-devices.qdoc
	doc/qtcreator/src/qtquick/qtquick-profiler.qdoc
	src/plugins/qmlprojectmanager/qmlprojectmanager.qbs
	src/plugins/remotelinux/linuxdevicetester.cpp

Change-Id: I3683c1799df05209d05413383456b285a2daf96e
2024-04-23 16:05:55 +02:00
Miikka Heikkinen
c351e8c9c7 QmlDesigner: Fix picking 3D models from 2D view
Adding new nodes to the scene for some reason doesn't include them
to the full window render done for picking purposes. Changed the render
to be done via grabItem() on the target View3D instead, which seems to
work more reliably.

Fixes: QDS-12577
Change-Id: Ia5f01b9521fd898f8cf073f96d32fc31bf936a37
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-23 14:04:25 +00:00
Mahmoud Badri
63107ff2f7 QmlDesigner: Add content library user textures context menu
Fixes: QDS-12574
Change-Id: I3213d0601167e6963db7fbb1091ade4cb09bdc55
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-23 13:53:55 +00:00
Christian Stenger
a7f92dd8be AutoTest: Disable timeout by default
Usually test frameworks or tools have their own timeout
handling or not at all.
Let the user decide whether to use a timeout or not.
This is a behavior change as now the test run does not
get automatically canceled anymore except when the user
explicitly enables this feature.

Fixes: QTCREATORBUG-30668
Change-Id: Ic5d98db0c52bfea092e427d317b12c41d6484ad0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-23 13:42:57 +00:00
Miikka Heikkinen
651d7f5d85 QmlDesigner: Select correct underlying View3D for "Edit in 3D View"
If the selected node is not View3D, check if the topmost item in
scenePosition is View3D and target that instead for "Edit in 3D View"
action.

Fixes: QDS-12347
Change-Id: I06b59f55246e828cced8dd3c15ee9b297e5edeb7
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-23 13:16:53 +00:00
Leena Miettinen
820e65894d Doc: Update debugger docs
- Make CDB and GDB preference docs more scannable by using tables.
- Describe the "Use debug info daemon" GDB option(update the screenshot).
- Add info about asynchronous GDB command execution.
- Replace "select" with "go to" for menus.
- Update some \sa links.

Change-Id: I029541b0bed284f12d6de7dbb10bbe0de05ac5c9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 13:15:41 +00:00
Tim Jenssen
7dfa746920 Merge remote-tracking branch 'origin/13.0' into HEAD
Change-Id: I1f87297930db420606aab8d7016c290483f262c0
2024-04-23 14:03:46 +02:00
Robert Löhning
987cd409f3 SquishTests: Make sure that button in Designer is renamed properly
This misused typeLines() to close the dialog by pressing "Return".
Although the entire name of the button should be selected at first,
I witnessed the new name being appended to the old one.

The new code uses replaceEditorContent() to explicit select the old
name and replace it with the new name. After that, it explicitly
presses "Return" to close the dialog.

Change-Id: I5ec946f57000396b70428e08ab795a1ee3eba91a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 12:03:13 +00:00
Marco Bubke
2c38f9ae74 Fix max component version
Change-Id: Ib7328c00a461f22e5c924a441844260f15fb0dd3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-23 11:56:05 +00:00
Alessandro Portale
d9c8590c5f Android: Make validation of downloaded SDK package an async task
Execution moved into a second thread. Progress dialog now shows a
distinct progress phase.

Change-Id: I933f823c9bfea562d9d3cee5d98990444073b4fe
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-04-23 11:38:45 +00:00
Marco Bubke
b07d2f0c1d Include Qt and GoogleTest as system include
That is silencing warnings in Qt and GoogleTest headers .

Change-Id: Ia6fda019c271788fbb341a8de0cf6d7b757f38bf
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-23 11:38:09 +00:00
Marcus Tillmanns
836393d2ef Lua: Use global NetworkManager to fetch
Fixes crash on exit on windows after "tell a joke" as well.

Change-Id: Ie1ca0c40d9b80af7fe1b0f44ec7b8cdaa190a2cd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 11:10:51 +00:00
Christian Stenger
facd32b2e0 SquishTests: Remove duplicate object
Change-Id: I7ceed8ef40684323b8404c3fe7c529fbd5b7be74
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-23 11:08:44 +00:00
Marcus Tillmanns
9f99cf80f0 Lua: Fix soft loading
Previously the LuaEngine::loadPlugin() function tried to fully setup the
lua interpreter. This was called before the dependencies of a lua plugin
were fully soft loaded. Therefore the dependent lua packages had not
been registered yet.

This patch changes that to where the packages and lua libraries are only
loaded right before the actual setup call is done. This also allows us
to safely load the plugin spec without giving it access to all the
functionality directly.

In the future we could show and ask the user before we load the plugin
whether he agrees to give it the requested access.

Change-Id: Ibf3e81db54e2ba94473e8ecf2650dcf2e97f1360
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 11:05:21 +00:00
Jarek Kobus
d73c22cd95 Android: Transform AndroidSdkDownloader into a pure recipe
Get rid of AndroidSdkDownloader class.
This will enable easy chaining of recipes for different workflows.

Change-Id: Ia048597148a2a1e7573fc0d4192cf7e678f39c4f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-23 10:51:23 +00:00
Jarek Kobus
b97434cca7 Android: Make sdkToolsUrl check a part of the recipe
Change-Id: I37e1b9e49dbec8f7b12a90a32d54a23a7098b4b4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-23 10:33:56 +00:00
Jarek Kobus
53c75898ee Android: Enclose the progress dialog inside the recipe
Change-Id: Ibf119550438ab1bb8407fc3fbbdf6bba8d5e7bd8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-23 10:32:46 +00:00
Jarek Kobus
5f00584b38 Android: Hide AndroidSdkDownloader::sdkDownloaderError() signal
Inbuild the handling of this signal inside the recipe.

Change-Id: I7152cb1a4568b63156fb72a768b658df5bef9997
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-23 10:17:57 +00:00
Jarek Kobus
41a278a030 Android: Avoid duplicated "--sdk_root=[...]" arg
The sdkManagerCommand() adds this arg already.

Change-Id: Ibfc151cd5bd994bbbf92907955c93afd500abb3c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-23 10:17:40 +00:00
Mahmoud Badri
a369d075ad QmlDesigner: Implement adding an image to the content library
Also some cleanups in same files.

Fixes: QDS-12506
Change-Id: I0c211206b6b7c29857a30f18d6077c2ddd76849c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-23 09:51:51 +00:00
Robert Löhning
ec33fc0476 SquishTests: Avoid using occurrence value for SideDiffEditorWidgets
Change-Id: I7c519347a25b0c541b019dd1cae65df4a74c8826
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-23 09:35:37 +00:00
Robert Löhning
457488a106 SquishTests: Avoid using occurrence value for IconButton
Change-Id: I0a4d9497801dbd39c2c735cac760c5dc6a0298fd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 07:04:42 +00:00
Robert Löhning
93d0085517 SquishTests: Avoid using occurrence values for OutputPaneToggleButtons
The occurrence count can't be understood without looking at
the running application and can even change at runtime.

Change-Id: I34677fd2fe2a0a8a7f2cdcd9f37ec938efe1a5ea
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 07:04:23 +00:00
Robert Löhning
59ebb8a6a7 SquishTests: Autodetect cdb
Creator automatically detects the debuggers anyway and then can't handle
the fixed ID.

Change-Id: I732f86649b02016be2ca513c896a80ce254d721f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-23 07:03:35 +00:00
Marcus Tillmanns
bc5b67909c Lua: Cleanup code style
Change-Id: I7d8713c87a097f113c5b9d04104f3948b691dbf9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-23 06:50:22 +00:00
David Schulz
592d7f0c94 TextEditor: Fix calculating block highlight background color
Fixes: QTCREATORBUG-30649
Change-Id: I9a213ecdf4d58ed6531014c99bbdedac8ac9ef00
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-23 05:51:07 +00:00
Christian Stenger
fa41cba5c3 Axivion: Refactor URL query handling
Avoids duplication.

Change-Id: Iccfe6448ae4964ce73c40159600b0a61a1d64a5a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-23 04:58:53 +00:00
Christian Stenger
f2b7c03d3b Axivion: Provide feedback when no data available
Change-Id: Ie67c43bd5f26054037be8e977c6d8f3b54e6e3e4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-04-23 04:58:35 +00:00
Christian Stenger
4ae235edc2 Axivion: Make ui strings translatable
Change-Id: If3c60ed51ccb07ee4208f4e041650c555783b694
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-04-23 04:58:19 +00:00
Marco Bubke
cbc617d2ad QmlDesigner: Move project storage statements to cpp
That can improve compile times, so it takes less time to develop new
functionality.

Change-Id: I94170674e1bf5178020389bcb3623dbbf87eb7a3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-22 16:52:04 +00:00
Marco Bubke
b74c47ec66 QmlDesigner: Remove template parameter from project storage
There are now other ways to prevent locking bugs. So we don't need the
template parameter anymore. That makes it possible to move much of the
code to a cpp file. Maybe later we have to move some functions back for
performance reasons.

Change-Id: I01269912618d7cf5e070219e7edaa3a00623b7cf
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-22 15:35:11 +00:00
Marco Bubke
e262ec1ebb QmlDesigner: Integrate item library entries from project storage
Task-number: QDS-12102
Change-Id: Id6fbfcfb44d3b8c290f5e5d74addf33ef4d9a5e5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-22 15:34:53 +00:00
Thomas Hartmann
e9ee1c6b56 QmlDesigner: Do not use property as default property name
property is a keyword and a bad default.

Change-Id: Ieb38f08f5f049fe6b540304945ce95ae6c18b55e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-22 15:28:33 +00:00
Henning Gruendl
d83e7d3d3d QmlDesigner: Add proper ranges in EffectsSection
Change-Id: If3f8b395c9a63c535f43be84d7a855196c67769e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-22 15:22:46 +00:00
Henning Gruendl
bb6110082a QmlDesigner: Hide visible CheckBox EffectsSection
Hide the visible CheckBox in the EffectsSection when there is no effect
currently added to the item.

Change-Id: I68dede067a92bf5f733c582424ed5b2c2745e651
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-22 12:54:10 +00:00
Shrief Gabr
dad555a088 QmlDesigner: Fix save indicator behavior on selection change
Task-number: QDS-12499
Change-Id: If91aab8d133a9269d9fc381ea0a130d3953aa69d
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-22 12:48:04 +00:00
Christian Kandeler
7d83f876e3 ClangTools: Support inline suppression of diagnostics
... via clang-tidy's and clazy's respective code annotation features.

Fixes: QTCREATORBUG-24847
Change-Id: I1b571e9e22caa3432d73940cb93d140e250b6a1c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-22 12:46:19 +00:00
Jarek Kobus
a204bd2304 Android: Decouple missing packages logic from UI
There is no need to modify UI selection in order to
execute installation / deinstallation.

Change-Id: I205477e5ff0e7b07bfbcd6b5f8f985fcb180884e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-22 12:43:20 +00:00
Marco Bubke
1d66a55859 GoogleTest: Update to v1.14
Change-Id: I8773824675ed9ed58f4aa191d67dea032ddc533b
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-04-22 12:32:35 +00:00
Jarek Kobus
3a4784ea6c Android: Introduce InstallationChange helper struct
Change-Id: Iae86b86d5966847d3dafe2e119782e2d0ce3cfe2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-22 12:19:31 +00:00
Alessandro Portale
3292745a0a Android: Give Android 14.0 the code name
The name "UpsideDownCake" for Android 14.0 has been revealed a while
ago. Align its package presentation to Android Studio.

Task-number: QTCREATORBUG-30711
Change-Id: I7ca42ca73c7bdf5b7732bab2d2bd36f7a730ccb7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-04-22 11:51:27 +00:00
Alessandro Portale
14fa8ec3d5 Lua: Add .h files to CMakeLists.txt
That makes it possible to locate the files in the project tree.

Change-Id: Ib7208e91b48be865aa22851d6786e39cf293b2b7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-22 11:51:21 +00:00
David Schulz
620f6fd39b Python: offer to install pyside also in qml files
This shwos the same editor toolbar as in the python editor that offers
to install pyside, if the qml file can be associated to a python project
and the configured python for that project does not contain a valid
pyside.

Change-Id: Id05a2621aec9d78c4a22e61830813cd261eda4fc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-22 11:36:12 +00:00
Eike Ziller
b5740eb0c6 ExtensionSystem: Don't export test symbols without tests configured
We want the plugin manager to support the -test option etc even if
Qt Creator is not configured with WITH_TESTS, so 3rdparty plugins can
still be built and tested with a released Qt Creator.

But we do not want to export functions/classes that are only needed for
Qt Creator tests in that case.

When Qt Creator is configured with WITH_TESTS, the QtCreatorAPI adds the
WITH_TESTS define, and we used the same define for the first case above,
where we only want to add the -test option and corresponding API. Use a
different define EXTENSIONSYSTEM_WITH_TESTOPTION for this. The
EXTENSIONSYSTEM_TEST_EXPORT keeps checking the WITH_TESTS define.

Amends e5a4fdaa1b

Change-Id: I547f1fa7413e3bc452f71ae920c310a05e0193ae
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-22 11:35:10 +00:00
The Qt Project
2ab8e2f35d Merge "Merge remote-tracking branch 'origin/13.0'" 2024-04-22 11:33:50 +00:00
Miikka Heikkinen
64ed6fff6d QmlDesigner: Select model under cursor when using "Edit in 3D View"
If selection context contains valid scene position, use that to select
the model under cursor.

Fixes: QDS-12346
Change-Id: I55c58ed303e1746b7b234fa6ac31272fdfafb40d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-22 11:21:10 +00:00
Cristian Adam
6f984bd285 CMakePM: Use ILocatorFilter::createRegExp for locator filter
This presets better results, and is in sync to what other locator filters
are doing.

Fixes: QTCREATORBUG-30452
Change-Id: Ia77d2a5f22b33b55aa081d09372ab5cf297bb065
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-22 11:18:11 +00:00
Jochen Becher
faf96c14a1 ModelEditor: Improve panning
Change-Id: Iacb3e2bb9006d306852f18b50bbec322abb5acdf
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-22 10:46:19 +00:00
David Schulz
e50646b677 Lua: add send message to LSP Client interface
Change-Id: I9fa1d85041e97b5b69ae139e14510027c6097344
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-22 10:45:14 +00:00
Eike Ziller
e5640386f8 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	doc/qtcreator/src/qtquick/qtquick-live-preview-devices.qdoc
	src/plugins/projectexplorer/projectexplorer.cpp

Change-Id: I682b330a278a329fc6294baeff6a28040abd10bc
2024-04-22 12:18:10 +02:00