Commit Graph

88653 Commits

Author SHA1 Message Date
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
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
Teea Poldsam
10bcd931c6 Doc: Remove FAQ
Fixes: QDS-8661
Change-Id: I107fe76afa37d17fa822c92eca59db5729d73c55
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-22 09:12: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
Teea Poldsam
8c23e1406e Doc: Update Adding flow items
Fixes: QDS-11405
Change-Id: I1c6e1811a1e5db48e912159b817e2ba7edbc3761
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-04-22 08:27:46 +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
Alessandro Portale
89682a866e Android: Fetch latest command line tools for "Set Up SDK"
Don't install outdated ones.

https: //developer.android.com/studio#command-line-tools-only

Change-Id: Ifd9c6a2e90a63c6113c859910365689f19b3a532
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-04-21 17:17:07 +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
Shrief Gabr
778688154d QmlDesigner: Fix model editor layout issues on adding rows/columns
Task-number: QDS-12352
Change-Id: Ie37d1afe2a243d08a09a55778cf0bf00de8f327c
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-19 14:34:22 +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
Leena Miettinen
b7446fca8b Doc: Add a note that qmake fetches compiler info from mkspec
Fixes: QTCREATORBUG-30700
Change-Id: I35abdad15de7f4ea7f1a3a43302773372f49eff0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-19 12:51:37 +00:00
Leena Miettinen
bdada3c5ff Doc: Move Debugging info into "How To" and "Reference"
- Turn "Debugging" into an overview topic
- Remove FSF GDB as it is not supported anymore

Task-number: QTCREATORBUG-29361
Change-Id: I1d8ce78a2f89a85a1337d83aa6011f06afac4e41
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-04-19 12:48:39 +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
Eike Ziller
35fb079104 German translation: Unify to "Quell-" and "Quelltext"
Remove a few usages of "Source" instead of "Quell".

Consistently use "Quelltext".

Task-number: QTCREATORBUG-29370
Change-Id: I15feb7fb614e70e1a59057a5cd47453be38cf7c3
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-19 12:18:51 +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 Stenger
8781befcfb SquishTests: Wait for combo box popup closing
On systems where some ui features may be using animations
the animation could interfere with the test.
Explicitly wait a short amount of time as there is no
easy way to achieve this.
This fixes a couple of tests on macOS.

Change-Id: Ib79b43955ebf218342db108a43979093994fba02
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-04-19 11:55:15 +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
Eike Ziller
277f4bad9f Translations: Fix lupdate warning
About duplicate messages.
Amends 7f8adab0d0

Change-Id: I21c54ce8b3ddbaed5294e00c1b758f3386c9e777
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2024-04-19 11:24:37 +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
David Schulz
6e6d25d117 LanguageClient: generate issue pane entries for diagnostics
The clang code model already generated issue pane entries for received
diagnostics. Move the tracking of these issue pane entries to the
generic language client support and also generate entries for other
language servers.

Fixes: QTCREATORBUG-30549
Change-Id: I29f2ffbf199c3fdc5ca59a670f5033c833b96a49
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-19 10:13:49 +00:00