Commit Graph

88653 Commits

Author SHA1 Message Date
Marcus Tillmanns
467dfa14dd Utils: Rename HostArchitecture enum
Since its not only good for the Host and to bring it in line
with the OsType we rename HostArchitecture to OsArch.

To make it work on all Platforms we change hostArchitecture to use
QSysInfo instead of using Os specific calls.

Change-Id: I1a9a4c8f9faa2a504694d8288110c9ee5c483440
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-22 08:20:23 +00:00
hjk
59dc7c9c92 Utils: Change individual TriStateAspect display strings individually
Seems to be the more common case.

Change-Id: Iff6b236983e37ebe74845a9013bac4a2b659edbb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-22 07:35:14 +00:00
Marcus Tillmanns
e0c8982b7e Core: Add Proxy authentication Dialog
Change-Id: If48387e9adb9ca9b979dce71e949af1d7e1956cc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-22 07:28:29 +00:00
Eike Ziller
a0517bca48 Fix Axivion tr context
Prefix with QtC::

Change-Id: I0cc6b2e4a679c92235ba5c3f471a13f14057418a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-22 07:18:12 +00:00
Christian Stenger
32cad6d389 Tests: Fix build with Qt6.2
Amends d672908608.

Change-Id: Ie80c69ecb1e96a5c86800e8f431f01f6ed611e6d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-22 06:49:16 +00:00
David Schulz
a18522334c TextEditor: fix multi text cursor unindent via backspace
Change-Id: Iec2e9251b977ccbd7433009ac3e706a9327c704c
(cherry picked from commit 971bcb1a5a)
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-22 06:32:39 +00:00
Jarek Kobus
862795d69c Axivion: Ignore the failure on storing the new ApiToken in QtKeyChain
Change-Id: Iefd25e07e2f028d32802cf68d69cf46d17ebee22
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 16:45:30 +00:00
Jarek Kobus
d02e75e7ab Axivion: Add more error messages on different failures
Change-Id: Ibfb77b5921a58ba2d439a6d2e313538eb8484c3b
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 16:44:16 +00:00
Jarek Kobus
d672908608 TaskTree: Add info about sync/async execution into withLog()
Add tests for it.

This addresses the 35th point in the bugreport below.

Task-number: QTCREATORBUG-28741
Change-Id: Id35d51155e0bfd413c06b3a2c5bb57b8bcea8487
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-21 16:30:16 +00:00
Jarek Kobus
f8b4191384 Axivion: Show more detailed message on deserialization error
Instead of a general deserialization error.

Reuse newly added Dto::deserializeExpected() methods.

Change-Id: Ie828b54b24659f2168aa7245a98ab92e71e7a3eb
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
2024-02-21 13:33:46 +00:00
Christian Kandeler
68cc7f11b7 CppEditor: Use Utils::Store in CppCodeModelSettings
Preparation for introducing a per-project variant.

Change-Id: I40897f3ad5261e0d28e6c1332a6951f61f5e749b
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-21 13:28:24 +00:00
Mehdi Salem
0f5eae1d33 Axivion: use static for deserialize in dto classes
Change-Id: Ide5b1ff535c1e2bdba7d7f480bf1c19fd3c19fb8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-21 13:22:32 +00:00
Cristian Adam
c9208932d7 CMakePM: Don't show anything but CMake Preset Kits during initial configure
This is for projects that use CMake Presets, and matches the expectations of the users using CMake Presets.

The user can still enable a Kit from the left list of Kits, which is not filtered.

Amends 87c67fc6d7

Task-number: QTCREATORBUG-29535
Change-Id: If97eef867a687c877b1cbd08cd4537fe6459136f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-21 13:08:19 +00:00
Christian Kandeler
ad30de78d6 CppEditor: Do not store default values for code model settings
Change-Id: I707135c4256953457ca2f6a4abc3245e45d8b5eb
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-21 11:53:49 +00:00
David Schulz
1a7e1b5dbd Cmake: include textwrap in the generated python zip file
textwrap is required for traceback that is used when the last command
gets debugged

Amends 0a2b6a910a

Change-Id: I7d62dbe2bc0f4e1839f07b9bff687ee1f4e4c885
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-21 11:20:11 +00:00
Christian Stenger
504bed284d Axivion: Allow opening external links
..outside of Qt Creator, by using the default browser
or similar.

Change-Id: Ibaa379d2a26976fe717ee38b056794dd54838685
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 10:58:49 +00:00
Christian Stenger
04beeaf082 Axivion: Handle local URLs of issue details
Issue details provide a usually at least one or depending
on the issue kind more file locations related to the
issue.
Handle files which are present inside the current project.

Change-Id: I375ee99dfa1ca697d04146efde3081360e6cb582
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 10:58:38 +00:00
Eike Ziller
a130343ab5 Fix i18n issues
Fix some missing Tr::, and some namespace usages that confused lupdate.

Change-Id: Ib5a411fc53a28a6b807600db50aacc68955ca5dc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-02-21 10:06:41 +00:00
Christian Kandeler
5956254e6f CppEditor: Make check for clangd more fine-grained
... in the quickfix factories.
We want to be able to offer or not offer certain quickfixes based on the
current clangd version.

Change-Id: I7dca69ff990ab9f1a691785cd72e633f7882ae3d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-21 10:02:07 +00:00
hjk
b9e4c98f1d Debugger: Add a settings for gdb's debuginfod feature
Fixes: QTCREATORBUG-28868
Change-Id: I216dbf8b46329c64607c869b5a8e090ef67fabb0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-21 09:31:02 +00:00
Christian Stenger
370fb4d550 Axivion: Open issue information semi-automatic
This patch adds another way of opening issue information.
Double clicking an issue on the issues table will now
open the related information automatically beside jumping
to the respective location.
The original way of using a button on the tool tip of the
issue's text mark is clumsy, but still present.

Change-Id: I7b0fcafb8b01675fc020f8cc8174121ba7f52adc
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 09:23:50 +00:00
Jarek Kobus
2fe085871b Axivion: Fix internal layout of DashboardSettingsWidget
Make internal margins a bit smaller so that they look consistent
with the rest of UI coming from Qt.

Change-Id: Iaeaccd1e0a4141a96657e32cebb619b969e43cab
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 09:16:16 +00:00
Knud Dollereder
f686ca7aa8 Nanotrace: Add LGPL-3.0-only as a licensing option
Change-Id: I203d93c23d5799835b6a122b9329f16af84c895c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-02-21 08:31:38 +00:00
Leena Miettinen
a1f317798d Doc: Link to "Add custom output parsers"
...from "CMake Build Configuration"

Task-number: QTCREATORBUG-30209
Change-Id: Ic10125f84eee29ddae05b18d80512fbde530dd2d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-02-21 08:18:01 +00:00
Ali Kianian
4034d9e874 QmlDesigner:
Change-Id: I0c8a1b5d76e8509fb0a61ccb0bd8ac62d432d2bb
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 08:10:45 +00:00
David Schulz
88aacbb562 Debugger: fix char type dumper optimization
Change-Id: I600f4ddc9a4539e19b70664fd9354c17e64cd0d6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-21 07:56:43 +00:00
hjk
8893e5f14a Debugger: Fix C++20 complaint about or-ing different enums
Change-Id: Ie3648b3473476c3f71339006dff2c5dccf817b15
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-21 07:47:06 +00:00
hjk
fb2b861fb7 Utils: Replace explicit cleanPath call by FilePath::fromUserInput
Change-Id: I85199d1389864971f6e9fb6ca4290ad094b0a1c5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-21 07:46:59 +00:00
hjk
7d5523a59b Axivion: Use LayoutBuilder for project settings page
Also, add a stretch at the end of the buttons row.

Change-Id: I51392359b183462b52ad9d8b0775f59cf4a94a82
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-21 07:43:53 +00:00
Jarek Kobus
d4b5a1efda TaskTree: Check the right asyncCount() in tests
This is quite crucial test checking the right internal behavior.
The expected asyncCount numbers were added to these tests after
processing each recipe by hand and deducing the expected scenario
and the number of times each recipe should return the control to
the main event loop before the task tree finished.

Be very careful when correcting any of these numbers - this might
mean the internal change inside the task tree forcing the asyncCount
adjustment may break the task tree architecture.

Change-Id: Ia3acfbf3cb232ed95df97fe5822305df98e2271a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 06:51:31 +00:00
Jarek Kobus
5c8b87bf9d TaskTree: Simplify some test code
Change-Id: Id81969d00a6e183e0d7cdcfddc64fc65aab6e020
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 06:48:18 +00:00
David Schulz
c76fc8e1e5 Debugger: fix dumping char arrays
The calculation for the size of the memory to fetch for the dumper was
missing the char size information.

Amends a26aff7afd

Change-Id: I8ceb127efaf7effa94fc53e6782f75580ab8cdb4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 06:00:24 +00:00
Tim Jenssen
0416941fd1 CMake: introduce option BUILD_DESIGNSTUDIO
This change needs an update of the super repository

If you want to buid QtDesignStudio documentation no branding path
is necessary anymore:

cmake -DCMAKE_GENERATOR:STRING=Ninja -DWITH_DOCS=ON -DCMAKE_PREFIX_PATH:PATH=C:\Qt_online\6.5.3\msvc2019_64 -DBUILD_DESIGNSTUDIO=ON C:/dev/tqtc-qtc-super/qtcreator
cmake --build . --target html_docs

Task-number: QDS-9827
Task-number: QTCREATORBUG-24222
Change-Id: Ic779b6ab57c71c7f6fa53467bf1ba3ee17cab0ea
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-02-20 20:19:40 +00:00
Marco Bubke
d68ad36ce1 QmlDesigner: Fix clang format file
The regular expression was case insensitive.

Change-Id: Ic44ac8b65428574fb7d0cb8327b8b536b74720d8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-02-20 17:02:55 +00:00
Marco Bubke
483c7afefd QmlDesigner: Make global variables inline constexpr
Leads to potential less symbols because of weak linking.

Change-Id: Iadeab6fa550b895218f78f59fc0956ac0625633f
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>
2024-02-20 17:02:36 +00:00
Marco Bubke
fe77ba28f8 QmlDesigner: Move component specific code out of the model
The model is an abstraction for communication between components and
should not used as place for component specific code. Otherwise it will
grow quite dramatically.

Add Utils3D in component core which is shared between all components is
actually the place to share code between components.

Change-Id: Ic9d0be72e4480fc33ac6300a10871db4983b4a73
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-20 17:02:30 +00:00
Marco Bubke
3586a5b459 QmlDesigner: More tracers
Task-number: QDS-11952
Change-Id: I9dc7325b73f85ed2e401689d255acd0ef68b094c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-20 17:02:24 +00:00
Marco Bubke
5e4c1ba5a0 QmlDesigner: Cleanup notifier
The notifier should not change the state. That is really surprising.

Change-Id: I179cf9e49c6ae916435c9aada5e1ddff6f9f52ee
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-20 17:02:15 +00:00
Andreas Loth
2ff4eec9ac Axivion: Provide non-throwing overloads for DTO deserializing
Change-Id: I8dadd76b1e6f0b22293c4e8758759c2b86092926
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-20 16:48:50 +00:00
Jarek Kobus
2cb18715eb CppUseSelectionsUpdater: Ensure the old futures are synchronized
When scheduling a new async run (via FindUses::find()), keep track
for the canceled futures, otherwise they may still be running
after the shutdown. So, add all new futures into the future synchronizer
(without canceling them).

Task-number: QTCREATORBUG-30401
Change-Id: I83a82f706175060f7f29886b57c69c77667a0805
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-20 16:19:06 +00:00
Jarek Kobus
af54f62166 SemanticHighlighter: Add internal FutureSynchronizer
As it's not clear whether canceled future may continue to run
when the SemanticHighlighter instance is destructed,
add internal FutureSynchronizer that ensures that all old,
canceled futures are finished from the SemanticHighlighter's
d'tor.

Change-Id: I3128999f1250d666fcc3aa04599bb4a9c675ca3e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-20 16:18:46 +00:00
Christian Kandeler
e930b29d66 CppEditor: Do not access document manager when gathering local symbols
As it turns out, that code runs in a dedicated thread.

Task-number: QTCREATORBUG-30401
Change-Id: I66236fa00b8ddb55276d822357517fdccb0e61df
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-20 16:04:22 +00:00
Jarek Kobus
7d035f34d4 TaskTree: Fix docs for asyncCount()
Amends b74bb782bb

Change-Id: I6da60e283c6bbd85ed109e37302611786f42c012
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-02-20 14:26:17 +00:00
Jarek Kobus
5d63078685 SemanticHighlighter: Simplify disconnecting from the watcher
Change-Id: I92c78f71a209ac428354284649e0f4b6522a947f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-20 13:58:11 +00:00
Christian Stenger
2e276fb8a6 Axivion: Allow highlighting marks
Adds a setting to enable highlighting issue markers on the
highlighter scrollbar.

Change-Id: I173510ccb75e684325135d8e587e8920ad22bd86
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-20 13:26:00 +00:00
Andreas Loth
c63acd9924 Axivion: Remove false throws comments
As all dtos are json objects (or at least json arrays), the
std::domain_error shouldn't appear in the wild either.

Change-Id: Ib926e0c454f9eacabf8546fb0a4038fcd153715b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-20 13:19:36 +00:00
Miikka Heikkinen
f2b29195da QmlDesigner: Disable "Edit Component" for effect composer effects
These components are autogenerated and overwritten by effect composer,
so a regular user has no reason to modify them manually.

Fixes: QDS-9020
Change-Id: Ida6706f123a8304944a19364c59620b8d9b4adbb
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-20 12:48:41 +00:00
Jarek Kobus
e42fa739f0 Axivion: Automatically fix the dashboard url
Remove trailing spaces. Ensure the address ends with '/'.

Change-Id: I5f51e89183e0e62c8d7d5c0cb7871477542e37d5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-20 12:41:46 +00:00
Jarek Kobus
042d87a1e1 CppUseSelectionsUpdater: Don't delete the watcher from its signal handler
Use std::unique_ptr instead, as QScopedPointer doesn't offer release().

Task-number: QTCREATORBUG-30401
Change-Id: If8f922fb52363a2e866cfacf770f617a00aa7fe5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-20 12:29:31 +00:00
Jarek Kobus
b74bb782bb TaskTree: Implement asyncCount()
This might be useful for checking the integrality of tasks'
invocations and detecting the unwanted asynchronity in the task tree
execution.

Example: we may want to ensure that the setup handler of the 2nd task
was executed synchronously after the done handler of the 1st task,
without returning the control to the event loop.

This addresses the 34th point in the bugreport below.

Task-number: QTCREATORBUG-28741
Change-Id: I7213ee62a7555818cbe18fd7bb8362353a3be8ae
Reviewed-by: hjk <hjk@qt.io>
2024-02-20 12:26:58 +00:00