Commit Graph

80400 Commits

Author SHA1 Message Date
Christian Stenger
37a86061d8 CMakePM: Adapt to change in FilePath
Silences some soft asserts.

Change-Id: I4e39b66983552d85650062a3e8748e91936e8174
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-06 05:25:54 +00:00
Thomas Hartmann
7d421833d7 QmlDesigner: Add trace points for top toolbar
Change-Id: I0a8c2f1497ac5e6d1c299b524ad80e1932ef2143
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-05 18:50:56 +00:00
Jarek Kobus
77616b8086 DiffUtils: Get rid of PatchFormattingFlags
Get rid of PatchFormattingFlags argument inside
DiffUtils::makePatch(), as there is the only caller of this
method. Internally, behave like the GitFormat flag was passed.

As all callers to sideFileName() were always passing
AddLevel (GitFormat flag contained AddLevel), the flag is
not needed anymore.

Change-Id: I1993cfd7212f5f60a5bdb2c9e1e4317c3ecd91d7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-05 17:17:09 +00:00
Jarek Kobus
d829d9ff33 StringUtils: Add trimFront(), trimBack() and trim() methods
Change-Id: I900c30111c79bee548c4861b082d7b035a5dc43d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-05 17:17:00 +00:00
Brook Cronin
a82991acf9 QmlDesigner: Apply theming to Crumble Bread
Change-Id: Ia81c3a3c224dcea531d3d90d1e0ef787e1d62179
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 19:26:02 +00:00
Ali Kianian
b9efddce4f QmlDesigner: Fix the hover state for the icon of "Toggle Group"
- The icon of "Toggle Group" is replaced by an iconFont.
- The icon of "Reset View" is replaced by the same iconFont.

Task-number: QDS-8970
Change-Id: Id1c15b1733a2366da3769d6be7b89d9cb01b7807
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 18:46:33 +00:00
Henning Gruendl
4e8e18f103 QmlDesigner: Fix form editor margins
Change-Id: I3ab1966885f43b1aafb835f44f743119ce7baf02
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 18:41:54 +00:00
Ali Kianian
e5a930d2ca QmlDesigner: Apply the icon for imported models in the 3D context menu
Task-number: QDS-8970
Change-Id: I7078aaf12cecf19e5ddfcd77266b9d750889d933
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 16:27:44 +00:00
Ali Kianian
76a221633b QmlDesigner: Make separators of the context menu collapsible
A default icon makes separators particular. So the default icon has
been removed for SeparatorDesignerAction.

Task-number: QDS-8987
Change-Id: Icdaf67e9432e6767642b5a1491881e3305a57c0f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 16:27:06 +00:00
Ali Kianian
8b08306330 QmlDesigner: Apply new design for 3D Context Menu
- 3D Context is a QmlEditorMenu
- Icons are visible for 3D context menu
- New icons are added

Task-number: QDS-8970
Change-Id: Iee8dee59bec2c27bc667a1bdb69c64d88841ad36
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-03 16:26:30 +00:00
Jarek Kobus
ebcd8bcd51 DiffEditor: Simplify DiffEditorDocument::plainText()
Change-Id: If7c1ab43f099bbbc573ba354668c56fee0eb55a5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-03 15:31:58 +00:00
Jarek Kobus
bf64af6f52 DiffUtils: Simplify file name formatting
Change-Id: I11857af58fe50dae7449a763663a8a3ba123d239
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-03 15:31:47 +00:00
Jarek Kobus
202b696677 DiffEditor: Fix a crash when "No difference"
It may happen that async task associated with diffing one pair
of files may not report any value. This happens when both
file contents are the same. In this case taking a result from
async task on a successful done will lead to crash.

Add AsyncTask::isResultAvailable() method. Use it in client code
just in case, where needed.

Fix DiffFilesController, so that no result is allowed for all
running tasks (i.e. make the main group optional).
Collect list of optional results instead of direct results.
The empty optional on the list means the result wasn't delivered
by async task and it's skipped.

Fixes: QTCREATORBUG-28750
Change-Id: I4ca678a187fad619bae470da3e806e8c8da61127
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-03 15:31:25 +00:00
Leena Miettinen
ce0f48e0f9 Doc: Replace "contain" with "have" to simplify language
This follows the ComplexWords rule in vale.

Change-Id: Ie5dbb7ac1eff1546dcfbe2bf5da6cc3ed18b7a20
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
2023-02-03 15:06:17 +00:00
Christian Stenger
dd3f5d3a6a SquishTests: Fix designer test
Children inside the object inspector are sorted
lexicographically nowadays.

Change-Id: I2f704e3a3cca526246babb2b12d48fe359eb6e6b
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-02-03 14:26:25 +00:00
Christian Kandeler
e771560ec7 ClangCodeModel: Do not traverse the AST in the semantic highlighter
... with clangd >= 17. We do not need to look at AST nodes anymore;
everything comes from the server.

Change-Id: I46eb91f26515e31b752020edbc32f1b23c1d79c7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-03 14:07:56 +00:00
Henning Gruendl
f76c009a89 QmlDesigner: Fix ComboBox popup offset
Change-Id: I44fff85f231695250e530daf2e6474055d4acf3d
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 14:00:45 +00:00
Alessandro Portale
801709f72e ProjectExplorer: Show recent projects with native paths
The paths in the "Recent Projects" menu, in the recent projects list on
the welcome screen and those in the sessions list on the welcome screen
were shown with non-natice directory separators on Windows.

This fixes it for project FilePaths with osType() == OsTypeWindows

Change-Id: I26afd56a82e32992f04bb3f2f1e2c1e767208ce5
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-03 13:41:53 +00:00
Thomas Hartmann
65710ae2f8 QmlDesigner: Do not set transient window on Windows
This crashes in complicated ways.

Task-number: QDS-9031
Change-Id: I7d70c6f58152918db2e6038b40435133e814e453
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 13:18:51 +00:00
Brook Cronin
27f431bc6e QmlDesigner: Apply style to toolbars
Change-Id: I9e25b999f2c0830e28bd36db9efda3246f9bd324
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-03 12:14:46 +00:00
Brook Cronin
a53af31b6c QmlDesigner: Apply style to studio controls
Change-Id: I7881b614e6687dbaec2bbeab9851000ad492ba1a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-03 12:14:39 +00:00
Brook Cronin
e0eb8d4fa9 QmlDesigner: Apply style to states view
Change-Id: I78d1d2fc6f2be2813b0e1f25b73a9ee1e80f5c16
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-03 12:14:32 +00:00
Henning Gruendl
9677d39c7b QmlDesigner: Fix style for Menu and MenuItem
Change-Id: Ib362de4d928001402cbff75303d498794e6c7ed0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-03 12:12:09 +00:00
Brook Cronin
b122030925 QmlDesigner: New themes and control styles
Change-Id: I8783d8cda6a8c0b954a58d2f65c54cdc7dfa6166
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-03 12:11:18 +00:00
Jarek Kobus
0d0ce383be RemoteLinux: Reuse StringUtils::joinStrings()
Change-Id: I5be99df99a4b3952374b9f3b719d032d897b691c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-03 12:03:59 +00:00
Jarek Kobus
5d96c3a4e9 ProjectExplorer: Reuse StringUtils::joinStrings()
Do some minor cleanup.

Change-Id: I375cec2cd4e0def201c09f5ad9eea4226a5d64e6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-03 11:59:29 +00:00
Christian Stenger
383c2205d0 QtSupport: Fix output formatter test
Broke with 8655603c2e.

Change-Id: I87a366065e5764ecd62d2a2799f408af4341f20b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-03 11:54:20 +00:00
Jarek Kobus
2d8d27c9ba StringUtils: Add joinStrings method
See QTBUG-110900. In meantime, StringUtils addition.

Change-Id: I700321a65d2d00b85daa412c77b573457312ad3c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-03 11:33:27 +00:00
Christian Stenger
f48b8b7bcb AutoTest: Avoid potential crash
Invalidating the filter model may crash while updating
the source model as it emits a layoutChanged().
Just invalidating the filter works as the sorting of items
is not touched.
Workaround this by explicitly using invalidateFilter()
instead of invalidate().

Task-number: QTBUG-103952
Change-Id: I52abda3936e870bb448c420e98a122edecffda7e
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-03 11:25:40 +00:00
Brook Cronin
e068a01fa6 QmlDesigner: Add new icons, fix broken icon
Change-Id: I1ab1213493deb0070e4545e86fd19fe455f46b0c
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 11:21:39 +00:00
Miikka Heikkinen
92f3d4adf5 QmlDesigner: Make AudioEngine and AmbientSound non-containers
These type don't support child nodes.

Fixes: QDS-9026
Change-Id: Ic4afd1631db400d8a0efa95480f4a23467fdabf4
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-03 11:08:08 +00:00
Christian Kandeler
d7308cc7a6 ClangCodeModel: Ignore built-in types
... in the semantic highlighter. The syntax highlighter already handles
these.

Change-Id: Ib1e80ec194021dbd2b4eca7a300db869ccddb7b0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-03 10:59:41 +00:00
Artem Sokolovskii
020320ab78 Android: Add extension to the package name in SdkManager
- Add "Extension 4" if the name contain "-ext4"
- Fix issue with two Tiramisu packages, now one of them
conatin "Extension 4" in the end.

Change-Id: Ib84807e9401acdef53c3dc1195dc3dc6ef34a57d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-03 10:42:45 +00:00
Henning Gruendl
fb7ab99c5e QmlDesigner: Fix crash on macOS TopLevelComboBox
Change-Id: I0a33143a646ef2b8c251fa4c9737dbd979d6461f
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 10:37:02 +00:00
Samuel Ghinet
5142632c22 QmlDesigner: Ensure Effects folder is visible after recreate
Moved the Effect Maker functionality from assetslibrary model to the
widget, so as to have access to the `directoryCreated()` which is used
on the QML side to (forcibly) update the rows. This should fix it, even
though I could not reproduce the problem for effects myself -- adding
ordinary assets, though, always emits `directoryCreated()` to avoid
this kind of problem.

Task-number: QDS-8916
Change-Id: Ib72c4a235851eed266b6751bb67d4de6acbcfcc5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 09:58:22 +00:00
Samuel Ghinet
9147c7abe2 QmlDesigner: Fix renaming a folder in Assets View expands the wrong folder
The previous implementation was saving the _row_ of the TreeView before
performing the rename, and after the rename it was expanding that _row_.
However, when renaming a folder causes it to be moved up or down between
the rows, the saved _row_ number becomes invalid.

The better way is just to use the same mechanism that is being used when
creating a new folder: add the new folder path to a list, and later on
expand rows based on that list.

Task-number: QDS-8896
Change-Id: I6a6bb2faaa7d03ea2af384e5f2b635000577a94c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-03 09:57:35 +00:00
Miikka Heikkinen
15d92cf1e5 Use imagecache for all AssetImageProvider images
TextureImageCacheCollector is added to the existing async image cache
to generate thumbnails for image files.

Fixes: QDS-8581
Change-Id: I4a334b3241688d7a61a0560463bff32763a216a5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-03 09:42:34 +00:00
Christian Kandeler
7c6a00b4e7 ClangCodeModel: Ignore number literals
... in the semantic highlighter. The syntax highlighter already handles
these.

Change-Id: I26f6bca06c4fc648ffe59bd9e3639d81d2265755
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-03 09:33:55 +00:00
Jarek Kobus
4f70aa7052 TestRunner: Reuse TaskTree
Get rid of QFutureInterface argument from
ITestConfiguration::createOutputReader() and from
TestOutputReader c'tor.

The fine-grained progress reporting was broken anyway:

1. The assumption was that testCaseCount was meant to be
   the total number of test functions executed. It didn't
   include the initTestCase() and cleanupTestCase(),
   while those were reported on runtime apparently
   (and exceeding the max progress by 2).
2. In case of tst_qtcprocess, when the whole test was run,
   the testCaseCount reported 41, while the real
   number of functions was 26 (+2 = 28 for init/cleanup).
3. While the max progress was set to testCaseCount initially,
   the corresponding FutureProgress rendered the progress
   always in 0-100 range, what didn't match the reality.

Instead, rely on TaskTree progress, which resolution
is per test as a whole. So, when executing a series
of tests this should scale fine. In addition, the
progress advances fluently according to the expected
run time - with 10 seconds hardcoded.

The original code locations, where progress was bumped,
are left with a TODO comment for any possible future tweaks.
Like in case of result reporting, fine-grained progress
reporting may be implemented by providing additional signal,
so there is no need for QFutureInterface inside
TestOutputReader.

Change-Id: Idc11d55e3a49dac8d1788948b9a82f68199203c6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-03 08:15:58 +00:00
Christian Stenger
8655603c2e Utils: Improve readability on output windows
Enhancing the StyleHelper by some functionality used
on the results pane of the AutoTest plugin and make use of it
inside the output formatter.
This highly improves readability depending on the current theme
when having output formatters and allows to easily re-use the
output formatter there instead of having several stuff
re-implemented.
Mainly relevant for output formatted with ANSI escape codes.

Change-Id: Ic2f5eff877656eb52e3bd2fda0ec9a015e54ea82
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-03 06:34:53 +00:00
Henning Gruendl
88e75709d4 QmlDesigner: Fix TopLevelComboBox popup close
Task-number: QDS-8957
Change-Id: I0d4b5d976777c6dc3c15b8eed40bda51198dca7f
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-02 18:35:43 +00:00
Cristian Adam
2eb9338be0 CMakePM: fix presets sort assert with MSVC in debug mode
Amends 9deef74d9e

Change-Id: Id4e7fcbfa6bdc8ac65afc2c93510e8389d7e7fe4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-02 16:50:21 +00:00
Sivert Krøvel
d8b2673ad1 McuSupport: Update qmlproject wizard to stable API
Updating the New project-wizard for qmlproject based projects to use
the stable API as released in Qt for MCUs 2.4.

Task-number: QTCREATORBUG-27721
Change-Id: Ie97d6478135022c1733927c98a3c7f729dc0bb52
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-02 16:15:31 +00:00
Cristian Adam
51cbfd77db CMakePM: Improve CMake presets kit config hashing
Amends a3153c535d

QT_QMAKE_EXECUTABLE was not taken into consideration and this would
result in not matching kits.

Also Visual Studio generator will not have a CMAKE_C|XX_COMPILER values
in the cache.

On Windows there could be paths with "C:" vs "c:" and the hashes again
wouldn't match.

Change-Id: I5da5fafbd29f3d1fd8c9615c41b7659e63c30ff1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-02 15:56:46 +00:00
Pranta Dastider
cd7a5904bc QmlDesigner: Update Tooltips for BorderImage Section
This patch update tooltip text for Border Image fields
in Property editor.

Fixes: QDS-8929
Change-Id: Ie49549244cf8ea0d7ee52ffe2446b3e25a129e4e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-02 15:33:29 +00:00
Pranta Dastider
16c7dd6466 QmlDesigner: Update Tooltips for Icon Section
This patch update tooltip text for Icon fields
in Property editor.

Fixes: QDS-8924
Change-Id: Ic9bd8b025f9218e1492c9ad54c5beaaf350d4596
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-02 15:32:41 +00:00
Pranta Dastider
611e0fc8d1 QmlDesigner: Update Tooltips for Button Section
This patch update tooltip text for Button fields
in Property editor.

Fixes: QDS-8927
Change-Id: I11920a2f9680cf0901b9111623f2af3c52eb0b26
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-02 15:32:11 +00:00
Pranta Dastider
bea410e987 QmlDesigner: Update Tooltips for AnimatedImage Section
This patch update tooltip text for AnimatedImage fields
in Property editor.

Fixes: QDS-8928
Change-Id: I430d5efe72696c36504364ce3f5bbdff31ebbc54
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-02 15:31:09 +00:00
Miikka Heikkinen
d3afdf3aba QmlDesigner: Prevent lock and eyeball for material library items
Fixes: QDS-8883
Change-Id: I00839e5c446842ab76ab7e68a54509e131da7471
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-02 15:12:15 +00:00
Christian Kandeler
c31522731c ClangCodeModel: Ignore boolean and pointer literals
... when doing semantic highlighting. The syntax highlighter already
handles these.

Change-Id: I048e033eda5b72d2e6eafaaccdb66040a00afe6a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-02 13:36:16 +00:00