Commit Graph

72811 Commits

Author SHA1 Message Date
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
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
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
David Schulz
ec88d279a8 TextEditor: Optimize unindent backspace behavior
Only remove more than one character when the cursor is inside the
indentation in the beginning of the line. In all other cases always only
remove one character.

Fixes: QTCREATORBUG-30725
Change-Id: I973101a95768cdd8b1a318972f53423eb72eb157
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-22 10:07:32 +00:00
Jochen Becher
d91d696e3a ModelEditor: Toggle filter using Ctrl+Shift+L
Fixes: QTCREATORBUG-30713
Change-Id: I712b1a1f10b6f4c27d10f2179de8e3c5faa930ba
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-22 08:47:23 +00:00
Christian Stenger
9e3e123226 Lua: Add lua language client to qbs build
Change-Id: Iebd27e0a155529bf0076c7087c7b2b55f9e5ec7b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-22 08:38:35 +00:00
Shrief Gabr
873d10403c QmlDesigner: Fix Image, Url, and String datatype warnings
Fixes: QDS-12157
Fixes: QDS-12160
Change-Id: Icc890e1cfda4d6d42de094c2b40f66f3d1d01039
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-22 08:33:26 +00:00
Christian Stenger
3d33af3284 Lua: Silence warning regarding redefined macro
Change-Id: Ib7f6437e82d5c2de67df4ff4d4f6f99eb7ba7fc4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-22 06:52:19 +00:00
Knud Dollereder
1b52357d01 QmlProjectManager: Fix cmake generator update issues
Fixes: QDS-12518
Change-Id: I27d45213100e42117b130bcbbceb5e115ed68445
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-21 19:47:14 +00:00
Miikka Heikkinen
5a49c16694 QmlDesigner: Use space key to move close to object at crosshairs
When in fly mode in 3D view, crosshairs are shown in the middle
of the active split. Pressing space in fly mode when there is
a model at the crosshairs will move the camera close to the
model.

Fixes: QDS-12292
Change-Id: Id15c13458af3763f4e0712614cf9cf3ed695fb5d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-19 14:52:05 +00:00
Jarek Kobus
592762527e Android: Don't call waitForFinished() recursively
Change-Id: Ic49d040643cfb8f871e24fc617d15c72167e1d3c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-19 14:24:32 +00:00
Jarek Kobus
0aa5b86300 Process: Detect a recursive call to waitForSignal()
Assert that we don't call it recursively. If so, the waitForSignal()
returns false immediately.

Fixes: QTCREATORBUG-30715
Change-Id: I7195b2b1347f67262cc8ae6db5439f5ddd38b5bb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-19 14:24:27 +00:00
Marcus Tillmanns
26993a274e Lua: Add lsp support
Change-Id: I47a1f73a1e1191e116c7cf3b06db5af9e7548fc0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-19 13:54:26 +00:00
Marcus Tillmanns
f91d071c66 Lua: Clean up pass
Fixing constness, removing unused function, adding LuaEngine::variadicToStringList

Change-Id: If567ac83c04e5ce6f973c819f303c9cb790b3948
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-04-19 13:54:11 +00:00
Marcus Tillmanns
3350afeb61 Lua: Add FilePath:isExecutableFile()
Change-Id: I1e0984d7cb0ccab6a0092019a3fe133de76c2c77
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-04-19 13:53:51 +00:00
Marcus Tillmanns
aef6e9b87b Lua: Add FilePathAspect.defaultPath
Change-Id: Idb53db75f12960425a8ebec3fd047137b7a8207e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-04-19 13:53:43 +00:00
Thomas Hartmann
0496c872a3 QmlDesigner: Allow to add a signal
Change-Id: Ib34cb19c9a046d8a404c5be06099280f29686662
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-19 12:42:36 +00:00
Christian Stenger
4bcd45fb3c AutoTest: Fix running order for QTest tests
Users can rely on the order of test function execution as
there is a fixed running order.
Fix the order by using location information we have instead
of the display order inside the tree view.
Fixes the order for running selected tests, failed tests or
tests inside the current file.

Fixes: QTCREATORBUG-30670
Change-Id: I5229424c3c8a2a7e030ef95c98d6fb602e54cc87
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-19 11:55:28 +00:00
Christian Kandeler
3cd3596f99 Update qbs submodule to HEAD of 2.3 branch
Change-Id: Id26a75123e890845417711dd44e1950133e5ae3e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-19 11:32:20 +00:00
Marcus Tillmanns
ef8455f270 ExtensionSystem: Rename PluginSpecImpl to CppPluginSpec
Since we now have multiple classes inheriting from PluginSpec it makes sense
to rename PluginSpecImpl to the more accurate CppPluginSpec as it deals with
compiled plugins only.

Amends b39b192518

Change-Id: Icae9daed2be5a258a9918731a881c72cbe4f0fa4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-19 11:26:03 +00:00
Marcus Tillmanns
7cf2e4352c ExtensionSystem: Fix compile without WITH_TESTS
PluginSpecImpl::read is used outside of tests, but PluginSpecImpl itself
is only exported when WITH_TESTS is on. So compilation without
WITH_TESTS would fail. To circumvent this the ::read functions are moved
outside of the PluginSpecImpl and friend'd to it.

Amends b39b192518

Change-Id: I4bd8ce087267ab4e059cff2470ff882c7db6fd78
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-19 10:39:17 +00:00
Knud Dollereder
487eda9019 QmlProjectManager: Remove old cmake generator
and suppress warnings about .hints files not being part of the project

Fixes: QDS-12507
Fixes: QDS-12508
Change-Id: If3c2f5ce716b8744dd4fee91ec7bba5293163a97
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-19 10:22:42 +00:00