Commit Graph

85691 Commits

Author SHA1 Message Date
Eike Ziller
3363d71888 Build: Fix handling of (s)ccache support
So it also works when building individual projects like cdbext

Change-Id: Ibb9cac77146a9f19cbbe22f2c7257b951f38f3fc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-10-17 07:30:51 +00:00
Christian Stenger
67ad0cf556 AutoTest: Improve Catch2 wizard
Since version 3 of Catch2 it is recommended to use the
approach to link against Catch2 instead of using a single
include.
Make both variants work. There is still a third variant of
using a single include for version 3, which is left out
here, but can easily be fixed for Catch2 users.

Change-Id: I2c25837cb1df4b460b662466dde68563fa7d713c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-17 07:28:47 +00:00
Christian Stenger
bded214791 AutoTest: Improve GTest wizard
It is possible to use the header-only approach as well
as linking against googletest, so make this explicit
inside the wizard and fix the projects for the
respective choice. The old approach could work, but
mostly coincidentally.

Change-Id: I5b1c0b8dfd9a2ffac3268fc4c724ba47c2bf124c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-17 07:28:38 +00:00
Marcus Tillmanns
98d3508baa Docker: Fix deadlock
The blocking queued connection could block the main thread
if the main thread was blocking for an action that would access
the docker device.

Change-Id: I79c0c74688ac77f2763b9aa748386f27be011304
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-17 07:25:09 +00:00
hjk
b26e12e199 Debugger: Add a dumper for Utils::Key
Change-Id: I7e586b622160d5b06a3971fec825521231c09522
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-17 07:11:14 +00:00
Cristian Adam
16b147d563 CMakePM: Expand macros in cmakeExecutable CMake preset value
The specification allows this, so we need to support it.

Task-number: QTCREATORBUG-29643
Change-Id: I8bd0a91ba05d2ed27b7a7af2d268539de020826f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-17 06:36:29 +00:00
Tasuku Suzuki
f1085b324e ProjectExplorer: Avoid accidental changes on spinbox via mouse scroll
- Introduced an Utils::attachWheelBlocker() to disable mouse wheel events on the "Parallel Jobs" field.
- This prevents unintentional modifications when users inadvertently scroll over the input.

Change-Id: Iccb93305fbcf399cae683412078782b5ea9f4ad6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-17 01:55:14 +00:00
Cristian Adam
12a6d9e5dc CMakePM: Update CMake conan to latest version
Url: https://github.com/conan-io/cmake-conan/blob/develop2/
conan_provider.cmake
sha: 451fa97d2c59c07b13fb4812a64b2a6391f9e781

Change-Id: Ia52f5d856cf045d7a1d1871d6d43fd1d014439c4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-16 20:05:21 +00:00
hjk
13f5367611 Core: Use icon based on document's full path
This makes a difference when one wants to e.g. mark non existing files.

Change-Id: Id7c2a53fa91fb9638e9a08a746614a3f04da400f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-16 13:43:34 +00:00
Eike Ziller
d62f368ceb Tr: Adapt to source string change
Amends 0634f9259b

Change-Id: I4fd8a3e8d7503d14676380a2c0eac958f99814ae
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-16 13:19:44 +00:00
Eike Ziller
1359e9c84f Tr: Fix some plurals
Change-Id: I9d7a52a64536e6e1c0a9da4f3cb2f3a116afb6cd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-16 13:19:28 +00:00
Eike Ziller
abeb2287ce Tr: Fix some quoting
Change-Id: I91c515822d48b4efb7c7869c5afe06b5375bf20e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-16 13:16:00 +00:00
Leena Miettinen
3d3a3c8ba8 Doc: Fix grouping of the Record screens topic to "How to Use Qt Creator"
Change-Id: Ic967149435fbb772cfa81e2cdf7eb52fb9baecaa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-16 12:40:12 +00:00
Artem Sokolovskii
0634f9259b Tr: Remove full stop in lable names
Fixes: QTCREATORBUG-29355
Change-Id: Ib3769c1c797c0bc500b5b60e2b06b6f8ab7a6fb2
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-16 12:33:28 +00:00
Christian Kandeler
ab16e61ab4 CppEditor: Do not match scope names in "all symbols" locator
Instead, put the scope name into the extra info.
Amends 91dbac0303.

Fixes: QTCREATORBUG-29133
Change-Id: I7eb0d76782135c4246769728451985dc72e31f4d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-16 12:28:04 +00:00
Christian Kandeler
b6d7990f25 TextEditor: Add missing colon to label text
Change-Id: Ie8b727d2405ff14f0ce7aa55dec4d56514405b37
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-16 11:28:24 +00:00
Artem Sokolovskii
358ecee5e8 DAP: Remember current engine after restart
Change-Id: I13a6c559a3a5bb9f40c95ef3932d796776cd26ce
Reviewed-by: hjk <hjk@qt.io>
2023-10-16 11:08:41 +00:00
David Schulz
cad73e4f1a LanguageClient: avoid assert on init response
Fixes: QTCREATORBUG-29748
Change-Id: I6b86906f302be6e0eb3a89eaf851f7231bf78586
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-16 11:03:29 +00:00
Leena Miettinen
3078aaadcf Doc: Describe debugging CMake project files over DAP
Task-number: QTCREATORBUG-29392
Change-Id: Iceb7f0d07cae62e14b2e2c52c43aaaca090ad07d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-16 10:55:45 +00:00
Eike Ziller
f1fe8392d2 Tr: Fix shortcut display for exiting FakeVim
Qt "Meta" is macOS "Control"

Change-Id: I9c2ca5fe25d70da97871e54060c892eb6fa78e0a
Reviewed-by: hjk <hjk@qt.io>
2023-10-16 10:23:26 +00:00
Eike Ziller
4bf97ce30c Change log: Make reference to godbolt.org more explicit
Change-Id: I19a5acd21c7168388a0bc6f4b6299af7e2ebc37b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-10-16 09:43:45 +00:00
Marcus Tillmanns
a4df0a3cc4 CompilerExplorer: Add "powered by" label
Change-Id: I0006d314ee69f863e48196a7719a3ef7ebc127ae
Reviewed-by: hjk <hjk@qt.io>
2023-10-16 08:07:36 +00:00
Marcus Tillmanns
8475872e10 CompilerExplorer: Add missing translation
Change-Id: If12a0530addf3c815d7b3a25b6dfdd90d29361a6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-16 08:05:50 +00:00
Leena Miettinen
3e404945cf Doc: Describe the Antialias check box
...in Edit > Preferences > Help > General. Used to disable
antialiasing of help text.

Task-number: QTCREATORBUG-29392
Change-Id: Idc9611d4dd514f8099231b937634cc4da540e957
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-16 08:00:36 +00:00
Leena Miettinen
a4bc7b6ec2 Doc: Describe the line and column indicator
It now shows information about all cursors in the current
document, including selection length for selections.

Task-number: QTCREATORBUG-29392
Change-Id: I160f618215ee969ebb8509bf196c5e4df171b83d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-16 08:00:21 +00:00
Leena Miettinen
7064fd1a32 Doc: Add option names and paths to the options into the change log
Task-number: QTCREATORBUG-29392
Change-Id: Ia34ecc376700a0be3721de94562ce05d0ceeda82
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-16 08:00:06 +00:00
Leena Miettinen
3e1ac24141 Doc: Describe the "Sort results" option in md locator filter config
Users can clear the check box to use the sorting from the tool.

Task-number: QTCREATORBUG-29392
Change-Id: I8c656b7dd480ebc4bf16be33b198989bd65d8ecd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-16 07:57:32 +00:00
hjk
5859384250 Debugger: Update internal buffer before checking dirtyness
Fixes: QTCREATORBUG-29746
Change-Id: I63f3c5bd2c628b42ba23dd19d80a410dbca8cfc1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-16 07:45:12 +00:00
Cristian Adam
d7f44cdd24 CMakePM: Enable ANSI codes colored output
Qt Creator is able to display colored output for the _Compile Output_
and _General Messages_ panes.

This commit enables CMake and tools to use this functionality.

See https://cmake.org/cmake/help/latest/variable/
CMAKE_COLOR_DIAGNOSTICS.html and http://bixense.com/clicolors/ for more
details.

Change-Id: Ied4058bbd2522750d559b05d585092830ce3a911
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-16 07:29:56 +00:00
David Schulz
eab779d13a LanguageClient: report error for requests on unreachable server
Change-Id: I5444279b544a1aab3896f9e12ab7cad595a49267
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-16 07:21:25 +00:00
David Schulz
085949bbae LanguageClient: do not assert on sending messages to a dying client
Fixes: QTCREATORBUG-29747
Change-Id: I14067695425d74eaeaa255b370ebf4106c0ac591
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-10-16 07:21:15 +00:00
Cristian Adam
184509228a GitHub: Mark build as failed if the tests fail
We have now 100% test pass rate, so we want to keep it this way.

Change-Id: Ie7dc5fa24921a1b32eff09470cc77ba01e65939a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-13 16:37:25 +00:00
Tim Jenssen
c5e4010842 QmlDesigner: increase version to 4.4.0
Change-Id: I6c628d67162daad1921985c7f79676811df1647c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-13 15:21:10 +00:00
Marco Bubke
1faa8e29e2 Nanotrace: Add asynchronous trace points
With asynchronous traces you can follow complex tasks.

Change-Id: Ia0fd20f34f3529c59eff5d222c8d87ac5dacd514
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-13 15:17:59 +00:00
Marco Bubke
33084f228e Nanotrace: Only print existing trace points
Change-Id: Id65b4154eac7d3cfda247514b7a59abfd7f6d0a5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-13 15:16:10 +00:00
Marco Bubke
d98fa1f173 QmlDesigner: Fix typo
Change-Id: I95d015bde565995d3c5429e0dbb94782e2dd0981
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-13 15:15:59 +00:00
Marco Bubke
c4deafc555 Nanotrace: Export functions and add dependencies
Under linux it was linking But I think it will not work under windows
without exports.

Change-Id: Idd27583defc1c00a6bb2426efb160e7d90abd3df
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-13 15:15:50 +00:00
Marco Bubke
077320d74c QmlDesigner: Fix thread local tracing categories
The macro was not exported to the category was not enabled in other
targets for inline functions.

Change-Id: I176df1bc6aaaf8b3c8851224e78e43238a98a3a8
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>
2023-10-13 15:15:43 +00:00
Marco Bubke
dcbb07544e QmlDesigner: Use raw string to improve readability
Change-Id: Id829dde077dd95c7cfd10af0a0e6389db2701953
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-13 15:15:34 +00:00
Cristian Adam
52fa2c369e CMakePM: Remove compiler group for all generated sources
Change-Id: Ie30bb63c96438d3582a7d2b753b9677a4a95fe9b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-13 13:30:46 +00:00
Leena Miettinen
57606dfb55 Doc: Describe how to hide and show the main menu bar
After users hide the menubar, they cannot see the keyboard
shortcut for showing it anymore.

Task-number: QTCREATORBUG-29392
Change-Id: I7a26d6bd0972457e225b33d2b041c158ad71548e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-13 13:08:31 +00:00
Christian Kandeler
0bfa8fd718 ClangCodeModel: Allow users to choose between completion ranking models
... in clangd.

Task-number: QTCREATORBUG-29013
Change-Id: Idd80a195709e9813f1713a048f6229a7dd6493ba
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-13 13:03:21 +00:00
Mahmoud Badri
c3e4258b78 EffectMaker: Clear composition nodes on view attach
Fixes: QDS-10513
Change-Id: I3d2b1369c4e33fb6e21311c59a92625437382602
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-10-13 12:36:26 +00:00
Christian Stenger
43cfe48fed ClangCodeModel: Respect settings
If the user disables usage of clangd and opens a cpp file
without a project we still tried to set up the fallback clangd.
Silences a soft assert.

Change-Id: I753ce2eddb00b344b109ba4ff3da61a849767a79
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-13 12:34:19 +00:00
Mahmoud Badri
5c68f4fa21 EffectMaker: Ensure node categories sorting order across all OSs
Fixes: QDS-10520
Change-Id: I24cc5c3a858be31acc3e72d563947cd991cef5a8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
2023-10-13 12:08:03 +00:00
Christian Stenger
3a671c2bb9 ProjectExplorer: Fix autodetect of toolchains on macOS
...when not loading the iOS plugin. Fixes a condition and
lowers priority of gcc/g++ on macOS in general.
Without this patch Qt related kits had a detected g++/gcc
assigned as compiler which made the kits useless.
When loading the iOS plugin the Apple related clang is
preferred which made the issue not present by default.
Fixes execution of AutoTest and ClangTools plugin unit
tests too.

Change-Id: I7515980c0fda48c942d7f3e7cb4d8c66965a1ab3
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-13 11:37:58 +00:00
David Schulz
483a340e73 TextEditor: speed up searching in huge documents
Avoid creating QTextCursors for checking whether a search result is
inside the find scope. QTextCursor::setPosition seems to layout the
block the cursor is positioned at, which is not for free and not needed
to verify whether a search result is inside the find scope.

Change-Id: Ia1658fbbaa89a61f862e0b97eaa5b059972e2311
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-13 11:37:29 +00:00
Eike Ziller
0aded7311a Bump version to 12.0.0-beta2
Change-Id: I739670e5cf1d8c99c18d6fb30d1dd7a825e295cf
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-13 11:24:31 +00:00
hjk
2893e892df Debugger: Adjust expectations of manual bigint test
It was wrong.

Fixes: QTCREATORBUG-29705
Change-Id: I4870d0f1b6b80a4b70803be213cfed51fa37982c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-13 11:21:01 +00:00
David Schulz
808c78eec8 TextEditor: make unindents the default for backspace
Task-number: QTCREATORBUG-29745
Change-Id: Ic26ded3bfd8ae45a3046dc07f8c9037e373453b3
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-13 11:18:27 +00:00