Commit Graph

80147 Commits

Author SHA1 Message Date
hjk
90ee349980 Android: Use FilePath as adb pull target for the deploystep
Helpful when the build dir is not on the local host.

Change-Id: I511ed7e4389a9a4dd5b5504bb35e21aadfb20285
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-14 16:51:33 +00:00
Cristian Adam
73ba7e8f98 GitHub Actions: Remove deprecation warnings
This removes the warnings that the jobs display due to upgrades
that will be done for the internal GitHub Actions services.

Change-Id: I4865c7e61f3da04a00f14657a87ecdd63c24325c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-11-14 14:56:37 +00:00
Eike Ziller
3f0f9a63c0 Merge remote-tracking branch 'origin/9.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri
	src/plugins/clangcodemodel/clangdcompletion.cpp

Change-Id: Iaa92bf057d7696d2da10802ff95e80863f3235d8
2022-11-14 15:26:20 +01:00
Samuel Ghinet
873ca6d391 QmlDesigner: Fix scene environment color for 3D view
There were two problems:
* When the user checked "Use Scene Environment Color", the initial
  color set as background color was not the one configured in the
  "Scene Environment" clear color. The user had to change this color
  manually.
* If the "Use Scene Environment Color" is checked, then, upon the user
  clicking "Reset View", the background color was changed to a wrong
  value.

Also, fixed an error message in QML.

Task-number: QDS-7436
Change-Id: If42ef1a4532244f3326f5a27a082371aa77d78d8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-14 14:00:50 +00:00
Miikka Heikkinen
889e999f32 QmlDesigner: Clear material preview cache on detach
The previews are cached based on modelnode internal id, which can
overlap between documents, resulting in briefly showing incorrect
preview when new document is opened. Also, never clearing the cache
leads to leaking memory.

Fixed the issue by clearing the preview cache whenever all materials
are removed from browser (model detach and material library deletion).

Change-Id: Idad39fef62871c4e94f35604e643c7195ae9ec81
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-14 13:22:11 +00:00
David Schulz
09ee528c40 Editor: unify assist processor handling
Define the run type of the processor by its implementation instead of a
enum value of the provider. The execution of a processor inside the
assist now follows a unified procedure.

Change-Id: Ibe9fab324c6072e77702c2663946d7a9f562a085
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-11-14 13:02:51 +00:00
Alessandro Portale
993815cb06 ProjectExplorer: Fix build device retrieval in BuildDirectoryAspect
Change-Id: I40aeb4a775a99df7395f4c23476bae7f98201b69
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-11-14 12:46:35 +00:00
Xu Shitong
f27d5b8784 Chinese translation update for 9.0 (Test module)
Change-Id: I6c34ee286747ca0807e3208369a9e305f5c4a299
Reviewed-by: Liang Qi <liang.qi@qt.io>
2022-11-14 12:17:54 +00:00
Eike Ziller
8130494b5f Chinese translation update for 9.0
Change-Id: Ia00b2fdc7b3ea5e144cbdd49ba8e1cab80fbac79
Reviewed-by: Xu Shitong <xushitong@uniontech.com>
Reviewed-by: Liang Qi <liang.qi@qt.io>
2022-11-14 12:17:42 +00:00
Tim Jenssen
b10c135a10 qmldesigner: remove delayedResetView();
Change-Id: Ie577b6b686a10e4e3525ba858a70bea0b4077566
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-14 10:57:06 +00:00
Amr Essam
8c7ed5a03e QmlDesigner: Add effect placeholder icon
Placeholder icon until final icons are provided

Task-number: QDS-7713
Change-Id: Ic66f0603ed7088584ea0df6af9f977e732065d3c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-14 10:56:27 +00:00
Ali Kianian
63d30351a6 QmlDesigner: Add "Select Parent" to 3d Context Menu
"Select Parent" action is added to the context menu of the
Edit3DWidget.

Task-number: QDS-8199
Change-Id: Iff6ce50eba966bea60f1b09f497632c3ff290c27
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-14 10:54:19 +00:00
Leena Miettinen
d44a62d588 Doc: Describe "rettype" in "putCallItem" Dumper class
Not all Dumper class members are described, so remove or modify the
leading sentences before lists of members. Add a reference to
dumper.py.

Fixes: QTCREATORBUG-28404
Change-Id: Ib681c44f8ff952d2f2ac0a37a5daf12b4b2486d6
Reviewed-by: hjk <hjk@qt.io>
2022-11-14 10:07:58 +00:00
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
Christian Stenger
06191a5883 Adapt to upstream change
Change-Id: I78dc0a6a300857cadeb770ad43dc06beca32351b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-11-11 07:30:39 +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