Commit Graph

88532 Commits

Author SHA1 Message Date
Alessandro Portale
01040420a7 Core: Export Core::executePluginInstallWizard
ExtensionManager wants to execute the wizard, but it lives in another
plugin.

This change exports the former Core::PluginInstallWizard::exec as
Core::executePluginInstallWizard

Change-Id: I3ba068e9c8351355abfedfb9f6d6879de55b0534
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-28 12:39:06 +00:00
Ali Kianian
ed771ace4a QmlDesigner: Enable docking a header in PropertyEditorPane
A header component is defined in PropertyEditorPane.
This header can be docked to the top.
A header is defined for MaterialEditorPane

Task-number: QDS-12851
Change-Id: Ie5393f917803241da1f286bd05c226fd055b1174
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-28 12:17:03 +00:00
Ali Kianian
934a15b16e QmlDesigner: Make material editor toolbar fixed on the view
Task-number: QDS-12850
Change-Id: I230478e175e58180fb462943b3eb936f883fcf52
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-28 12:16:52 +00:00
Cristian Adam
43d57eb76f Aspects: AspectContainer emits changed() for contained items
Change-Id: I93e4659a13a1a36c1d4b54ead2770428d396421d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-05-28 12:02:55 +00:00
Marcus Tillmanns
bd50ee7573 Lua: Implement Utils::Lua
Change-Id: Ib5a7f63d1c37b29beb424707962d21102db5927c
Reviewed-by: hjk <hjk@qt.io>
2024-05-28 11:55:07 +00:00
Marcus Tillmanns
06e08178f0 Utils: Add global Lua interface
Change-Id: I8fe5813b7987f3c771a1747b1089fa2d1c717e97
Reviewed-by: hjk <hjk@qt.io>
2024-05-28 11:16:03 +00:00
Marcus Tillmanns
b9f2808384 Lua: Add connection guard
Improves safety by limiting connection lifetime to
lifetime of lua vm.

Change-Id: I508b0814fdda169f5e30d7c3282132e3c622a0a5
Reviewed-by: hjk <hjk@qt.io>
2024-05-28 11:13:20 +00:00
Mahmoud Badri
f752178576 QmlDesigner: Fix examples version handling
Example version should be <= QDS version to show in the examples.

Fixes: QDS-12853
Change-Id: Iaa4e6244a5451e05672f9001a0d74ef84144b1bc
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-28 11:11:45 +00:00
Mahmoud Badri
fa3a6a39d6 QmlDesigner: Rename user bundles json files to just bundle.json
Change-Id: I23440591083146d9630d0beec8a22efbc5339d35
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-28 11:07:27 +00:00
Marco Bubke
b01e039cec Sqlite: Update to 3.46.0
Change-Id: Ic2b2e75a7b88fa92409118381cf74c00bf120f85
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-28 11:06:57 +00:00
Marco Bubke
ec2642e362 Utils: Add to_underlying
to_underlying was added to C++23 to get the underlying integer type for
an enumeration.

Change-Id: Ib7262882a47cf4b060cff428bb10a6a65c089fc5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-28 11:06:50 +00:00
Marco Bubke
72df0a9ced QmlDesigner: Fix wild casts
Never use a cast for a dependency injection. If it can not be null use a
reference.

Task-number: QDS-12883
Change-Id: Ie63a4968f264587a8781f04fa10048e1a7371e44
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-05-28 11:06:44 +00:00
Marco Bubke
fd8cef3c6e QmlDesigner: Use the noexcept interface for optional and unexpected
Optional and unexpected have a interface designed after pointer usage.
That cannot throw exceptions. They added continuation too. That is
making it harder to make mistakes.

Change-Id: Ie9d41a2e69c7467a7e4ac4999825aede1326e529
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-28 11:06:36 +00:00
Marco Bubke
b8322aece2 QmlDesigner: Use error notifier for prototype and extension type name resolving
If the prototype or extension has an unresolved id, it needs to be
checked, if an exported name belonging to the prototype or extension was
updated. In that case the id has to be again resolved.

Task-number: QDS-12761
Change-Id: I7a733662cf37e13e8c2db53dec5a4f3e0a9b6ecf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-28 11:06:28 +00:00
Christian Stenger
26cfa86969 Cppcheck: Quote file paths
This patch fixes the most common issues with path quoting.

Fixes: QTCREATORBUG-28586
Change-Id: Ia5f400d062a2459f49288fcd4bc316ced2b269e6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-28 10:51:55 +00:00
Christian Stenger
67f18a1a56 Cppcheck: Finish progress bar on fail
Fixes: QTCREATORBUG-27961
Change-Id: If1bbd5b14ec77e8bde1617c692388a2868e3ce0f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-28 10:51:49 +00:00
Christian Kandeler
fbdc246ea8 CppEditor: Consider open editors in CppRefactoringChanges::cppFile()
... and get rid of the three copies of that code.

Change-Id: Iee95c1332fc782812f1181ee11f58d0ff4a67c6c
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-28 10:50:13 +00:00
Sami Shalayel
ee8ad68f5b Enable qmlls by default
Change the default values for enabling qmlls to true. Don't use the
latest qmlls version by default for now because qmlls will crash on qt
5.15 projects.

Also remove the "experimental" from the checkbox text.

Fixes: QTCREATORBUG-30851
Change-Id: I6cac396817eecb0d3bd071668d0588ec6eef1d4f
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-05-28 10:35:08 +00:00
Mahmoud Badri
bcf0594419 QmlDesigner: Use id if name is empty when adding a comp to user bundle
Change-Id: I64082413603310bc84d2b711e9e209fc990d1734
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-28 08:21:18 +00:00
The Qt Project
0c6b2b43a7 Merge "Merge remote-tracking branch 'origin/13.0'" 2024-05-28 07:17:55 +00:00
hjk
308fb3f3fd LayoutBuilder: Update demo
Backport the learnings and simplification from the real use to
the demo case.

Change-Id: I3f501b03c760484961bfd586735c0db53ba080db
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-28 05:51:05 +00:00
Alessandro Portale
b36ee3c287 Core: Enable starting of PluginInstallWizard with predefined archive
The wizard usually allows users to chose an archive file path on the
first page. The ExtensionManager would like to first download that
archive and then launch this wizard without said first page.

This change implements such shortcut.

Change-Id: Ifc7ffcc04a59be97bd389697977dbd38714237c7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-27 15:51:41 +00:00
Marcus Tillmanns
61119270f3 Lua: Fix compile on linux with clang and gcc std
Change-Id: I030e97678f45499973a27ba4e9e2c9d99dc3e298
Reviewed-by: hjk <hjk@qt.io>
2024-05-27 14:24:22 +00:00
hjk
8c61df1cff Handle QFontDatabase related deprecation warnings
QFontDatabase is 'all static' nowadays.

Change-Id: I1e20a7b8452961b8051d0299b89d161ded95d8fa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-27 14:22:17 +00:00
Leena Miettinen
b4c83a1a41 Doc: Describe hiding long paths in the locator
Task-number: QTCREATORBUG-30604
Change-Id: I1de86d364dc97b331abbe6010b103b33eed4cbee
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-27 14:00:26 +00:00
Christian Kandeler
3915b69eae ProjectExplorer: Generalize output parser multi-line Task handling
There were various parsers that had logic for accumulating lines in a
single Task. This is now done centrally, which not only saves code, but
also unifies the behavior.

Change-Id: Icea389ce5ff4ed6e131d30cbc06cc5dadfcc490e
Reviewed-by: hjk <hjk@qt.io>
2024-05-27 14:00:17 +00:00
Christian Kandeler
8d201ee5dc ProjectExplorer: Log regex matching in GCC output parser
Change-Id: I588125a4141cf4ee6b092f81bc85f2b4f2dbb890
Reviewed-by: hjk <hjk@qt.io>
2024-05-27 13:47:05 +00:00
Jarek Kobus
588c16ed49 Android: Make isValidNdk() static
Change-Id: I3e425fa6b7c7bf395e081c7e7899f11198b7b9fc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-27 13:05:17 +00:00
Jarek Kobus
d4464d8f49 Android: Hide gdbPathFromNdk() and lldbPathFromNdk() in cpp
Change-Id: I9f5923971dfa9e4431873734bb4195b565337229
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-27 13:05:10 +00:00
Jarek Kobus
ff0074415e Android: Hide toolsPrefix() and toolchainPrefix() in cpp
Change-Id: Id71d66239cd99f3f8b48bfafa5e76125adcfedc8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-27 12:41:45 +00:00
hjk
971938421c Use LayoutBuilder V2
This puts the implementation introduced in acf1ecb47f into use, after
significant simplifications in the class hierarchy. CRTP is not used
anymore, and the new tag based dispatch is also used for Layout::addItem,
effectively reducing the number of different code paths.

The Lua based settings access is disabled for now.

Change-Id: Idb6d1a25675378757c5267bdb630bcd4c1f52d34
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-27 12:38:48 +00:00
Christian Kandeler
e9b002ff7e ProjectExplorer: Refactor main regex pattern in GCC output parser
- Construct from named parts.
- Use named capturing groups.

Change-Id: Ib4d0e1fc2a66ea5336a0060324241be56cda4dba
Reviewed-by: hjk <hjk@qt.io>
2024-05-27 11:38:12 +00:00
Christian Kandeler
5bcb952fd8 ProjectExplorer: Refactor file pattern in GCC output parser
- Build up from named parts for more transparency.
- Use named capture group.
- Use non-capturing group for the drive letter, which we don't use.

Change-Id: Ibd00db500a39e067a57767d1e2bdefb14127ef3d
Reviewed-by: hjk <hjk@qt.io>
2024-05-27 11:23:03 +00:00
Eike Ziller
6a68df5fd1 UI guidelines: Update the rules for localization
We switched to single contexts with Tr::tr and have
FilePath::toUserOutput now, adapt the rules accordingly.

Change-Id: Ie73b8077dfd6bef56f709538db1d1b3ec7843041
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-27 11:17:32 +00:00
Christian Kandeler
0f3b37edb5 ProjectExplorer: Wrap gcc output parser regex in a dedicated class
We want to refactor the regular expression in such a way that it can be
understood by humans.
Step one is to abstract away the pattern matching code.

Change-Id: I84cf376e3ea6144348f82977bfb1636fbde732e5
Reviewed-by: hjk <hjk@qt.io>
2024-05-27 11:08:44 +00:00
Marco Bubke
10657d4a1f QmlDesigner: Return const & fileUrl
Change-Id: I80cf03c53692d5a0593fdc63009df715d8d5e2a5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-27 10:47:07 +00:00
Christian Stenger
5d00ebf2b2 Axivion: Prepare settings for multiple dashboards
Prepare reading and writing for multiple dashboards.
Adjust accessors to get or modify the correct dashboard.

Change-Id: I7c689e3d1c5cbc3ca7efffc2dbb1ca726cf66bbe
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-27 10:18:39 +00:00
Christian Stenger
178fc0b31b Axivion: Prepare multi-server settings
Use a central id to mark the current active server.
Prepare settings to handle multiple server, and adjust
network handling to act on the current active server.
No change in functionality so far.

Change-Id: I60ccc644b95b02b43d651acf9ce8bfefa36eecd6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-27 10:18:26 +00:00
Christian Kandeler
16c346c806 Utils: Add factory functions for ChangeSet
This greatly simplifies code that produces change sets with a single
EditOp.

Change-Id: If042bb91e5132b7141d88404cfbd3ba12632b52d
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-27 10:12:35 +00:00
Christian Kandeler
63c6ba1ba3 CppEditor: Add quickfix for ordering member function implementations
... according to the declaration order.

Fixes: QTCREATORBUG-6199
Change-Id: I37bbffeb53e0f16589ffff2f54232e21b300382c
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-27 10:11:44 +00:00
Christian Stenger
29b1727b16 SquishTests: Ignore non-kit items
Change-Id: Id9b209171fc296fc65b6c6c1755df491ba7d4997
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-05-27 10:08:10 +00:00
Miikka Heikkinen
1cd3667dce EffectComposer: Fix channel property saving
Channel properties were saved as regular int properties to .qep files,
making the property control incorrect once you reopened it in effect
composer.

Fixes: QDS-12835
Change-Id: I833763f385e64420bc5f1a1da9266869e739d3be
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-27 09:58:43 +00:00
Jarek Kobus
63a93760d9 ClangUtils: Get rid of GenerateCompilationDbResult struct
Replace it with expected_str<FilePath>.
Check periodically for cancel request inside
generateCompilationDB() body.

Cancel the possibly running task on ClangCodeModelPlugin
destruction.

Handle the cancellation.

Change-Id: I8bcb956bc03627b4a17a3510a76810e66c82815d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-27 09:47:13 +00:00
Robert Löhning
d3b2bc32cc SquishTests: Don't call waitForCleanShutdown() at end of translation test
It gets called by the following __removeTestingDir__().

Change-Id: I8846f8b841063053d56f7cbe7c1d3cd37655aa73
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-27 09:45:32 +00:00
Cristian Adam
fa39d0490e CMakePM: Remove per CMake tool "Auto Run" setting
The setting is global for a few Qt Creator versions now, and it was
marked for removal in Qt Creator 13.

Change-Id: Ibca753b53a27ce89cba25a8c55c080e5597c4f57
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-27 09:14:40 +00:00
Leena Miettinen
f2d4fa794a Doc: Reorganize "Adding Docker Devices"
Task-number: QTCREATORBUG-29361
Change-Id: I1946c4667c4b5c27040988747ba4d25f0a429ed4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-27 09:12:46 +00:00
Leena Miettinen
b01a7a18f5 Doc: Reorganize info about developing for QNX Neutrino devices
- Include text from the remote Linux device docs
  (from a separate .qdocinc file)
- Remove the embedded platforms topic as the info is now in the
  overview and How To topics.
- Remove the note about QNX support being experimental.

Task-number: QTCREATORBUG-29361
Change-Id: I5ad807905ead7322900e9cdeb8f7e8660751d265
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marianne Yrjänä <marianne.yrjana@qt.io>
Reviewed-by: Inkamari Harjula <inkamari.harjula@qt.io>
2024-05-27 09:11:56 +00:00
Eike Ziller
928f6d6ac4 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	coin/instructions/build.yaml

Change-Id: Ie5530baed71a79d49cb107d3f82e4427475c6ff7
2024-05-27 10:13:23 +02:00
Marcus Tillmanns
7a4bbab6f7 Terminal: Fix Environment
Parsing entries like:
"name=value=this" would drop the "value=" part from the environment variable.

This patch fixes that.

Fixes: QTCREATORBUG-30844
Change-Id: Ia50d4180bd8f966f61f92e550b046c8ece529e1b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-05-27 08:09:16 +00:00
Artem Sokolovskii
045899272c ClangFormat: Add logging for bug fixing
Change-Id: I3c45c2b49e976da3609b3d8cb964b64f60a7e55b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-27 08:04:16 +00:00