Commit Graph

72811 Commits

Author SHA1 Message Date
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
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
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
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
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
Marcus Tillmanns
9019520d62 CompilerExplorer: Fix Undo/Redo actions
Change-Id: Ib3f55467764600d0b1e4ef25b53874a4d37a7ba7
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-18 09:31:40 +00:00
Thomas Hartmann
c709e6d555 QmlJS: Improve/simplify error message
Task-number: QDS-12149
Change-Id: Idaa9bb2624aa3591cafd3ea6c8b62b9dea7cb61a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
2024-04-18 09:17:01 +00:00
Marcus Tillmanns
c9299cad64 LanguageClient: Fix storing settings
Amends: 6294379a1e

Change-Id: I9888ffa39d525edc0e5bf96a7f0a9e1eaad7168b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-18 08:55:36 +00:00
David Schulz
beff48609c Debugger: add symbolgroup dumper to cdbbridge
Change-Id: I70f9831873cd17f0ee6a59c4345f2a28921c41bf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-18 08:17:26 +00:00
Jarek Kobus
5201af6574 Android: Get rid of forceUpdate arg from allPackages()
Change-Id: Ife9b04fc7314ac89447176fed0543949e621979b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-18 07:05:00 +00:00
Jarek Kobus
400088fa3c Android: Get rid of forceUpdates arg from filteredPackages()
Inline this function.
Fix const correctness.

Change-Id: I4ff3f9c03e5bc23c0e71ca6635718c89b883308b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-18 07:04:48 +00:00
Eike Ziller
77d7106b3a Update recent projects asynchronously
Avoid blocking Qt Creator whenever it gets active or projects change, if
some kind of network mapped path is in the list of recent projects. We
check for existence of recent projects, and that can take a long time in
that case, especially if the target is not connected. We already avoid
checking on explicit IDevices, but that doesn't help for other kinds of
mounted directories.

Maintain an "exists" state for each item and update that
asynchronously, informing all interested parties of changes with the
recentProjectsChanged signal. The state is saved in the settings,
meaning that projects that were not found previously start out hidden,
under the assumption that the existence check is fast for them if they
become available again.

Fixes: QTCREATORBUG-30681
Change-Id: Ic39a88b6b5128c3ae4582a6c66fc16be4b297e56
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-18 06:07:23 +00:00
Eike Ziller
28b14de384 Tr: Some "JSON" fixes
Change-Id: I20dd41a4a979fa35fe8696b00586096ca5c33d4b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-18 06:06:58 +00:00
Eike Ziller
7f8adab0d0 Translations: Fix various \n, full stops, spaces
Add missing full stops, remove space at beginning and end, remove end
lines at end

Change-Id: I4ce28f578e13e100dcfbd8ef70630462faf407fc
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-04-18 06:06:45 +00:00
Eike Ziller
d4e85eff6f Themes: Set default theme depending on dark/light on Linux too
By checking if the system palette's text is lighter than window
background.

Change-Id: I450976546f949331136cb94f4f07d09b3340a432
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-18 06:03:31 +00:00
Christian Stenger
55a312b909 Lua: Silence warning
Change-Id: Iec6511b7fca648115f8a350b8de3962c325abf6c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-18 04:45:36 +00:00
Alessandro Portale
c10005e274 ModelEditor: Improve selection and layout of elements
Change-Id: I199e2c4402519479cb098ae2c6665cd7f0ea12a1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-18 01:44:03 +00:00
Eike Ziller
89e9597365 Set palette also for light/mixed (flat) themes if needed
We cannot assume that the default palette on the platform
and its theme fits the Qt Creator theme. If the system is dark, but Qt
Creator's theme is light, we need to set the theme palette on the
application.

Some themes already enforce the theme palette unconditionally (design-
light, and the dark themes). We don't want to set the palette
unconditionally for our flat default themes though, because for example
on macOS the light and dark colors that we get from the system are
always good and match the Qt Creator theme (because we tell the system
that our application is light/dark explicitly). Add a new
DerivePaletteFromThemeIfNeeded flag as an alternative to
DerivePaletteFromTheme for this.

Fixes: QTCREATORBUG-18281
Task-number: QTCREATORBUG-23187
Fixes: QTCREATORBUG-26817
Fixes: QTCREATORBUG-28589
Fixes: QTCREATORBUG-30138
Change-Id: Id0042980807fa2efd663b856a45255bb453227fd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 14:03:10 +00:00
Jarek Kobus
79f488bc47 Android: Remove unused signals
Change-Id: I89116e51ffdbbb326241cf8250c7d11ec30839da
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 13:40:31 +00:00
Jarek Kobus
bd282f1ada Android: Get rid of onLicenseStdOut()
Make code more readable.

Change-Id: Icc01a90d7f1469bb58fba325bca728e002c79512
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 13:35:41 +00:00
Christian Kandeler
d6ae6ce5e6 ProjectExplorer: Fix copy/paste error in settings key
Amends e1b3c3e357.

Fixes: QTCREATORBUG-30696
Change-Id: Ifc0625c5ba7dadb59dfcf8af58bc190f25955746
Reviewed-by: hjk <hjk@qt.io>
2024-04-17 13:30:32 +00:00
Jarek Kobus
b8e1b33455 Android: Unconvolute onLicenseStdOut()
Drop notify arg and dispatch it on the caller side.
Return std::optional<QString> and pass the cached output
in case of assertion.

Change-Id: I4e738148ef248bd85a3a9260c07af30bf1586805
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 12:45:52 +00:00
Jarek Kobus
3ea0a90720 Android: Make onLicenseStdOut() static
Get rid of private m_licenseTextCache field of AndroidSdkManagerPrivate
and make it temporary variable inside
AndroidSdkManagerPrivate::getPendingLicense() instead.

Change-Id: I20a09f04a90cf1054e01d7c4fc4169493f9750ce
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 12:45:11 +00:00
Ali Kianian
f006cfb233 QmlDesigner: Warn the user if the project is not imported
When the project is not importd in the design document, DataStore cannot
be found by the project manager. User should add it to make the Model
Editor work. So we will warn the user in the Model Editor view.

Task-number: QDS-12119
Change-Id: I313e5553e8b0a0ef3b97c50d61db80c0a8d382f8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-17 12:02:35 +00:00
The Qt Project
8910d0bda1 Merge "Merge remote-tracking branch 'origin/13.0'" 2024-04-17 11:29:24 +00:00
Eike Ziller
0fe7350368 Merge remote-tracking branch 'origin/13.0'
Change-Id: I0892d8e54930bb5a65dc51117b8ca7d70ce300a3
2024-04-17 13:29:02 +02:00
Christian Stenger
4fcc003668 Lua: Add Lua plugin to qbs build
Change-Id: I1c1f0408f0e0af3dd3b2ec9275a0d3cd8794918f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-17 11:11:38 +00:00
Eike Ziller
1f16237736 Themes: Remove ApplyThemePaletteGlobally
It is always the same as DerivePaletteFromTheme, so just use that in all
cases.

Change-Id: Iac9b91bb7792778601a59f761e015ff292f86da7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 10:41:41 +00:00
Cristian Adam
d4d8ea98b7 TextEditor: Add Flex/Bison mime types
Fixes: QTCREATORBUG-30686
Change-Id: I8f220be4445960573300e76939069788e70ac333
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-17 10:36:10 +00:00
Christian Stenger
f1fdd8a619 QmlJS: Fix completion of enum
Keys of an enum value are accessible through the object
wherein the enum is declared.

Task-number: QTCREATORBUG-19226
Change-Id: I3c4426973eaa13118af498bf750afcb86487610a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-17 10:31:03 +00:00
Jochen Becher
f057c1af70 ModelEditor: Add model tree filter
A new button in the top bar opens a filter for the model tree which
allows quick search for model elements

Change-Id: Ibfe229890cb79e64fdbbe62f74681add102b5ccf
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 07:41:45 +00:00
Jochen Becher
db52bf779c ModelEditor: Fix linked files support
Adding missed integration of one change for linked files.

Change-Id: Ie3c98ef8ab013c67fe8d1b12ae9ac5d7f4556161
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-17 07:39:34 +00:00
Jarek Kobus
b7f7d1191e Android: Simplify connection, avoid using bind
Change-Id: I41f5cd7919eae26e3dd7b203c171be8bb61e45db
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-16 16:21:54 +00:00
Tim Jenssen
7bef3c773a QmlDesigner: fix build on macOS
Change-Id: I7814429f1b1ce04d37c202e3f47f40ab39ad430a
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-16 14:44:03 +00:00
Knud Dollereder
b17cd52f84 QmlProjectManager: Generate file to define the default build path
when opening the root CMakeLists.txt with QtCreator

Change-Id: Ia448dab1b3161471fe2bb7870ffb79e68dd579fc
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-16 14:33:45 +00:00
Knud Dollereder
3e42b144ba QmlDesigner: Fix curveditor playhead update issues
Change-Id: I04b3502395f0b0b25bca785acf220f69ba3428bf
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-16 14:11:30 +00:00
Mahmoud Badri
4591293fd9 QmlDesigner: Add user texture bundle
Fixes: QDS-12390
Change-Id: I512a8748bbb6a282589f05293507c110162e7f1d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-16 14:01:58 +00:00
Shrief Gabr
ece3a60cfa QmlDesigner: Prevent QDS crash during asset import in debug mode
Task-number: QDS-12436
Change-Id: I5ecac614faff58a314ec2886730e4d69f717885b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-16 14:01:41 +00:00
Thomas Hartmann
1f4d1a5820 QmlDesigner: Use different changelog path for QDS
* Do not deploy Qt Creator changelog for Qt Design Studio
* Set minimum size on combo box

Change-Id: Ic069c76b5a02963972ec199553ce9e27c820f75a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-16 13:58:47 +00:00
Marcus Tillmanns
08d9cb86a9 Lua: Add first plugin
Change-Id: I207b986e7ce17aad544f1bdaba29fd4930ad679c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-16 13:53:05 +00:00
Marcus Tillmanns
c0a0d2eecd Lua: Disable warnings for lua library
Change-Id: I1c84b73fb61279216128b689d67a64d3fc3dd181
Reviewed-by: hjk <hjk@qt.io>
2024-04-16 13:52:19 +00:00