Commit Graph

88532 Commits

Author SHA1 Message Date
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
Jarek Kobus
62a203c926 TaskTree: Add tests for withLog() function
This addresses the 7th and 8th points in the bugreport below.

Task-number: QTCREATORBUG-28741
Change-Id: I5fe09227c1118e66c38bbe98ef720b21823c28ed
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-20 12:24:56 +00:00
Marcus Tillmanns
accb8dc150 CPaster: Remove unused class
Change-Id: I5b22a1bc616f3418fbc5298acb5c33ef01382555
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-20 12:00:31 +00:00
Christian Kandeler
4a722bfa9d Utils: Add async variant of DataFromProcess
... and make use of it in PathChooser.

Change-Id: I0e81afec2caf38f488a8ab98b55016535c187fc2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-20 11:59:43 +00:00
Jarek Kobus
fc5083cde9 Axivion: Get rid of AxivionServer::description setting
Remove it also from aspect container.

Change-Id: I948b79bc6b2ba3ae3d26a19fa61be5e4bd672a2a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-20 11:30:58 +00:00
Ali Kianian
3e81485c6a QmlDesigner: Fix the bug for dropping ListView when DataStore is missing
* Creating ListView will be postponed when the dataStore is just created
so that the model manager can update the information of DataStore.
* The initial delegate and model for the listview are faked in order to
show the same shape before and after the assignment.

Change-Id: I45ac7486890556136ca98fc131f90896efc3b839
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-20 11:02:46 +00:00
Ali Kianian
cae86d6977 QmlDesigner: Create proper ListView delegate for assigned model
Task-number: QDS-11776
Change-Id: I210a9803725b59a7cfe7887908922c38d969bc2d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-20 11:02:32 +00:00
Ali Kianian
bb63198f8a QmlDesigner: Open collection editor for dropped ListView
* A default color model will be created and assigned to the ListView
when a ListView is dropped to the view.

* The user can edit the assigned collection of the list model by having
access to an action in the context menu of the form editor.

Task-number: QDS-11671
Fixes: QDS-11792
Change-Id: I70252f6e34ccbc95d8b700459f45a11a76c81c50
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-20 11:02:17 +00:00
Christian Kandeler
6561d3f691 Update clang-format test file
... such that it represents the output from a current clang-format with
our current settings.

Change-Id: I0bc75c80b01e991c10bc490f4dc0270b8292fae3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-20 10:55:02 +00:00
Ali Kianian
0f9782070a QmlDesigner: Create imports directory before copying template files
Fixes: QDS-11946
Change-Id: I13f200c18d8b4775d6353ba994b83b8b72313e60
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-20 10:52:27 +00:00
Christian Stenger
721d879115 Axivion: Move issue details widget
Although it is not a navigation widget as such, it is
expected to have this separated and beside the editor.
This patch moves the widget to the right side bar by
default.

Change-Id: If46bedaf7bf475a46dbfd8bee1e121c659740856
Reviewed-by: hjk <hjk@qt.io>
2024-02-20 10:41:41 +00:00
Christian Stenger
7261c2889c Tests: Fix missing include
Avoids a compile issue before being able to execute the test.

Change-Id: Ibc76c16229107e2c23757de682bc78bfe4b7d6e7
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-02-20 10:40:28 +00:00
Leena Miettinen
47b3017979 Doc: Add more options for following links to web sites in MD editor
Task-number: QTCREATORBUG-30209
Change-Id: I0c9f49775377bfd3e8061112a77995a647590c1c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-20 10:33:20 +00:00
Miikka Heikkinen
f926cbaaca EffectComposer: Preserve expand state of effect node sections
Fixes: QDS-11974
Change-Id: I38d9efb8f05d5b0064fe9e85fdf4b624f5cef11f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-20 10:17:24 +00:00
Henning Gruendl
fa14c8dfab QmlDesigner: Fix scrollTo multi select behavior
Instead of scrolling to the first element in the selection, scroll to
the last. This will keep the existing behavior for single selection
and will fix the behavior for multi selection.

Task-number: QDS-9794
Change-Id: I846c6ea6b967ef76a77d4ea0fc819d06772eca01
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-20 09:17:11 +00:00
Jarek Kobus
243b268bea TaskTree: Add withLog() function
This addresses the 7th and 8th points in the bugreport below.

Task-number: QTCREATORBUG-28741
Change-Id: I6430bf330d117258654bf3fe101511d4bea68358
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2024-02-20 08:58:22 +00:00
Jarek Kobus
31007b8259 TaskTree: Introduce ExecutableItem
ExecutableItem is a common base for Group, CustomTask and Sync elements.
Move withTimeout() here, as this is relevant only for executable items.

It's going to be a place for additional API, e.g. withLog().

Task-number: QTCREATORBUG-28741
Change-Id: Ibcd6b34c389af4f41f56fd242b14fad6c0c579b2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2024-02-20 08:58:16 +00:00
Jarek Kobus
a4f600c14d Axivion: Show error messages on CredentialQuery errors
Use more writeDisrupting() for logging Axivion errors.
Don't translate "Axivion".

Change-Id: Ic04ff0afe66d79be3d319b16948f7861225e8927
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-20 08:48:02 +00:00
Leena Miettinen
d9bd7ee463 Doc: Describe new functions in the Markdown editor
- Activate the locator to jump to a line and column
- Follow links to web sites

Task-number: QTCREATORBUG-30209
Change-Id: I2514fb44c8216c9f40ad14a58450f9d5ce06922c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-20 08:32:25 +00:00
Jarek Kobus
a69f7019a2 Axivion: Limit code repetition
Introduce dtoRecipe() function which replaces both getDtoRecipe()
and postDtoRecipe().

Change-Id: Icbf97779869598c4fcc9bc19a520c9bd67df75d4
Reviewed-by: hjk <hjk@qt.io>
2024-02-20 08:29:57 +00:00
Christian Kandeler
065debd163 RemoteLinux: Speed up rsync transfer
Group files with the same target directory into a single rsync
invocation.

Fixes: QTCREATORBUG-29988
Change-Id: I3fc7883e55c9c3105d403d19d0b59cc70d158d6d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-20 08:21:31 +00:00
hjk
15fc626a78 VcsBase: Remove unused OptionMapping constructor
Change-Id: I9f2dac687e6178a48790314fbb361c479666ec1b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-20 08:09:23 +00:00