Commit Graph

88532 Commits

Author SHA1 Message Date
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
Miikka Heikkinen
2cd9efee63 QmlDesigner: Fix changing dynamic properties on root material object
Changing dynamic properties on a CustomMaterial root object didn't
trigger rendering. Also there were duplicate of the property generated
when it was changed, which made quick3d side ignore the property change.

Fixes: QDS-12469
Change-Id: Ia83eaa76fd4f43428a01baea9a3491a8917aa30d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-19 10:12:32 +00:00
Leena Miettinen
b27be7e2bf Doc: Move deployment info to Reference
Task-number: QTCREATORBUG-29361
Change-Id: Ibabac3192c3f2c1aa7ae5594ed6f5f3a915d774c
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Reviewed-by: Jarno Lämsä <jarno.lamsa@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tommi Mänttäri <tommi.manttari@qt.io>
2024-04-19 08:28:09 +00:00
Jarek Kobus
e012488ac8 Android: Get rid of missingEssentials field
Change-Id: I8e89266ed8e0ad56f00bb3ad769314d48084cd6d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-18 23:25:20 +00:00
Alessandro Portale
251fcdf38a Android: Avoid duplicate entries in SDK manager tree
Change-Id: Ic8b641b76c9be8a4410d4b7b8a9972050c29b467
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-18 16:30:18 +00:00
Thomas Hartmann
f84070f634 QmlDesigner: Latest effects do not require a custom parser
This also fixes the double rendering issue.

Change-Id: I8562fb0c4f3c0a57373e117f7a3deb44c71a37de
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-04-18 15:24:51 +00:00
Thomas Hartmann
cf05fa6846 QmlDesgner: Fix whitespace
Change-Id: Iaa0fd96bd553d1f0d081d30b2e8772e3db878b1e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-18 15:24:43 +00:00
Thomas Hartmann
2618d1b544 QmlDesigner: Create the import for the first node created
Change-Id: Id0c251857a69844318fecd40923fcd6a7e1ef33a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-18 15:22:39 +00:00
Jarek Kobus
caf2ad3a67 Android: Get rid of forceReload arg
Split arg-rich reloadPackages() into refreshPackages() and
arg-less reloadPackages().

Change-Id: Icf9ee6c9a805732d9015a49c862d9ba411786c13
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-18 15:18:57 +00:00
Robert Löhning
20f01b351c SquishTests: Replace wait condition strings with lambdas
Squish allows passing wait conditions as strings containing python code.
The only advantage I see is that the notation is a little shorter than
using a lambda. On the other hand, the strings can't get proper syntax
highlighting and cause false positive warnings about unused variables.

Change-Id: I226840fa26dc75d07d89f20647d069e2e866bbc9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-18 15:07:56 +00:00
Leena Miettinen
87fb3358d1 Doc: Update info about previewing on Boot2Qt devices
- macOS is supported since Qt 6.5, so just link to the
  Boot2Qt docs.
- Some writing style changes.
- Change the product name macro back to \QC, as the info
  applies to both products.
- Move the link targets for Boot2Qt docs to external-resources.qdoc,
  so that they can be maintained in one place.

Change-Id: Id749dbd58465106108a542db9822080942e12f1b
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-18 13:52:51 +00:00
Alessandro Portale
bfbbd7226b Themes: Reinstate DerivePaletteFromTheme for "Flat" theme
The Flat theme did not enforce the application palette, anymore, if run
on a system in dark mode. But it should, otherwise the system palette is
applied to parts of the application and might alter the appearance.

This reinstates the mechanism.

Fixes: QTCREATORBUG-30709
Change-Id: I2698cb09c8f299bd8f733214f2b0d8236aaa4660
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-18 13:50:13 +00:00
Miikka Heikkinen
a95ee86ad2 QmlDesigner: Reset zoom when aligning view to camera
Resetting the zoom after aligning edit camera to scene camera avoids
confusing behavior in some cases, primarily when the alignment is
triggered from outside 3D view.

Fixes: QDS-12348
Fixes: QDS-12350
Change-Id: Ic0c076ea3dff3f1be5f57e20c0dbbe6069867b51
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-18 13:38:57 +00:00
Mahmoud Badri
ad408553af QmlDesigner: Enable expanding content library user categories
Change-Id: Id3b49773b02e4922a06b71e6ed7a7098ed4d4062
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-18 13:20:15 +00:00
Cristian Adam
c0dfb3ce57 CMakePM: Hide QML clutter project files
Hide some of the QML files that we not marked as generated by the Qt QML
CMake code

Fixes: QTCREATORBUG-29631
Change-Id: I01fb571c0c3ff7d8a3861ddaaf7c6d6817c8cc51
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-18 13:14:17 +00:00
David Schulz
68492d9dcc Debugger: Fix crash on update debugger run configuration details
The old details widget gets deleted and a new one is created after a kit
emits the updated signal. So we need to guard the connect with this
detail widget instead of the aspect container.

Fixes: QTCREATORBUG-30706
Change-Id: I632213cd7d95c2f61b35679867d706b6c587da5a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-18 12:31:54 +00:00
David Schulz
c3c37b1062 LanguageClient: Allow to define Clients that cannot be added by the user
Used for programmatically created client types which should not be
addable by the user.

Change-Id: I38ba4f17d5e92415c1e167ecee5780f951818263
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit 5b9344e469)
2024-04-18 10:49:42 +00:00
Marcus Tillmanns
4b3abbf669 Revert "LanguageClient: Allow to define Clients that cannot be added by the user"
This reverts commit 5b9344e469.

Reason for revert: It was meant to go into master

Change-Id: If3bf55380ef58e3866e0d552167d4f1c063cc219
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-18 10:47:02 +00:00
David Schulz
5b9344e469 LanguageClient: Allow to define Clients that cannot be added by the user
Used for programmatically created client types which should not be
addable by the user.

Change-Id: I38ba4f17d5e92415c1e167ecee5780f951818263
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-18 10:28:50 +00:00
Alessandro Portale
6324d530f3 Themes: Make Classic theme work on dark systems
Amends: 89e9597365

Fixes: QTCREATORBUG-20889
Change-Id: I800b4c32f123bf0eef4b4d26ea4359573dfdca8a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-18 10:22:51 +00:00
Cristian Adam
01538332da CMakePM: Treat all default CMake source groups as …
… "Header|Sources Files" groups
Amends f76e0de7bc

Change-Id: I5e19427a481e87fb4d9761e3fad1727df52ca28b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-18 10:16:24 +00:00
Christian Stenger
f720835680 Tests: Fix build
Change-Id: I6d9475bf2d95a1075d7a761f49d8edff89a30f78
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-18 09:52:28 +00:00