Commit Graph

88653 Commits

Author SHA1 Message Date
Aleksei German
e8a47b1b8a QmlDesigner: Fix Properties Section for Effects
Change-Id: I249723f45b83731232acc9e68a6c4e27b85d6d11
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-15 16:11:44 +00:00
Thomas Hartmann
21f6cbe4e4 QmlDesigner: Adjust paths for new project structure
Before we used "content" but in the new project structure
we will use "ProjectNameContent" to make the uri unique.
First check for "content" to support older project.

Keeping only the implementation in DocumentManager::currentResourcePath()

Change-Id: Ib6b21f52c078fdb9a2ff31c02855754f83741538
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-15 15:14:06 +00:00
hjk
1b4f1e5bd7 Utils: Inline rootinjectfsengine.h into its only user
Change-Id: Iac02bdf550ed313fec3a1c113583cd6ef1581d3e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-15 14:10:11 +00:00
Thomas Hartmann
3c13cf9493 QmlDesigner: Use the same location on macOS
Task-number: QDS-9979
Change-Id: I6a706b5325fd74221523cab4f2be838bdd871592
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-15 14:03:40 +00:00
Thomas Hartmann
4b0f31e823 QmlDesigner: Fix crash on shutdown
We have to set the correct onwership.
For objects from C++ QJSEngine::CppOwnership is the default,
unless the object comes from a function like here.

Change-Id: Idc35e2b06656da228a55d78e5b41f84795a8aa6e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-15 14:03:29 +00:00
Thomas Hartmann
3aec095e50 QmlDesigner: Fix crash
Change-Id: I0b2080c19868efd92427f47bd344412e6460e126
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-15 14:03:19 +00:00
Marco Bubke
8694de43c0 QmlDesigner: Fix project storage build
Change-Id: Id734a9618103e61778a772eeb460c7eeb031f076
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-15 13:54:45 +00:00
Cristian Adam
f76e0de7bc CMakePM: Do not show subfolders for custom source_groups
CMake does have a few default source groups (cmMakefile.cxx):
  this->AddSourceGroup("", "^.*$");
  this->AddSourceGroup("Source Files", CM_SOURCE_REGEX);
  this->AddSourceGroup("Header Files", CM_HEADER_REGEX);
  this->AddSourceGroup("Precompile Header File", CM_PCH_REGEX);
  this->AddSourceGroup("CMake Rules", "\\.rule$");
  this->AddSourceGroup("Resources", CM_RESOURCE_REGEX);
  this->AddSourceGroup("Object Files", "\\.(lo|o|obj)$");

This commit will get Qt Creator to display the actual subfolder
structure only if the CMake setting "Show subfolders inside source group
folders" is set and for "Source Files" and "Header Files" source groups.

Any other source group or a custom source group defined by `source_group`
will not get this treatment, since this what the oder IDEs (e.g. Visual
Studio) and what the users expect to have.

Task-number: QTCREATORBUG-27432
Fixes: QTCREATORBUG-30620
Change-Id: I3c30814df2f76d18ee5fd4fd1356d4dfc4b9b09b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-15 13:08:40 +00:00
Cristian Adam
4a95a2d63d Revert CMakePM: Treat all sourceGroups as sourcesOrHeaders project nodes
This reverts commit 973e9dcf90.

Fixes: QTCREATORBUG-30602
Change-Id: I9db6dc6d3fbd7d9a5e48a25bca725a4f86124318
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-15 13:08:30 +00:00
Marcus Tillmanns
f4d5eadcee Lua: Add Lua and sol2 3rdparty libraries
Change-Id: I8960445bb579242a676daf9dcf7f99251de2b201
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-15 12:12:49 +00:00
Leena Miettinen
afc8816589 Doc: Restructure the "Analyzing Code" section
- Turn the topics into how-to and reference topics.
- Rewrite "Analyzing Code" as an overview topic.

Task-number: QTCREATORBUG-29361
Change-Id: Id02253514cd1dcd808f040ced7f9f73f6db5e113
Reviewed-by: hjk <hjk@qt.io>
2024-04-15 11:15:01 +00:00
Jarek Kobus
20e332b135 TaskTree: Introduce parallelIdealThreadCountLimit
Reuse the new element.

Fixes: QTCREATORBUG-30647
Change-Id: I79836a9243abcb1661c79842dcf6c33492342552
Reviewed-by: hjk <hjk@qt.io>
2024-04-15 11:05:18 +00:00
Cristian Adam
c431f24816 PE: Allow configuration of default build dir via env variable
This variable is QTC_DEFAULT_BUILD_DIRECTORY_TEMPLATE and can be set in
a <project>.shared file, or in the system.

Task-number: QTCREATORBUG-30557
Change-Id: Ife221b7cfe88f9a6015bd5fb61270d335f65cb79
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-15 10:50:26 +00:00
Miikka Heikkinen
401bbae862 QmlDesigner: Remove zoom level from affecting edit camera movement
When moving the edit camera with keyboard, zoom level no longer is
used as multiplier for the movement.

Fixes: QDS-12274
Change-Id: I59c903b73fef095e619cccc36868605b47f9ec83
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-15 10:01:29 +00:00
Shrief Gabr
e5c50c6dea QmlDesigner: Change default view3D id in Extended 3D projects
Task-number: QDS-12351
Change-Id: Ib3ecb8e2f6ca1561819f19001d851b0932e9583f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-15 09:52:56 +00:00
Marco Bubke
b01522f102 QmlDesigner: Skip QQuickItem in QtQuick.Templates
Otherwise we have to QQuickItem meta info objects and that creates bugs.

Fixes: QDS-12460
Change-Id: Iaf76df6671c4ca73913285b78bf1d6408fbe93be
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-15 09:26:53 +00:00
Marco Bubke
047b2ef361 QmlDesigner: More unique ptr
Change-Id: Iabce3eb5eb8832c0edf8864adeb7d7a56d965a3a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-15 09:26:30 +00:00
Marco Bubke
7883f15299 QmlDesigner: Fix component file path
Change-Id: I9e5f5dc4906c9c498e4a54f92a7d8a105e0399a1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-15 09:26:23 +00:00
Marco Bubke
316d88bd12 QmlDesigner: Extract default property in qml document parser
Change-Id: I2b3576312cc2bec0c2e103fd3f342a5fe059b10c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-15 09:26:14 +00:00
Marco Bubke
665d043e72 QmlDesigner: Extract default property in qmltypes parser
Change-Id: I0cc9ac71ba764db252e302d11d1cd3e4aff834f5
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-15 09:26:02 +00:00
Marco Bubke
afd1b3b6e9 QmlDesigner: Lookup the default property in prototypes too
The default property can be set too in any prototypes. Look them up
there too. Because it is expensive we cache them in the node meta info
to make hasDefaultProperty() followed by defaultProperty() cheaper.

Change-Id: I3b9ec90fc1bc5f0228dad3b580c335734f03821d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-15 09:25:51 +00:00
Marco Bubke
db84bc43a9 QmlDesigner: Improve node creation with project storage
The file url was missing, so no valid source id could be created. That
lead to invalid imports.

The qualified path for the node instances is now created in the node
instance view.

Change-Id: I2685ab2fdbdb0fa8a5f89793be52c8fae2b8db8c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-15 09:25:46 +00:00
David Faure
093ec3d34f ModelEditor: Fix crash when selecting an element
Same fix as in commit 22f41fb751
but in a different method.

Fixes: QTCREATORBUG-30413
Change-Id: I69790707005edc26c7d3e943d86db132184298e9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-15 09:09:53 +00:00
Christian Kandeler
3b80da7117 ClangCodeModel: Make "live update" of dependent sources opt-in
Not everyone wants to invest the extra computing resources needed for
this feature.
Amends b33b99e2d9.
See 6d805195f6 for the original
motivation.

Task-number: QTCREATORBUG-29943
Change-Id: I4c8cce5bb58b34d930a409ea3e0995377c90d4ab
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-15 08:58:23 +00:00
Christian Kandeler
ac4bf6901b CppEditor: Simplify CppCodeModelSettings
We don't need the QObject wrapper.

Change-Id: Ief0e1314db40cb403c56fe0e660c5dffa326f83c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-15 08:57:58 +00:00
Jarek Kobus
d51128fb8a QmlJs: Fix a warning about comparison of different signs
Amends e1d90a7965

Change-Id: I7c49927cbe8db71e3571875b59b522d186a852df
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-15 08:55:01 +00:00
Christian Stenger
9a32905bcc QmlJS: Add another static check for enum values
Task-number: QTCREATORBUG-19226
Change-Id: Ic995eee2e868bbe1953c0c33d1bab5793e07ebe2
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-04-15 08:54:10 +00:00
Christian Stenger
e1d90a7965 QmlJS: Improve handling of user defined enums
Improves handling of Qml based enums inside qml documents.

 * completion of enums
 * follow the enum
 * highlighting values inside the declaration
 * displaying the enum declaration inside the outline
 * minor static checks

Task-number: QTCREATORBUG-19226
Change-Id: Ia07fd9a8b7fa3106f2ea53198bfdcc50eecb7307
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-04-15 07:56:56 +00:00
David Schulz
ee8245d8aa Core: allow multiple contexts per widget
This makes it possible to allow different sets of actions for a specific
widget depending on the defined contexts for that widget.

Fixes: QTCREATORBUG-30675
Fixes: QTCREATORBUG-30677
Change-Id: I408e0ae445b364d4f450ccdd2fbdfc81ece45015
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-15 07:45:15 +00:00
Eike Ziller
310d3cc041 Merge remote-tracking branch 'origin/13.0'
Conflicts:
	src/plugins/remotelinux/linuxdevice.cpp

Change-Id: Iad28a1bfa4632922931d351d2fe27757cf21dec3
2024-04-15 08:33:39 +02:00
Alessandro Portale
559c57e29c ExtensionSystem: Add "soft loadable" to PluginDetailsView
Change-Id: Ifc9007f07c17dcc68f1b7c62b1027e66e653646f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-04-12 18:32:56 +00:00
Thomas Hartmann
c9f9804edf QmlDesigner: Fix getting the bounding rectangle for an effect
When getting the bounding rect for an effect we actually have
to find the item with the effect first.

Change-Id: I4e20f77c6b8dca9d58ccffb42d8b803f57317cb9
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-04-12 15:39:49 +00:00
Thomas Hartmann
8a21dc325c QmlDesigner: Fix DesignerEffects rendering
The property name changed and we adda bit more padding.

Change-Id: I9432f3d5a053d38feb32649be52a99696a9f3b6c
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-04-12 15:39:41 +00:00
Thomas Hartmann
36f666174f QmlDesigner: Add import for DesignEffects
Change-Id: Ib6a2c8bd8e6d04fe532fe524225d501c40a7a042
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-12 15:39:30 +00:00
Thomas Hartmann
97def66414 QmlDesigner: Properly parse properties
Checking here for the property name was wrong since,
we only want to skip conversion for property changes, list elements
and connections.

Task-number: QDS-12482
Change-Id: Ibff7164b8c3a28d50c483da256450a661a472bb7
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-12 14:52:10 +00:00
hjk
a03974245a ProjectExplorer: De-QObject-ify ExtraCompilerFactory
The QObject related features are not used any more and are not meant
to be used again.

Change-Id: I03ee7929e40c3cd9fd50af020dc4d38280c205d8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-12 14:49:37 +00:00
Marcus Tillmanns
77a2e2fdee Compiler Explorer: Remove unused lambda
Change-Id: Iabef84b8d778449aa0091f29b38e607ab3757b82
Reviewed-by: hjk <hjk@qt.io>
2024-04-12 14:21:54 +00:00
Miikka Heikkinen
3700eac9f3 EffectComposer: Remove invalid properties from effects in use
When effect is saved, the properties it exposed can change if nodes
are deleted from the effect. If any of those removed exposed properties
was assigned a value in the scene, those property assignments are
removed from the scene.

Fixes: QDS-12359
Change-Id: Ia3840584c6361b9e140c6840ff8fa3036c1b7d93
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-12 14:03:49 +00:00
Miikka Heikkinen
a5335f5371 EffectComposer: Remove use of native separators from file paths
Using native separators causes soft asserts in FilePath.

Change-Id: I45c5002a555a21dd3780ffd5c8df91b849a67c18
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-12 14:03:41 +00:00
Thomas Hartmann
b0eccd58f5 QmlDesigner: Fix bindings
Task-number: QDS-12471
Change-Id: Ie172b966db0e15f73868542502313f6460137543
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-12 12:56:21 +00:00
Christian Kandeler
22a1f11773 LanguageClient: Fix pre-selection of rename results
... for the case of aliased file paths.

Task-number: QTCREATORBUG-30546
Change-Id: I2cce03529c45193c20bd3508e4dcb3dc051856fa
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-12 12:22:43 +00:00
Christian Kandeler
25d6c4f4e9 Utils: Fix focus handling in EnvironmentWidget
Amends 8ef85e481a.

Fixes: QTCREATORBUG-30640
Change-Id: If768a0b75aa7ff2bb02d538c446d5bed64e5dc60
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-04-12 12:20:17 +00:00
Teea Poldsam
68cb22de52 Doc: Add info about editing view3D from 2D view
Fixes: QDS-12464
Change-Id: I0031203590b14b07e7162fc42e409ce0789f76c5
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-12 12:03:38 +00:00
hjk
abd538507a ProjectExplorer: Make settings access more direct
A step towards aspectification.

Change-Id: Iabf5e56e993449dc482d1d2ab6eeb2885243ab3e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-12 11:48:29 +00:00
David Schulz
18a867aa23 Editor: use unique id without common part
Otherwise we also got override action warnings after opening a second
editor.

Change-Id: Id600eaa120e32399a941768ae5d5e35ab969be49
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-12 11:08:16 +00:00
David Schulz
41e581d0e1 Editor: fix assist actions
Amends 411100b037

Fixes: QTCREATORBUG-30673
Change-Id: Icc82b6f5526d229a13a7061cbc44904837c25f06
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-12 11:08:07 +00:00
Eike Ziller
cdc4a8e42b Themes: Fix reading "Includes"
QSettings can already read QStringLists, no need to manually re-invent
the wheel - and QSettings actually handles whitespace around the
seperating comma correctly. Fixes `Includes=foo.inc, blah.inc`

Change-Id: Id1849ac0cd5f3bcc8aaaa1c574ec2d086ef3e0f3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-12 10:06:56 +00:00
Jussi Witick
0b2759a48f Fix QSR wizard cmake-project template
Latest changes to QSR tooling added limit checking for certain properties,
so the cmake-project template needs to be updated slightly.

Additionally remove the import versioning.

Task-number: QSR-2398
Change-Id: I55542c9fd74ebd950b6aeb9b64a22dde177c5a4f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
(cherry picked from commit 574ad7a4a2)
2024-04-12 09:51:29 +00:00
Knud Dollereder
2c18039de8 QmlDesigner: Allow negative values in the "Edit Keyframe" Dialog
Fixes: QDS-11842
Change-Id: I03d61549d0a0155b48381f00ccdf93dfe97126cd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-12 09:50:05 +00:00
Thomas Hartmann
25320c4fc4 QmlDesigner: Crash fix
Change-Id: Iabaf8d5bb6b060fc0ede2c65d8d93141b4e94773
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-12 09:40:23 +00:00