Commit Graph

87591 Commits

Author SHA1 Message Date
Christian Stenger
4d98ffab57 Debugger: Fix displaying LLDB states
Do not update states label with empty strings while
debugging as this overrides real state information
when performing additional actions like fetching
variables, stack, and so on  inside the debugger.

Change-Id: Ic026644931c845b6f3fb5bb422acc6e36e4a4142
Reviewed-by: hjk <hjk@qt.io>
2024-05-23 11:20:15 +00:00
Miikka Heikkinen
8bfe805645 QmlDesigner: Allow rotation of 3D import preview
3D import preview can now be rotated using left mouse button and
dragging the preview image. This causes camera to orbit around the
previewed model, similar to rotation to 3D edit view orbit camera.

Close/Cancel button logic was also improved.

Fixes: QDS-12795
Change-Id: I0c7d1ad28f8fe779b9bedc4bf76be704078d91a6
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-23 10:48:44 +00:00
Marco Bubke
d345254579 QmlDesigner: Add project storage error mechanism
Task-number: QDS-12761
Change-Id: If782b5d81b53979033e2738292dedac91e1adcbf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-23 10:43:52 +00:00
Marco Bubke
f296f9d77c QmlDesigner: Parse components recursively
Change-Id: I8fa892cce8e34b5e58cbdde04c57e30b9fc74866
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-23 10:42:43 +00:00
Miikka Heikkinen
fd2c7db691 QmlDesigner: Use correct Enumeration type for instance values
Puppet used to return just string for enumeration types.
Now it will use Enumeration type properly.

Change-Id: I602891e34c03cb659ee0a8e4571b39b6e24f9e1c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-23 10:25:11 +00:00
Pranta Dastider
5f23a07ba7 QmlDesigner: Update Qt Academy course links in documents
This patch adds some of the Qt Academy course links in
the relevant documents.

Fixes: QDS-12747
Change-Id: I8309681869922be3277e775c312ffa1210d64a29
Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io>
2024-05-23 08:46:38 +00:00
Mats Honkamaa
1c216f0a38 Doc: Add glow best practices docs
Task-number: QDS-11695
Change-Id: Icf57fe5d94194e5be3d741a19f9f3dea51114048
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-05-23 08:38:42 +00:00
Mahmoud Badri
8dfef06aec QmlDesigner: Remove the optional func param from Model::generateNewId()
Not needed anymore after using UniqueName class.

Change-Id: I252659376af7e8aaf5e4642f9b9bfd2c57cc19fb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2024-05-23 08:17:10 +00:00
Eike Ziller
30d755ccb4 COIN: Respect the DisableTests feature setting
COIN already skips running tests with this feature, but
also build Qt Creator without test support.

Change-Id: I10e8323466a4baf4cac7128efbdbd54b16bb8e2c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-23 06:47:51 +00:00
Teea Poldsam
93861d6d56 Doc: Reorganize the sidebar
Fixes: QDS-12809
Change-Id: Ic28b94db2752992c4b08fe0c6ac15a159399a486
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-23 05:54:46 +00:00
Tim Jenssen
0433b8c479 Qml2Puppet: fix stand alone puppet builds
Change-Id: I24f5ca625429c636052d0c92c495a20a6942c92f
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-22 12:59:20 +00:00
Ali Kianian
b5db9f8fb3 QmlDesigner: Remove Model Editor
Task-number: QDS-12808
Change-Id: I9d1a716cda8d4a972b335270961ee7b489ed07c3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-22 11:50:12 +00:00
Mats Honkamaa
d9f4987d71 Doc: Add link to Design Effects
Change-Id: Ia62f86bc586a6ccb5b60b95fdfef97068decb408
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-05-22 07:51:42 +00:00
Mahmoud Badri
9a6bd997b5 QmlDesigner: Convert UniqueName keywords to array of stringviews
Also change the class to namespace, rename "get" to "generate"
and add unit tests.

Change-Id: Ib52bf7e3e0110e33acb40ca6e3d9bfc61cefdca0
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-05-21 13:48:06 +00:00
Leena Miettinen
94cfacab00 Doc: Add direct link to the Getting Started with Qt Creator course
...in Qt Academy. No login is required.

Fixes: QTCREATORBUG-30805
Change-Id: Iec62319b8affe087149f084db4e2341d4f11e51b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io>
2024-05-21 13:46:59 +00:00
Pranta Dastider
6cf945af59 QmlDesigner: Update Qt Design Studio to Qt Creator workflow doc
This patch updates the Qt Design Studio to Qt Creator workflow.
Adding the new way to generate CMake and then importing it in
Qt Creator.

Fixes: QDS-10787
Change-Id: I31c54c92ddca8872977ac066d06d7877e3770671
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-21 10:20:10 +00:00
Miikka Heikkinen
14e0196442 Show 3D import preview
Show preview of 3D import in item library import dialog
when importing a single 3D asset.

Fixes: QDS-11111
Change-Id: I13135be1e931cbee034ca8a89654c0827b937bdf
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-21 09:45:30 +00:00
Miikka Heikkinen
872c4bf092 QmlDesigner: Fix double deletion of rewriter actions
Actions were deleted after being inserted into actionsToRemove,
which caused them to get deleted again, leading to crash.

Change-Id: If6597f117859ca92cfc5af67c730e2f84e5c0639
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-21 09:09:13 +00:00
Johanna Vanhatapio
46350083de Doc: Improve the documentation for 3D
Some editions to comply with the MS Style guide and to
improve the structure.

Task-number: QDS-12670
Change-Id: Iddb0778327880ec65bdb590d1e02e4ca15e72051
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-21 05:45:21 +00:00
Christian Stenger
85617f1369 Git: Avoid crash when reloading files
Explicitly reset the document when the document gets closed.

Task-number: QTCREATORBUG-30824
Change-Id: I4fb3d6fd6041990e5b8b4f6b7c4fd9ebc62f5a4a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2024-05-21 05:34:34 +00:00
Mahmoud Badri
fc79bad535 QmlDesigner: Remove Model::generateIdFromName()
- Added UniqueName::getId()
- Cleaned up generateNewId() and made it use UniqueName::getId()
- Moved UniqueName to designercore

Also reversed how the predicate of UniqueName::get() works.

Change-Id: I89c50f7d80610243f56be165b1495ef428da457c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-20 12:58:22 +00:00
Miikka Heikkinen
73ce3a891f Allow scene environment as background for non-View3D scenes
For non-View3D scenes, the environment from the previous View3D
is used.

Fixes: QDS-12398
Change-Id: I6adc82cd0205ebe443b5834d9bb0f4906e2cd009
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-20 11:06:11 +00:00
Tim Jenssen
cbd36f93fa Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: Ief07ead0b4cf513c70bd74d4f5e28e4642edc78e
2024-05-17 17:57:18 +00:00
Tim Jenssen
fe7b46c28e crashpad: fix include
Change-Id: Ia5bd19db4bb05de673632fa7790b72a4824313bb
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-17 17:52:35 +00:00
Tim Jenßen
ed97f8172a qds: increase version to 4.6.0
Change-Id: I5d99ba1e92399170d9fd828df573f33503ee4b12
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-05-17 13:54:27 +00:00
Christian Kandeler
e48a40bd8d Update qbs submodule to HEAD of 2.3 branch
Change-Id: I9afd32c952cb4d57ed0daf8ff9860a35f3d78be0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-17 12:55:31 +00:00
Leena Miettinen
946bbb477e Doc: Fix QDoc warnings in BaseAspects docs
Change-Id: Iee6e29040dfffaa4fa7da99cb0b854ef22b45042
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-17 12:25:39 +00:00
Leena Miettinen
ced23f3f89 Doc: Use "p4 set P4CONFIG" on all platforms
Fixes: QTCREATORBUG-30816
Change-Id: Id95062f24bcd2b225581f3158c779caac6780a14
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-05-17 09:51:42 +00:00
Ali Kianian
51a27f3a12 QmlDesigner: Close the color editor popup before adding
Fixes: QDS-12498
Change-Id: Id3c565ffb9fca7f186ebeb0cf8051194c7944d4d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-17 09:39:33 +00:00
Leena Miettinen
c7803fe6ae Doc: Mention QML Language Server in "Adding Language Servers"
- Add a link to "Turn on QML Language Server".
- Add the \QMLLS macro and use it everywhere.

Fixes: QTCREATORBUG-30823
Change-Id: I75ff67967ad6bf592dceeae46486713012aafd50
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-05-17 09:07:23 +00:00
Leena Miettinen
2b23a359d4 Doc: Describe using Perforce config files on Linux
Fixes: QTCREATORBUG-30816
Change-Id: I52adaa3a5f216a503c7e22c8e4905146ee778f3b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-17 07:03:46 +00:00
Leena Miettinen
58abfc52e5 Doc: Fix QDoc warnings for the API reference
Change-Id: I3507009756822f3ac795057a37c5f34a6e2bcd10
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-17 06:57:23 +00:00
Johanna Vanhatapio
92120273b1 Doc: Add a missing qdoc command
Change-Id: I36567e0e3da15d99cf8fe9eac887112ad20b032d
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-17 06:52:47 +00:00
Henning Gruendl
a7913d5430 QmlDesigner: Update EffectsSection tooltips
Change-Id: Ib0cf243f84d125ab488ff4f597bbc4dd1637c1d3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-16 15:14:15 +00:00
Marcus Tillmanns
450611ddcc Utils: Fix FilePathAspect::expandedValue
It should use the macro expander if there is one.

Change-Id: I8fb7760f23305f4b243e784d38d44d9bef4c0065
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-16 13:52:45 +00:00
Marcus Tillmanns
60a66ce3fa Utils: Remove duplicate call
Change-Id: Ic21ea5a911de01f63fa5c736233cef544a00c210
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-16 13:34:45 +00:00
Mahmoud Badri
379933cb39 QmlDesigner: Hide bundles from the components view
Also few relevant tweaks.

Fixes: QDS-12680
Change-Id: I3d552d9de2d92c0501c7b05d626cad84e3688dc9
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-16 10:37:46 +00:00
Mahmoud Badri
16d9535c8d QmlDesigner: Hide content lib user when a warning message is shown
Fixes: QDS-12679
Change-Id: I5cc673eb24f6479a3cb8e876e0f31a4d2d5cb658
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-16 08:44:29 +00:00
Robert Löhning
394e9a9fb3 SquishTests: Don't proceed in hopeless situation
When the GenericProposalWidget is not being shown,
there's no point in trying to use it.

Change-Id: Ibe6f3ed9230fdc41271f5ff8538bd863da3d0ab3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-16 07:05:07 +00:00
Alessandro Portale
15446c9e3f Android: Don't crash when dis- and reconnecting phone via USB
When ADB signals a change about the list of connected devices, the whole build/run steps tree gets deleted and recreated.

The AndroidBuildApkStep is a part of that tree and starts one or more
"keytool" processes on creation/init. They were started with their own
event loop. Those synthetic event loops caused a change in order of
deletion which led to crashes with obscure backtraces.

This change removes the event loop creation from "keytool" calls. The
crash is avoided.

The calls take ~0.5 seconds. The short UI freeze should be an acceptable
hotfix trade-off for a crash in QtC13. If 0.5 seconds freeze seem too
much, a better fix could be done in QtC 14.

Fixes: QTCREATORBUG-30645
Fixes: QTCREATORBUG-30770
Change-Id: I8842dc87023142ae75572bf255c7f1ec808d9bab
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-15 18:52:46 +00:00
Pranta Dastider
36ed2c6278 QmlDesigner: Create new document for QDS Property Effects
This patch creates a new document for Qt Design Studio
Property Effects.

Fixes: QDS-11087
Change-Id: I53287ae9635161a5a48c9cdaed045977944f34c0
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-15 11:51:53 +00:00
Tim Jenssen
310abd3b70 TextEditor: use modern approach to delete TextEditorWidgetPrivate
Try to tackle the crash at destruction:

https://the-qt-company-00.sentry.io/issues/5315538277
https://the-qt-company-00.sentry.io/issues/5312380342
https://the-qt-company-00.sentry.io/issues/5237253338

Pick-to: qds/4.5
Change-Id: Id4436bf5adc0c725f9b5538480619ed99428413f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-05-14 19:15:37 +00:00
Marco Bubke
76ec124698 QmlDesigner: Fix compilation error
Change-Id: Ia49491a7deae085460fe4498cbcc6727cc10db7b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-05-14 14:58:38 +00:00
Mahmoud Badri
2376e008f7 QmlDesigner: Update 3d user bundle imported state on load
Change-Id: I8df19486523cfd25db832ed78f0792095548dfea
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-14 14:45:43 +00:00
Mahmoud Badri
f462be8e80 QmlDesigner: Prevent adding component materials to the content lib
Also remove the experimental restriction on the content lib user section

Fixes: QDS-12637
Change-Id: Ice2ac3f32a934d7c65ea7f406a2b5f8c4b5fed0c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 14:02:28 +00:00
Marco Bubke
bfbcf88161 QmlDesigner: Fix crash on exit
Change-Id: I26f3c1154d8cdef9cf76b6f608634067b099ea0e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-14 13:48:53 +00:00
Mahmoud Badri
c2778b2301 QmlDesigner: Don't override existing content lib user textures
Better solution to ask for overriding or not is for the future.

Fixes: QDS-12626
Change-Id: Ib147121d3b9cb783f45a79a96fa432d371750a0e
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 12:47:29 +00:00
Leena Miettinen
2c41ce2f0a Doc: Describe configuring projects in build/run example tutorial
Update the screenshot also in the "Open a project" topic.

Fixes: QTCREATORBUG-30799
Change-Id: I1967907843f792671a665d15b343669f353d4a9f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-14 11:53:37 +00:00
Thomas Hartmann
22657af3f0 QmlDesigner: Use reverse iterators to support qualified scopes
Change-Id: I88a4dcbff7a50f399b81a948f273e9cf9e36782d
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-05-14 11:30:28 +00:00
Mahmoud Badri
7ffd4805ca QmlDesigner: Handle content library user items empty state
- Make sure search is working
- Hide sections with no items
- Other tweaks

Fixes: QDS-12682
Fixes: QDS-12625
Change-Id: Ia304743323c0459dd314752dba0cf1dc5e4c4889
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-14 10:22:15 +00:00