Commit Graph

72811 Commits

Author SHA1 Message Date
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
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
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
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
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
Jarek Kobus
0b2f7dd6fe Axivion: Get rid of AxivionServer::token setting
Remove it also from aspect container.

Change-Id: I0af093bbd5654083dac581e5793ec57e1c7a7b3d
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-02-20 08:02:31 +00:00
Jarek Kobus
ae20f94949 Axivion: Reuse AxivionPluginPrivate::m_apiToken field in fetchHtmlRecipe
Change-Id: I6bb37678000ba755d65b0275c4350815a9047880
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-02-20 08:00:05 +00:00
Jarek Kobus
bc63b678bd Axivion: Implement trial connection with no authentication
Introduce ServerAccess enum indicating the authentication method.

Change-Id: Ic67bbf94504ec317cb6bf819cbc9dba34a01419c
Reviewed-by: hjk <hjk@qt.io>
2024-02-20 07:59:51 +00:00
Tim Jenssen
695548cc81 fix CrashPad restart dialog call
Change-Id: I8764e78158d8ffa255ef26324a2f7359707865d1
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-02-19 19:32:11 +00:00
Jarek Kobus
f790e337ba Axivion: Isolate authorization recipe
It's going to be used in other recipes.

Change-Id: I314f97cc596ce158b7d20e3bb963ca4e35bcb818
Reviewed-by: hjk <hjk@qt.io>
2024-02-19 18:45:23 +00:00
Jarek Kobus
35c49afae2 Axivion: Implement ApiToken querying and storing
The ApiToken is stored locally safely by using QKeychain lib.
If the local store doesn't contain the ApiToken,
we show the password input dialog to the user.
If the user pressed OK, we send a network query to axivion
server to retrieve the ApiToken for the username + password.

Change-Id: I0dc19aea67750cd674ae4db9a9f469e4621c713b
Reviewed-by: hjk <hjk@qt.io>
2024-02-19 18:45:11 +00:00
Jarek Kobus
5b48d23a0a Axivion: Fix CredentialOperation::Get
Don't report an error on non-existing key read.
Finish with success and provide empty optional data in this case.

Change-Id: I7c4ea50c0f05e13ce793384ec57d50dfff600c9a
Reviewed-by: hjk <hjk@qt.io>
2024-02-19 18:44:32 +00:00
hjk
d56ce22bae FakeVim: Remove some dead code
Found by the Axivion plugin.

Change-Id: I9ebc2ad47c4eb7d19534db932d4a0d087429a35d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-19 17:10:35 +00:00
Jarek Kobus
5e2854e685 SemanticHighlighter: Don't delete the watcher from its signal handler
Use std::unique_ptr instead, as QScopedPointer doesn't offer release().

Change-Id: I8e885e477d1aeb8ce9462e8fd249a5196424df18
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-19 16:23:47 +00:00
Eike Ziller
8a6d94235b Fix that window actions did not bring up minimized windows
Selecting a window from the Window menu didn't bring up minimized
windows from their minimized state, and resulted in two items being
checked in the window list (because the active window did not change, so
the checkmarks where not updated).

Change-Id: Ie89b87fa1273378bb99f69026a58ee92ea0b8f50
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-19 13:52:49 +00:00
Eike Ziller
814e84a5e7 Fix the window list when windows are closed
After a window is closed we don't only have to update the texts of the
action, but also update their visibility state and the checked item.

Fixes: QTCREATORBUG-30381
Change-Id: Id0c343b8a5930ec2e3de03f71bdc8f2628b492b3
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-19 13:50:46 +00:00
Eike Ziller
70f7e275e2 EditorManager: Avoid warnings about already registered actions
When opening new editor windows, we want the _window_ to have the
EditorManager context as well as the individual window context, but the
window _actions_ (close, etc) may only be registered for the individual
window context.

Add the corresponding option to ICore::registerWindow et al.

Change-Id: I67d0a6b386603e0047a77dfb357c207e7ffe99e6
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-19 13:50:38 +00:00
Eike Ziller
8826a8b47b Merge remote-tracking branch 'origin/13.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs

Change-Id: I2a3d92a14e4dd16897d19f7d8a8c7b0ec30d14a5
2024-02-19 14:44:54 +01:00
Christian Kandeler
737bf48a0c Utils: Add convenience class for parsing and caching process output
... and base the existing uses of this pattern on it.

Change-Id: I0eaf7535b68ff8c3e8e1c923ce08e63896cc83f7
Reviewed-by: hjk <hjk@qt.io>
2024-02-19 13:26:08 +00:00
hjk
04d7f63186 Debugger: Fix Attach to QML Port
This does not yet fix the reported problem but at least attaches and
gives a working QML inspector in a QML-only debugging session.

Task-number: QTCREATORBUG-30263
Change-Id: Ieac517c2b7c5dde24792f3bbcffe0058073ddbd1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 13:21:08 +00:00
Christian Kandeler
eea7fae890 RemoteLinux: Announce initial connection attempt
So if the device turns out to be unresponsive, users will not be
confused about the temporary freeze.

Task-number: QTCREATORBUG-30319
Change-Id: If65d6ea2777232239c8fb324b06352d92ad451c6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-19 12:07:04 +00:00
Christian Kandeler
4b042f1aeb Update qbs submodule to HEAD of 2.3 branch
Change-Id: Id0bdf4a85008f11de34953832cd02d2e0b46b3bd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 12:06:30 +00:00
Eike Ziller
8a532af3af Markdown: Fix the Show Editor/Preview buttons
Calling QToolButton::setCheckable on a button with a defaultAction
doesn't work as expected. It needs to be called on the action itself.

Amends acedf93ba3

Fixes: QTCREATORBUG-30382
Change-Id: Icbddb1d331fe6547622bf0428d890012fef0d9c5
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-19 11:48:28 +00:00
David Schulz
95bad0c91d Debugger: add more debug output to the python cdbext module
Change-Id: I48b4fb6a65eb486b190238ff161ea358bf4d3bf5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 10:06:03 +00:00
David Schulz
0a2b6a910a Debugger: make last locals command debuggable in the cdbengine
Change-Id: I4d06cecbd23bdb2f16697b3713be5bca0a695fdb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 10:05:58 +00:00
Cristian Adam
d13a7dc9b5 CMakePM: Update cmake conan for auto-setup
Update to https://github.com/conan-io/cmake-conan/commit/
f6464d1e13ef7a47c569f5061f9607ea63339d39

Task-number: QTCREATORBUG-30169
Change-Id: Ibb8f3d353117c5c8ce21b8686cb6e2e5ee146698
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-19 08:30:47 +00:00
Miikka Heikkinen
c9d9b4072f QmlDesigner: Disable eyeball in navigator for effect nodes
Fixes: QDS-11918
Change-Id: Id47b396d7a54af64d21d8898fbfd5c82626ccb03
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-16 15:11:39 +00:00