Commit Graph

76958 Commits

Author SHA1 Message Date
Jarek Kobus
a43f5db582 QmlDesigner: Drop static_cast from connections
These signals are not overloaded anymore in Qt 6.
Simplify widget creation in CurveEditorStyleDialog.

Change-Id: I4937db8c3dad10e7c0b2aa007739d71ae5992486
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2022-11-11 15:53:27 +00:00
Rainer Keller
9bfc0a5b26 McuSupport: Sort displayed UI elements
The elements are sorted by their CMake variable to keep the order
consistent. Otherwise they would be sorted by their pointer, which leads
to a random order every time.

Task-number: UL-6614
Change-Id: Ie3520fb312044ccca4c9dc853e00ae2710b28d1c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-11-11 15:14:21 +00:00
Henning Gruendl
1b6fd9f328 QmlDesigner: Update SpinBox
Update SpinBox to the state of RealSpinBox.

Change-Id: Ib4d622edbf3d3cfb22adc7b410a97f348e235270
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-11 14:43:40 +00:00
Henning Gruendl
ff5e6a154b QmlDesigner: Add hasSignalHandlerProperty function
Change-Id: If1616f87c4dfebc121aad842c0b35ae63ddc8dbd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-11 14:43:25 +00:00
Henning Gruendl
dbca9418ff QmlDesigner: Fix CheckBox spacing
Change-Id: Ie4b365e67886ee20dc6632da118c561d0e93c95f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-11 14:43:03 +00:00
Henning Gruendl
f7e7bcd877 QmlDesigner: Add link error switch in RewriterView
Add a switch in RewriterView to disable link error checks.

Change-Id: I6bac2c6c92872463c2246e67e803a6724973fae7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-11 14:42:45 +00:00
Henning Gruendl
cf86bc789f QmlDesigner: Add insight constants
Change-Id: I58f398a329b79a346061b192e2fbff40a9b9ec6d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-11 14:42:06 +00:00
Eike Ziller
f8792dc9e6 German translation: ProjectExplorer
Change-Id: I1b069aea0a6d12c1cd2cee6a0d3b4febc7da8331
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-11 14:34:44 +00:00
Christian Stenger
8dd939bb27 Vcs: Do not expose passwords to the output windows
Partially reverts bbde6ac9bf and
3be9f52980.

Fixes: QTCREATORBUG-28413
Change-Id: Iccfb787a5261f3963e862554fa266d62ac49ca50
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2022-11-11 14:28:11 +00:00
Christian Stenger
a6774dbad5 Tests: Fix dumper tests on macOS
Change-Id: I7827245017c285ff7c9eb4799a7b340061f3c4af
Reviewed-by: hjk <hjk@qt.io>
2022-11-11 14:28:00 +00:00
Christian Stenger
a44bd1643b Squish: Fix creating test cases
Change-Id: Iad0e20a213d0a45a2b7d8a43d18d320e02949179
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-11 13:58:07 +00:00
Christian Stenger
47353584f9 Squish: Fix adding object by copy and paste
Pasting an object should directly add the object at the
right branch of the tree if necessary.
So, in case of having a container or widget property
the new item has to be added as a child of this.

Change-Id: I0d7398eec8ae7b5bf6414a525e695d52b13b1113
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-11 13:58:02 +00:00
Christian Stenger
b55c10f189 Squish: Fix object map handling on Windows
Ensure we are using UTF8 all over the place especially when
using external tools and their stdin or stdout streams.
This fixes bad encoding issues on Windows when having unicode
characters inside the objects map file.

Change-Id: Ic8e66a876abe0903308002cd25315b1eaa3788b1
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-11 13:57:56 +00:00
Eike Ziller
33a33612c8 Theme 'dark': Use accent color on macOS
Fixes: QTCREATORBUG-28374
Change-Id: Ifb7fa83c8afc1be0a919c775f7d04e229f146438
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-11 13:52:49 +00:00
Samuel Ghinet
61c133f48a QmlDesigner Fix: Select Background Color doesn't clear Environment Color checkbox
Task-number: QDS-7439
Change-Id: I5546e02f7cc2d0bcf3197f94a6ccc557cfb84e7b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-11 13:35:39 +00:00
Jarek Kobus
1a1d4780b8 TextEditor: Always use the same 'x' char for width
Introduce charWidth() helper method.

Change-Id: I1a643f0ecbcba1fd9659e02d48f76c57496fa8f1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-11 13:26:18 +00:00
Amr Essam
e3e5524f88 QmlDesigner: crash when dragging an effect twice to component in 2D
When an effect is dragged twice, same effect or other effect it caused
QDS to crash, in layer mode the effect is replaced,
otherwise effect is added upon previous effect

Task-number: QDS-8172
Change-Id: I2a3682b21492de0d0cc62bce9bd2965cedfbc826
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-11 13:11:15 +00:00
Eike Ziller
3922ee3c72 Bump version to 9.0.0
Change-Id: I9975d78fc4d9f263702e7f031083ab4847269fc3
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-11 12:44:34 +00:00
David Schulz
574d64436a ClangCodeModel: fix memory leak
amends 45317da25a

Change-Id: I27d3332f1a99676c174f18ff06d0cf0cea396b70
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-11-11 12:08:37 +00:00
Miikka Heikkinen
8bb3c8f923 QmlDesigner: Don't cache possible imports until code model has settled
Code model can take a couple of seconds to fully resolve when a new
project is launched for the first time, so we avoid caching possible
imports until we detect no changes in the count of possible imports.

Fixes: QDS-8128
Change-Id: I0d35b1eb2d5872f646c141067652645d2e2f106f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-11 12:05:02 +00:00
Ali Kianian
455c84ccbf QmlDesigner: Add Duplicate to 3d Context Menu
Duplicate action is added to the context menu of the Edit3DWidget.

Task-number: QDS-8063
Change-Id: Id1347d28cd819a81e145bb0319e85d19a734090f
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-11 11:31:21 +00:00
David Schulz
b8a3f8d277 LanguageClient: fix compile
Change-Id: I090945ee1bd4e45983d6b5b4818d95682e0f428b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-11 10:47:41 +00:00
David Schulz
cc196096e7 Editor: Fix relative line spacing
Amends 26bb95331b

Fixes: QTCREATORBUG-28438
Change-Id: I824ca3cea5578bcc0bd72bc30108f717d7194e83
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-11 10:19:43 +00:00
David Schulz
5eca1ff873 LanguageClient: use internal filtering if we got all completions
... at the current position. This reduces the amount of requested
completions.

Change-Id: I0fa35269bc123513217e3b3abd2c921bd92d8d10
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-11-11 10:11:33 +00:00
Leena Miettinen
60bc856a20 Doc: Describe move detection and hiding date in Git Blame view
Task-number: QTCREATORBUG-27876
Change-Id: Ibf93af9dfcd621bf66ddcf84cbae5d5baa963635
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-11-11 09:44:14 +00:00
Leena Miettinen
b59ad8b0a9 Doc: Use active voice instead of passive voice
This fixes issues found by vale.

Change-Id: Ic3495633cc3aabd000e53b4a4107b9bccde28005
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
2022-11-11 09:43:32 +00:00
Ali Kianian
a2b85953cf QmlDesigner: Paste to the clicked position
Copied items would be placed in the clicked position by the paste
action.

Task-number: QDS-8063
Change-Id: Iac4b6faacb0f429b826b144dadad3ec32f53580e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-11 09:28:11 +00:00
Robert Loehning
c6e08d6940 SquishTests: Enable clangd also on machines with low memory
Change-Id: I92caa0da779aacf731a0aa23a86f55e659c51d2b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-11 09:14:35 +00:00
Thomas Hartmann
019e44ce27 QmlDesigner: Rename Projects to Project
Task-number: QDS-8127
Change-Id: I675db923474d1c02105bf9d308637368e00565cb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-11 08:46:51 +00:00
Christian Stenger
7b02984088 Core: Fix handling of displaying shortcuts in context menus
Change-Id: I19f93780bd2c21a3a54e0a4c1b9db87e2327d5ed
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-11 07:35:52 +00:00
David Schulz
63a8218680 Editor: consider all providers with matching activation chars
Amends 45317da25a

Change-Id: I6bc748f2be54f47c0e23788352f74cecdd5d730f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-11-11 05:22:51 +00:00
Thomas Hartmann
1f6511dba0 QmlDesigner: Fix findCommonAncestor()
Task-number: QDS-8247
Change-Id: Ia9d8c0728ebfae6e47acf7ff3a2823c8711549fc
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-11-10 17:08:23 +00:00
hjk
e70658d9e9 ProjectExplorer: Use more FilePath in session handling
Change-Id: Ia457bcaa1faa72a34998915d7648587595bd342d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-11-10 15:44:18 +00:00
Jarek Kobus
643d205364 TarPackageCreationStep: Make it cancelable
Change-Id: I7130ec6039383c3abb8c1266c4473205bded382e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-10 14:46:13 +00:00
Samuel Ghinet
16dde463ed QmlDesigner: Remove "App" from the Components view
Task-number: QDS-8116
Change-Id: I9f578bf3081c9399eaf12c2f3d0aa3c27151a016
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-10 14:12:51 +00:00
Mahmoud Badri
cbea3f15ce QmlDesigner: Allow material browser texture selection
For now texture selection is independent from material selection.

Change-Id: Iffa8354948f0ce64e4a54458531274e0441e87ea
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-10 13:47:37 +00:00
Eike Ziller
f147ef73eb Fix compilation of tasktree tests
Change-Id: Id20b581c53cc4f55735b4047bd9ba723b0e370da
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-11-10 12:47:33 +00:00
Eike Ziller
10dca6b37f Merge remote-tracking branch 'origin/9.0'
Change-Id: Ie069f3b2a1200b3e665341b1d56ce836024b0d29
2022-11-10 13:22:43 +01:00
Mahmoud Badri
bb64505cab QmlDesigner: Implement adding a bundle texture as light probe
Fixes: QDS-8205
Change-Id: Icb57287fa36df5d44d59ffc64e26fa3d778d24d6
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-10 12:13:58 +00:00
Marcus Tillmanns
a71c036822 Boot2Qt: Fix default deployment method
This fix addresses two problems:

1) If no boot2qt device exists yet, no deploy step is created.
This is hard for the user to debug.
2) As the device supports rsync, an RsyncDeployStep would be created.
This is not optimal when the build device is remote, as the fallback
would not check if the target file is up-to-date first.

Therefore this fix adds another possible deploy step that will always
be created if either no device is available, or the build device is a
remote device.

Additionally this change adds an RSync deploy step if neither a remote
build device is set nor a target device.

Change-Id: I8959408e13d690d484ade9e837e7fa65eb106676
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-10 11:08:57 +00:00
Ali Kianian
08f8732108 QmlDesigner: Move nodes to a specific position
A list of nodes could be moved to a new position.
This is useful for positioning the visual items within the transactions
of the DesignDocument.
Paste to position is also available.
Paste method is modified by this commit.

Task-number: QDS-8063
Change-Id: Id5a295ee6a096952379e2b46d8e740d28562d5e9
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-11-10 10:33:57 +00:00
hjk
c8fbc0b13c Android: Code cosmetics
Change-Id: I2a877e1f94ba9ef9e8487aa78dee95f89ec16312
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-11-10 09:59:42 +00:00
Miikka Heikkinen
7fe256ca32 QmlDesigner: Insert CubeMapTexture to correct prop in SceneEnvironment
Fixes: QDS-8169
Change-Id: Ic19430a25ad7e04e0e7c72c2dcc2991d30beac07
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-10 09:45:41 +00:00
hjk
cb11763641 Utils: Fix nullptr access when shell script process fails
When the QtcProcess failed to start, we immediately delete it.
Later it would try to access it to retrieve the command line
for the error message, which would crash.

Change-Id: Ibac942e9a1a91001d90ce7e73d5463c51af81590
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-10 09:36:17 +00:00
Rami Potinkara
50b749fc42 Android: Qt 6.5 NDK25 update to sdk_definitions.json
Qt 6.5 NDK25 as new default.
Qt 6.4 NDK23 as it requires it.

Task-number: QTCREATORBUG-28426
Change-Id: I2d742481a1c490cc9dfe8a25870a5699e38c4315
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
2022-11-10 09:12:01 +00:00
Artem Sokolovskii
39d04fb9e7 QuickFix: Fix generate function definition with unsigned type
Fixes: QTCREATORBUG-28378
Change-Id: Ic94901e430d08aab22c8f4c394eda1f8a93398bc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-11-10 09:04:09 +00:00
Marcus Tillmanns
421e5d9c59 Utils: Better prerequisites check for DeviceShell
Check the existence of all commands used by the DeviceShell
script before trying to start it.

Change-Id: I7a69957a979f8eb021c45e54615ad8d38353d28b
Reviewed-by: hjk <hjk@qt.io>
2022-11-10 07:59:36 +00:00
Christian Stenger
7205ff6c25 Tests: Fix compile with Qbs
Amends c49de14c9d.

Change-Id: Ife37f6763b9039a46d63a7f1b4ef16fd0e787d01
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-11-10 05:52:20 +00:00
Jarek Kobus
d81abf1fb4 DiffEditorPlugin: Expose plugin's future synchronizer
Change-Id: I208a0e6b9c9776486972177f845e76d33121a2a3
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-09 17:47:02 +00:00
Jarek Kobus
c49de14c9d Utils: Introduce TaskTree and Tasking namespace
The TaskTree class is responsible for running async task tree
structure defined in a declarative way.

Change-Id: Ieaf706c7d2efdc8b431a17b2db8b28bf4b7c38e5
Reviewed-by: hjk <hjk@qt.io>
2022-11-09 17:06:31 +00:00