Commit Graph

85691 Commits

Author SHA1 Message Date
Marco Bubke
e204af5cac QmlDesigner: Modernize Enumeration
Save some allocations and return a view instead of a new value. If you
want a value because you depend on a null terminated string you have to
use toScope() and toName().

Task-number: QDS-10290
Change-Id: Ia87b8d559fc1fe9bb1992e61da0aa86c68d53535
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-19 13:16:44 +00:00
Marco Bubke
194b7d49b0 StudioWelcome: Fix more warnings
Change-Id: I1c1fa8fdfd33b50d47afe4eab82347cf3c0eff08
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-19 12:16:53 +00:00
Eike Ziller
74801a52f2 German translation: GitLab
Change-Id: I7efac2f2ef7ad5ce981de8cd33952597f5d940b9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 10:08:29 +00:00
Eike Ziller
c9ff58d38b German translation: Docker
Change-Id: Idf6f26e2b2f0f4c803cebc7c0fe52ee22af96332
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 10:08:18 +00:00
Christian Stenger
6614abe549 SquishTests: Adapt to Python 3
A dict's values object is not a list as it had been in Python 2.
Explicitly convert it.

Change-Id: Iab54a5833b77c6890b108065657da3ff73c96f7f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-19 08:57:08 +00:00
hjk
d7461a380b Squish: Use new settings scheme
Change-Id: I262342c2797a03a774c89f7b7caae3f9d8c79a6c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 08:25:36 +00:00
hjk
e157ac82a1 Debugger: Paddle back on multiple inheritance for settings
This is fairly close to the new "standard" pattern for an
individual page but still allows flat access using the same
'settings().' stanza.

Change-Id: I1edbbd64a857a3d3936fb2c21fdc7e3c8ae7a44c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-19 06:39:56 +00:00
hjk
2a31f17354 Utils: Use handleGuiChanged more consistently in aspect implementations
Change-Id: I53eb3416b27dca45bd30860f1fb0ec674c98240e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 05:16:32 +00:00
hjk
c7cf450bd8 VcsBase: Remove almost unused access to VcssBaseClientImpl::settings()
Change-Id: I090714e9724dcc00b37651bb1310d7848066e03e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-19 05:14:27 +00:00
hjk
bedab22e63 Replace a few aspect.value() calls with operatpor()
Change-Id: Icaada671fe8dbe59d4f596da49476b3ec2137c25
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-19 05:14:13 +00:00
hjk
3e2e0d9393 Meson: Delay settings creation
Change-Id: Ib4de981670c9f70e5ddd4c6e0b31bfd4b6a61851
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-19 05:14:01 +00:00
Jarek Kobus
481d301c5c GitPlugin: Replace QVector with QList
Change-Id: I20218a5fcd9b4af6e6633de55d41d4ba771bcd75
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-18 20:48:28 +00:00
Jarek Kobus
171675099c DiffEditor: Replace QVector with QList
Change-Id: I79246cc79a2cdcd6150b060386b34ce2f9923456
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-18 20:48:22 +00:00
Burak Hancerli
98c32d2043 QmlDesigner: Soften asserts on invalid URLs
Change-Id: I45ff2b98c45c1c39c1fbd28e89ddc15bde1adb93
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-18 19:44:17 +00:00
Marco Bubke
90b0fd2869 UnitTests: Fix warning
Change-Id: I834095e1e8f40cb063b6014e98bf79ae8d8e439b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-07-18 15:12:22 +00:00
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