Commit Graph

82976 Commits

Author SHA1 Message Date
Marco Bubke
fa28c29781 QmlDesigner: Optimize ModelNode a little bit
The functions are doing not much but are called often. So they are a
good case for inlining.

Change-Id: I755c63287d7d518b55d4f131077b98dd0345930c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-18 15:11:13 +00:00
Ali Kianian
6f78cd1a3c QmlDesigner: Select the correct text editor for paste action
The text editor was declared changed even in non-design mode. Now it's
notified only when the design mode is selected.

Task-number: QDS-9953
Change-Id: I64d0d7c1eec0e56d00f91e9522325ecb8660cd2d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-18 14:33:28 +00:00
Christian Stenger
ab70a04461 VcsBase: Fix missing include
Change-Id: I99cf36c0d1b4b91d828c241c6cad56bdc94e56f7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-18 13:52:18 +00:00
Ali Kianian
a34b991448 QmlDesigner: Cleanup designer plugin for show/hide designer methods
Change-Id: I824ced5f1bf921d7336b3c4fe86ac37060129cd3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-07-18 13:47:23 +00:00
Christian Stenger
a86356ce8a Squish: Fix menu handling on macOS
Some menus inside QC have special numbering - but this only
applies to Linux and Windows. On macOS we do not add this
special numbering.
Additionally this patch stabilizes the triggering of
submenus. When they get triggered it takes a split of a
second until the items inside the menu are usable.
Let squish wait until the sub menu is fully present before
trying to activate some of its items.

Change-Id: I32c688a937ada1da07506d4ebd22730e4f2bcaef
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
v11.0.0
2023-07-18 13:23:15 +00:00
Eike Ziller
c0b29f28c0 German translation: Copilot
Change-Id: I70abcdee4c38923d03450a43413e34782d2af160
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-18 12:24:04 +00:00
hjk
a0a461668c Vcs: Distribute readSettings() calls to individual settings
Isn't a benefit here, but what the other settings do, so it's easier
to ponder more centralized solutions later.

Change-Id: I3837e5bedc8771dd56b8bacda8c23e40281b4fe3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-18 12:15:28 +00:00
hjk
9a69c78ca5 Vcs: Convert settings pages to latest style
Last change in that area for this year.

Change-Id: Ibae9f1869cb20faf85c0c1669b84751ad022b8fd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-18 12:15:07 +00:00
hjk
89a64a19e8 VcsBase: Contruct CommonSettings on first access
Change-Id: Ifa425e2f1952017769accd855e33d1fa53b7b6c9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-18 12:12:37 +00:00
Jarek Kobus
1042323e8c RunControl: Check autoDelete state on finish
Amends a5ecc6207b

Change-Id: I0a762fb41e00416f295f9d71cc23091799359f07
Reviewed-by: hjk <hjk@qt.io>
2023-07-18 11:52:27 +00:00
Christian Stenger
9338f7a4d7 Utils: Fix visibility handling for aspects
Otherwise we may fail to hide widgets of aspects that are explicitly
set invisible while construction.

Change-Id: I2679c8fa22e79e4eb32ca5ae4266010d8cf9387d
Reviewed-by: hjk <hjk@qt.io>
2023-07-18 11:45:43 +00:00
hjk
814fabfe4b CppCheck: Rename options to settings
That's the by far more common name nowadays.

Change-Id: Iae987221f9fa2e955fdee21496f895d25d44be4e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-18 11:43:41 +00:00
hjk
b779223bb3 Nim: Remove Q_OBJECT from NimCompletionAssistProcessor
Not really used.

Change-Id: Ide97d5d60fcf3b4e6efa93a089028d8293b02dde
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-18 11:25:37 +00:00
Leena Miettinen
2172ffa33f Doc: Fix navigation links from how-to and reference topics in QDS Manual
Change-Id: Ie3ea9be3b62c6a7da91debcd9b28e422d5bc7dd6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
2023-07-18 11:25:01 +00:00
Jarek Kobus
ee3658904a FileExtractor: Replace the usage of Archive with Unarchiver
Keep a pointer to the unarchiver inside the FileExtractor
in order to not to leak it on FileExtractor destruction.

Change-Id: I517bfb5997612db36e7ca8e61709b022caf5dc09
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-07-18 10:34:18 +00:00
hjk
0db2beeff9 Cmake: Make line edit in formatter settings editable again
... and improve layout a bit

Change-Id: Ib1f7626259ca59190804faab5e2f453e8520de58
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-18 09:07:39 +00:00
Marco Bubke
2322313baf QmlDesigner: Remove typeName usage in binding editor
Task-number: QDS-10266
Change-Id: I91232c1296c4ed3b3148af9053d3db0f43a08e24
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-07-18 09:00:14 +00:00
hjk
8e7ac2e59d CppCheck: Use new settings pattern
Change-Id: Ia2de8e684690ab7bfbdcf7ba417df1f2174433de
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-18 08:43:45 +00:00
hjk
bce9b9ffaa Nim: Move code style related code to nimcodestylesettingspage.cpp
Not necessarily the final setup, but a step closer.

The selected style doesn't seem to stick anymore, but that's already
the case in 11.x.

Change-Id: I6c094c1222147c31456cf843397ffaaae9252a30
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-18 08:04:06 +00:00
Eike Ziller
d127336753 Fix that aspects read&wrote install settings
Do not give them the QSettings object that has SystemScope.
Also rename the "globalSettings" term to "installSettings" locally and
in PluginManager, and the one for aspects to just "setSettings" (like
e.g. for TerminalCommand).

Change-Id: Iad051f6e507373042014db73b83d0b16944b7374
Reviewed-by: hjk <hjk@qt.io>
2023-07-18 07:59:26 +00:00
hjk
ef04ff2189 ProjectExplorer: BuildDirAspect's base fromMap/toMap
This was still going to StringAspect, even with the new FilePathAspect
base. Operationally it was not different as the FilePathAspect does
not do anything else than what the StringAspect was doing.

Change-Id: I3dac247acf48d653f77abb228a1765f01da7823b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-18 07:58:24 +00:00
hjk
e8fd863fcc Nim: Convert tool settings to latest style
Change-Id: I206b7d10531a9a3053a68eae522896971c9f1423
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-18 07:27:11 +00:00
Tasuku Suzuki
9be4aeb55a Help: Store and restore size of TopicChooser
The default size seems too small to use

Change-Id: Ia8284e1e8b97ee7c76dc4d1ce807fec017ff10dd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-18 07:13:09 +00:00
Jarek Kobus
9692ccf352 IosDeployStep: Employ task tree for running
Task-number: QTCREATORBUG-29168
Change-Id: I212aa8cc66d97b84adce9d8acdf8e958989bdc6b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-18 07:11:15 +00:00
Jarek Kobus
63bc9a2e42 IosDeployStep: Add return value to checkProvisioningProfile()
Change-Id: If5829daae851a4af06bcff7dcd60ecd6004b5bdb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-18 07:11:07 +00:00
Jarek Kobus
109727d6de IosDeployStep: Introduce IosTransferTask
It's going to be used in IosDeployStep.

Change-Id: I01158207c0243421a38870718cdf125499eece34
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-18 07:10:59 +00:00
hjk
4ab1d75ee6 Utils: Introduce a staging area for gui values
Accessing gui elements is very aspect-specific, whereas the
rules when and how values are synchronized are rather general.

Splitting the two concepts and having a permanent 'buffer' area
that is synchronized with the gui elements if and only if they
have been created helps to keep the boilerplate needed per-aspect
at a minimum.

This value could also serve as "model" in case we wanted to allow
multiple "views" in different places of the gui onto that aspect.

Change-Id: I34832512b99c53cb0e4df437ee9b4c5d17a2ad8f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-18 06:53:28 +00:00
hjk
433f8a3241 CMake: Remove an accidentally introduces second build dir aspect
Not quite harmless, as it was destroying persistent data written by
the normal one.

Amends b9cf021b8e.

Change-Id: Ie2775881535c4d19174177f443a4606acc1576de
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-17 14:03:33 +00:00
Jarek Kobus
134eee611a AndroidDeployQtStep: Use promise for checking canceled state
Change-Id: I4fec6004b0b17be182088dab4deb49aa2d7c8a0b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-17 13:57:30 +00:00
Jarek Kobus
301e18f12b LogTailFiles: Replace QProcess with Process
Change-Id: Ia154daf16a801d8d09ac1a1a5e00c669ad9f36ad
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-17 12:23:55 +00:00
Alessandro Portale
b5808cdd56 Solutions: Enable theming and dpr for spinner images
Change-Id: I2105b9c1032940d26f3f3bf2083f88e1133e8757
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-17 12:14:32 +00:00
Jarek Kobus
a9663d65ad IosDeviceToolHandlerPrivate: Replace QProcess with Process
The Process takes care of the proper destruction automatically.
This is a preparation step before creating a task tree adapter
for IosToolHandler.

Change-Id: I6a8ae12b46a83be3a7074d0a268a598c260a66b5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-17 12:02:46 +00:00
Andre Hartmann
af5a8fe80c Git: Restart instant blame on document save
When the current line is modified, refresh the
blame after saving. Before, the cursor had to
be moved to another line to restart the blame.

Change-Id: I61012f1c8583545b9bc34a71ff63ade2f9cc5b13
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-17 11:38:37 +00:00
hjk
5d5a36ef18 ProjectExplorer: Fix cmake dap start logic
Change-Id: I06148c3d7aec6cfde072c477c8ff81025d4d24f9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-17 11:37:03 +00:00
Knud Dollereder
db78fa9cf8 Update the curveeditor when changing keyframes in the text editor
Fixes: QDS-10062
Change-Id: Ie0364d095f17ba6b5f16bd8fbf9abddfca2f26db
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-17 09:49:03 +00:00
Marco Bubke
3d5ceb795d QmlDesigner: NodeMetaInfo can now get exported type names
You can get all exported names. That can the C++ names too for C++
types. If you only want the types name which are imported in a document
you can provide the source id for the document and get only that. If
there are different version exports you get them too.

Task-number: QDS-10274
Change-Id: Iefc0b68ebfd65998cf0481961f8c7643cdf9e5b9
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-07-17 09:36:58 +00:00
Marco Bubke
f7f65b9ea4 QmlDesigner: Get exported type names for type id and source id
It is matching the document imports with the exported type names.

Task-number: DS-10265
Change-Id: I0623cd0b3d04fa1a8c05354a194f10f3d8948b21
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-07-17 09:36:49 +00:00
Marco Bubke
e7bc9846d1 QmlDesigner: Add exportedTypeNames(TypeId) to project storage
Task-number: QDS-10265
Change-Id: If440f87b6719b865216e3890c8492c3682cf42dd
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-07-17 09:36:39 +00:00
Marco Bubke
12d0098bf1 QmlDesigner: Disable NodeMetaInfo::importDirectoryPath() for project storage
We can add a different interface later if the modules save there source
ids.

Change-Id: Iafc6cefec0bfd8703328074b31932b0472164ec4
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-17 09:36:26 +00:00
hjk
9f72b0519f Unittest: Work around warning for unused parameter
Amends 7fada70e8f.

Change-Id: Ic47526a497c67dab48903b6500a37bab742034fd
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-07-17 09:23:38 +00:00
Eike Ziller
955fa48b41 Changelog: Fix documentation links
It is doc.qt.io, not docs.qt.io

Change-Id: I3487b3634cfc0f960f0a34456742f1ab7616f37a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-07-17 09:21:27 +00:00
Tasuku Suzuki
66bdb5548e SessionDialog: Add ellipsis to buttons that open another dialog
Change-Id: I3eaa44f350653b38acbed99b7afbff3e6c02de3f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-17 06:53:53 +00:00
hjk
6d5b078238 QmlProjectManager: Use aspects more directly
Change-Id: Ibfa91c541666ed81dbe5238075cafebd628f5889
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-17 06:04:57 +00:00
The Qt Project
2a8765b35b Merge "Merge remote-tracking branch 'origin/11.0'" 2023-07-17 05:58:43 +00:00
hjk
3bfd60b708 Copilot: Move AuthWidget update to the class itself
Change-Id: Iab23566c6d74760eab732fdbad2d9eac645faaff
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-14 14:39:30 +00:00
hjk
17267bb15c Copilot: Move closer to latest settings setup and usage pattern
Change-Id: I86983f55cd53a540e2fe1a5b307ebf67f7ea7a98
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-14 14:39:06 +00:00
hjk
bd24f18dd5 Docker: Simplify plugin definition
Change-Id: If37a8df1292f01f1048549adb135a65fda66a09f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-14 14:06:37 +00:00
hjk
baf5377b60 Docker: Simplify settings access
Change-Id: I0ecbba9d29b041b06dac26159be702a38db42185
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-14 14:00:23 +00:00
hjk
abd770520a Qbs: Avoid a FilePath/String round trip
... when creating tasks in the clean step

Change-Id: I563d126416d266eff0b95baa4deb3133cb3e3dc9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-14 13:46:16 +00:00
hjk
7878b0bf9a McuSupport: Use aspect more directly in RunConfiguration
Change-Id: I75bd439a1747cf8c3dcb40327a7b614fc7438590
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-14 13:45:58 +00:00