Commit Graph

88653 Commits

Author SHA1 Message Date
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
Cristian Adam
d2cb8f0ccb QtSingleApplication: Fix unreliable '-client' option
QLockFile documention states:

  When protecting a resource over a long time, however, the
  application should always call setStaleLockTime(0ms) and then
  tryLock() with a short timeout.

Without the 0ms stale lock time the new Qt Creator instance would think
that the lockfile is stale and starts a new instance!

Amends dd1c9d1b71

Fixes: QTCREATORBUG-30624
Change-Id: I0c0166239242895e25c7bf05d59a371cd0295758
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2024-05-27 07:56:28 +00:00
Miikka Heikkinen
72b3f2a090 EffectComposer: Simplify temporary file handling
QTemporaryFile was used just to generate file names for shader files,
and the actual files didn't get removed at shutdown. There was also
a possibility of reloading effect quickly, which left additional
dangling compiled qsb files because they are generated asynchronously
with a separate process.

Now temporary shader files are gathered into one temporary directory,
which removes itself at shutdown, so dangling files won't be an issue.

Fixes: QDS-12711
Change-Id: I7ce682acb1a0d8d58b84129c4e0442c8fb63ac2f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-27 07:32:05 +00:00
Teea Poldsam
7724da3027 Doc: Add topics to Best Practices section
Fixes: QDS-12756
Change-Id: I34db98abb6c1b30e0df94440711ff1979552a25d
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-27 06:41:38 +00:00
David Schulz
a454a7f282 LanguageClient: Automate setup of rust-analyzer
Change-Id: I6f97840ec55675219071d4a9644b8cba7f70f24e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-27 06:10:05 +00:00
David Schulz
3b8d4c968c Lua: track meta files in CMakeLists.txt
Change-Id: I72d0358b675f76fb39f340c748602dc24da7b08e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-27 03:59:31 +00:00
Christian Kandeler
389b7b211c TextEditor: Make RefactoringFile::apply() a no-op for empty change sets
To simplify some calling sites.

Change-Id: I9736e88053659e5e90bca7b70e6d7e84b0d4fb4e
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-26 15:54:13 +00:00
hjk
3697aac20e Debugger: Speed up QObject recognition
Change-Id: Ib9847725c1e97ad774173ecb95094791ff5d1bbc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-24 13:52:51 +00:00
Leena Miettinen
8cf1247d5f Doc: Add docs for Utils::TypedAspect
- Updated the description of Utils::BaseAspect docs
- Documented Utils::TypedAspect
- Fixed the \fn for setDefaultValue(const ValueType &value)

Change-Id: Ief1acee1b4f6fbf33e2cd3e870c109878a6b9e7c
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-24 12:26:47 +00:00
Christian Stenger
13ba5ac62b Lua: Fix qbs build
Install lua files to shared data by default.

Change-Id: I550f0f3a888376c93ad8b68bc7630b6f5f029979
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-24 12:22:12 +00:00
Christian Stenger
731068a6a3 Lua: Fix qbs build
Amends eec48b8f8e.

Change-Id: I0328f44a6cd33116f5ac51f8127519bf734b1879
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-24 12:22:05 +00:00
Christian Kandeler
09f747f7d1 TextEditor: Add a convenience overload for RefactoringFile::apply()
... and make use of it.
In most contexts, apply() immediately follows setChangeSet(), so
combining the two can save a lot of code on the call site.

Change-Id: I421001bd47000cb64678a57b19760becf59a4863
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 11:36:58 +00:00
Miikka Heikkinen
c5d0263b32 QmlDesigner: Add look-at gizmo to visualize 3D edit camera look-at pos
Look-at gizmo can be toggled from visibility toggles submenu.
Look-at gizmo is hidden when fly mode crosshairs is visible.

Fixes: QDS-12767
Change-Id: I2c71b23f14e403c9774498937764607cfea3bd1d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-24 11:17:07 +00:00
hjk
708adca904 Fix deprecation warnings about QLocale and the C-word
Change-Id: I1a9101cfdbaea040601916bb3c519518ab8caa54
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 11:15:14 +00:00
Mahmoud Badri
c881408e5c QmlDesigner: Prevent adding bundle items back to content lib
Change-Id: I65e2eb936fa741599ffd087f903e33a71d01de99
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-24 10:13:51 +00:00
Miikka Heikkinen
411d74cbce QmlDesigner: Improve 3D import dialog logic
Got rid of the separate accept button. Now the import button turns into
accept button after preview is shown, as long as user hasn't changed
any options.

Import preview is also generated automatically using default options.

Fixes: QDS-12822
Change-Id: I5f1080f855cf1ba09e917cef7741534c0fb16d8c
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-24 10:03:55 +00:00
Marcus Tillmanns
eec48b8f8e Lua: Add Install module
Allows plugins to install packages they might need.

Change-Id: I4948dd0a6568e093fc35e4486d2e2a084090e103
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 09:10:20 +00:00
Marcus Tillmanns
f54a83ff45 Compiler Explorer: Add Qt template
Change-Id: Ib071ceeb4dd1274f353b939f5bea53e0b0ed2bdc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 09:09:50 +00:00
Mahmoud Badri
5cc9cf63b7 QmlDesigner: Confirm overwriting 3d items in content library
Fixes: QDS-12826
Change-Id: I29ee10f670ba38e219375f0217f89809a496f45c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-24 08:24:54 +00:00
Jarek Kobus
3a84314772 MessageManager: Get rid of instance() method
Don't schedule queued calls to MessageManager::writeSilently()
because the implementation is already thread-safe.

Change-Id: I389afb9400afe6b3bc2716c0e352828c5c2cb909
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 08:03:32 +00:00
Christian Kandeler
940bb0f27d QbsProjectManager: Fix moving files between project nodes
E.g. from one group to another.
After removing the file from the first group/product, we need to wait for
a re-resolve before we can add it to the new group/product, because
otherwise the location stored in the build graph might not match the file
contents anymore, causing the insert operation to fail.

Change-Id: I0a6a92cf0a1aca6ecedeb9c4606809e5d65bb97d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-24 07:59:56 +00:00
Mahmoud Badri
2a8de8ab8e QmlDesigner: Handle abort reason in PreviewTooltipBackend::showTooltip()
Change-Id: Ib71d4e7e2e74d7c8fbcc74188a155a08d610be00
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-24 07:59:00 +00:00
Christian Kandeler
5cc44b8cab CppEditor: Make more use of CppQuickFixInterface::currentFile()
A CppRefactoringFile is created for us when quickfixes are collected, so
make use of it instead of creating a new one.

Change-Id: I133b43f92d1fbea82aa25df025cfc257691de2a6
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 07:58:48 +00:00
Christian Kandeler
8577ab8bcb ClangCodeModel: Bump minimum clangd version
... and throw away old workarounds.
The current clangd version, to be shipped with Qt Creator 14, is 18.1, so
we can safely bump the minimum version to 17.

Change-Id: I74fd5997196d774b6c47dcb522284953ef82ad9c
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 07:58:22 +00:00
hjk
01568f5d75 Warn about deprecated Qt functionality (only) for Qt <= 6.4
These are the once that we could actually handle.

Change-Id: I3c49779e9aabee76d357285a9210062d580f01ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 07:29:53 +00:00
Leena Miettinen
07b5c96194 Doc: Fix more QDoc warnings
Change-Id: Ic7f4170276aa40a32c9394c9fad0d920971bf873
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 07:19:27 +00:00
hjk
917523d7e3 Fix a few {QByteArray,QList}::count related deprecation warnings
Change-Id: I493e557a2ec976560c9e37312d8ae860490a2831
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 07:06:47 +00:00
hjk
1e9c11c3b3 Utils: Make injected default dialog parent better re-usable
... and use it for CheckableMessageBox. This enables using
the proper parent e.g. in upcoming changes to ExtensionSystem.

Change-Id: Ib0e52cbd3e73dc628955918e3f443ff65cccb189
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-24 07:06:41 +00:00
Eike Ziller
a87ed65dbb Editors/Help: Open navigation history menu on right-click
Change-Id: I216dde672d84485511c3ac277eb5ab091095d4e1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 06:55:54 +00:00
Teea Poldsam
b21fe3c7b1 Doc: Add info about live previewing in different sizes
Fixes: QDS-12821
Change-Id: I4753d48ea47f92870594633a45672921ca3da031
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-24 06:52:43 +00:00