Commit Graph

88653 Commits

Author SHA1 Message Date
Leena Miettinen
495c826c55 Doc: Rename "Adding Custom Wizards" and move it to "Reference"
- Create an "Add wizards" how-to topic

Task-number: QTCREATORBUG-29361
Change-Id: I37b1f39ba78fd1c39f4b111051f5eef1acee4caf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-01 11:23:38 +00:00
Andreas Loth
5f02cadeab Axivion: Begin to use QNetworkAccessManager instead of curl for HTTP
Change-Id: I2fd7ba2a72e749bdc5407d222057cb66ff341b04
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 11:07:39 +00:00
David Schulz
4cd48c84ae CppEditor: improve quickfix after local renaming
Always update the local usages of the symbol under cursor even if we are
currently renaming a local symbol. Otherwise the semantic info is
classified as not up to date, which in turns limits the quick fix
operation to the ones coming from clangd.

As a next step we could make sure the semantic info is valid and up to
date before creating the code assist interface by calling a synchronous
CppUseSelectionsUpdater::update. But as this will potentially block the
ui, it will require some extra handling.

Change-Id: Icb9f523a5a21e65a2853e3b98a17c2f45c637825
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-01 10:38:33 +00:00
hjk
9679412a23 Replace QFile::exists by QFileInfo::exists
QFile::exists only calls QFileInfo::exists, so this saves one
function call per invocation.

Change-Id: I41cb407345654eeead14455a4955b8b9b015aedc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-01 10:24:31 +00:00
hjk
3d028125df QtSupport: Don't rely on QObject parents on late destruction
Change-Id: Ibdb91c80d4932a5f0dced9843dfd01641577a88d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-01 09:55:39 +00:00
Vikas Pachdha
b30337e04c QmlDesigner: Process add/remove imports actions together
Task-number: QDS-10529
Change-Id: Icd4efdb4c289f686b2e6eaed67432b662ba2ad29
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-01 09:31:42 +00:00
Artem Sokolovskii
53718bcf1d DAP: Add locals lazy loading
Change-Id: I49c6d9fce8c6f45f1ec4cb3b6c1733d93202bc0f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-01 09:05:28 +00:00
Henning Gruendl
1710254b98 QmlDesigner: Cleanup ConnectionsEditor list views
Change-Id: Ib8f51d9e5640c768e6d6e815fd6c494e46743b65
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-01 08:51:36 +00:00
Amr Essam
cec9e6493e QmlDesigner: Add Effect Maker shader error propagation
In case of manual edit of shaders, this simple system detects common
errors that might be found in a shader.

Task-number: QDS-10499
Change-Id: I0c70ac85ef519880dcd98642c5927f037f113f94
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-01 08:34:33 +00:00
Leena Miettinen
be6b83ec4a Doc: Split up the "Adding Libraries to Projects" topic
- Turn the topic into a how-to topic
- Turn the example into a tutorial
- Mark the information as qmake-specific
- Add links to CMake information

Task-number: QTCREATORBUG-29361
Change-Id: I42befbf15ad8a0eba7e26a0a69e6d1963d2ce5be
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-09-01 07:39:47 +00:00
Jarek Kobus
197a45b9b9 TaskTree: Change the signature of storage handlers
The handlers for TaskTree::onStorage{Setup,Done}(...)
took a pointer to the storage struct. Take a reference instead.
This is in line with tasks setup/done/error handlers.

Change-Id: I8ff18c250f0fbbcd8210ec304e34232e842831fc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-01 07:33:54 +00:00
Jarek Kobus
7730a329a3 TaskTree demo: Simplify task creation
Fix workflow policy.
Fix const correctness.
Rename treeRoot into recipe.

Change-Id: Ib0457691001dbb88135027f8c7a34ba671b0b082
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 07:33:44 +00:00
Tim Jenssen
8ae76adbf5 QmlPreview: fix use an init language
Change-Id: I2d2774d88a237871eaddacd18c55490e9bd953ef
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-08-31 16:42:58 +00:00
Tim Jenssen
dc78c8faa2 QmlPreview: introduce RefreshTranslationWorker
Change-Id: I327cdd5d869f6cfdd47a826fd42306b8de69aa14
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:42:48 +00:00
Tim Jenssen
09236407d1 QmlPreview: add stopAllPreviews()
Change-Id: I092361063d7f51602c2044e00feb8d8c5bccf4de
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:24:45 +00:00
Thomas Hartmann
44fa5d90d6 QmlDesigner: Refactor QML in Connection Editor
Moving the StatementEditor into a separate component, so it can
be used for else case.

Change-Id: I2fc5a002333d63a484142a997882e502ffcc4016
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-31 16:11:58 +00:00
Thomas Hartmann
cdf0b83094 QmlDesigner: Take property types into account
A boolean property should only take a boolean, number only a number
and so on...

Change-Id: Ibc327390262c93bf262570a0c749cd826d06a678
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-31 16:06:16 +00:00
Thomas Hartmann
d10b1fbee9 QmlDesigner: Reparent Connection if retargeted
The old implementation did the same.

Change-Id: Iaf925bbbe7f47198aac319dbe930871854694316
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:05:56 +00:00
Thomas Hartmann
94d03d5640 QmlDesigner: Fix alignment
Change-Id: I892c26b4c50446bc297154d160ee4514f927ccf1
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-31 16:05:45 +00:00
Thomas Hartmann
83fac0a5ee QmlDesigner: Add maximum height and scrollbar to TopLevelComboBox
Change-Id: I9af9b8df6ef9f307b0bb0fd6f0a673a09b1c9943
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:05:04 +00:00
Thomas Hartmann
e348115237 QmlDesigner: Add a few more priority properties
Change-Id: Icee5723c670110d15828a657e8f5546a3b7580ab
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:04:53 +00:00
Thomas Hartmann
c00eb87c96 QmlDesigner: Update QML for ConnectionEditor
* Style PropertiesList
* Style BindingsList
* Add PoupLabel for reuse
* Take screen height into account
* Minor tweaks no forms

Change-Id: I70b141732f38a9534447586fb00cd736949e56e5
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-31 16:04:37 +00:00
Tim Jenssen
d9d89ef6cb QmlDesigner: fix not used ": "
Change-Id: I197b3dd46d0835d73c550f216a4d5bb51a8ec9f8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-08-31 15:29:51 +00:00
hjk
d2231365af QtSuppport: Remove some indirection
Amends 93e188a.

Change-Id: I49c503a31b033295b01c456533a740ad30f7b653
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 14:24:34 +00:00
Cristian Adam
07ad848ea1 CMakePM: Replace QDir in CMakeBuildConfiguration
This allows remote support.

Change-Id: I12c991d584baa3762102b8a19179e732a31f192b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 14:23:10 +00:00
Miikka Heikkinen
757c1734df QmlDesigner: Overhaul 3D snapping UI
Fixes: QDS-10532
Change-Id: I00dc78831aed62e0a93000938f514a04c2ab3a50
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-08-31 13:57:30 +00:00
hjk
09f15a31df Utils: Remove the non-QTC_USE_STORE case
Change-Id: I857a38c80470d1b474ca0f291a93ed58fbcc0bf4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 13:20:59 +00:00
Cristian Adam
246f33c20d CMakePM: Replace QDir with FilePath in fileapiextractor
This allows remote support.

Change-Id: I5ac46b1c2ed0e7e1fcc559522f1fcd902f83b8c0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 13:06:30 +00:00
Christian Kandeler
fb4177a540 cmake build: Set the WITH_TESTS macro also in the tests themselves
Otherwise plugin and test code might parse header files differently.

Change-Id: I0243a7780b7095a4c518da26cc3cf23fd9f76cf5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 13:05:04 +00:00
Cristian Adam
925b7a3566 CMakePM: Replace QDir with Utils::FilePath in editor
This way we could handle remote files.

Change-Id: I7062445cb743a2838f3c9f1bcff89611127011ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 13:04:53 +00:00
Christian Stenger
e1de2dfc07 Debugger: Fix qbs build
Change-Id: Ic34026548587187d0fa092454980d94250c6353d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-31 12:09:14 +00:00
hjk
93e188ab94 QtSupport: Move QtVersionManager closer to "new" singleton pattern
Not 100%, as there are a few more local variables involved.

Change-Id: I15458d614c381862aa6f9e1c54d56c045bac8941
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 11:52:11 +00:00
David Schulz
b418c81414 Utils: collect host root dir once
This improves the startup performance ~30% on certain machines

Change-Id: Ic7b74d42b0e13ec1dd695d4f322de021b996c051
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 11:29:38 +00:00
Miikka Heikkinen
96e675cd26 QmlDesigner: Fix 3D view grid color setting
Grid color was not loaded correctly on scene creation, because there
was a mismatch on how it was set. Normally, it was set as a color array,
but on scene creation it was set as a single color.
Changed it to be always set as a single color, as there is no reason
to allow array of colors for grid.

Fixes: QDS-10495
Change-Id: Idbe5d52a425eed7aed6beef9e3712b26519e5843
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 11:01:34 +00:00
Marcus Tillmanns
616a0c0f77 Terminal: Support Ctrl+C/V on Windows
When a selection is present, let Ctrl+C work as copy
on Windows.

Remove sending ESC key in clearSelection as it interfered
with a Paste after copy.

Change-Id: I92db7f263e1eb433bca8aa5500fcecb637a23f90
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-08-31 10:58:36 +00:00
Miikka Heikkinen
9324f4bd4b QmlDesigner: Fix sync background color to 3D scene environment
The sync color setting expects an array (for potential gradient), but
it was set to plain color when sync was turned on.

Fixes: QDS-10527
Change-Id: Iba27aad8e2cd8c93e76a89984f739ddb6c4e2e7f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-08-31 10:33:51 +00:00
hjk
95a3087a7b ExtensionSystem: Stop reworking initialization order system
This reverts b91f234c7d and some changes on top.

With the static-in-function approach the dependency seem to be
more easier to solve than with the the central mechanism here.

Change-Id: I65be3ced847b31c25637280376f2fe30003f0527
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-31 09:58:40 +00:00
Amr Essam
a5a5b00f58 QmlDesigner: Add core uniforms and features for shaders
Task-number: QDS-10499
Change-Id: I12b39d29133accd012ac019def0c4a34ee84d8e5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-08-31 09:58:36 +00:00
hjk
4132ffd662 Core: Fix action key construction
Amends c7710acadd.

Change-Id: I87c85cae3fa5624ba0c9d8a2c1aec4d3225c7315
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 09:31:45 +00:00
Mahmoud Badri
2f2d8bf9e8 QmlDesigner: Implement effect maker preview zoom controls
Also fix a memory leak on removing a node.

Fixes: QDS-10546
Change-Id: Ifc32b6d7f6f4c6b8ce63a080b159c8ae66865a79
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 09:01:03 +00:00
Artem Sokolovskii
cecf577dc4 DAP: Add Python debugging
Added Python support to the DAP engine in Qt Creator.

Note:
Locals aren't displayed for python. It will be fixed
in the following commit.

Change-Id: I6d3b41fecc98b92951ed0522e9201401293034d7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-31 08:06:03 +00:00
Christian Kandeler
f5f4310e89 QmakeProjectManager: Fix ABI selection change not having an effect
This amends 9c2527eea6 and is the third
attempt to make this horrific code do the right thing.

Fixes: QTCREATORBUG-29552
Fixes: QTCREATORBUG-29561
Change-Id: Ib5136a101d87388385f94c4ecc3e837e09ce034d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-31 07:12:46 +00:00
David Schulz
270a9839e2 Copilot: start the client in the delayed initialize phase
Change-Id: I4470491f5f0a2b1d88ed5b2e23444bf3a28d8256
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 07:02:57 +00:00
Leena Miettinen
70f5d18fe9 Doc: Turn Opening Projects into a How-to topic
Describe the ways to open projects before the case where
one needs to re-configure the project.

Task-number: QTCREATORBUG-29361
Change-Id: I32b8676112e412fe8b4f114c54371169f478d361
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 06:56:15 +00:00
Aleksei German
939b28a076 QmlDesigner: Fix hardcoded Controls2 config file
Task-number: QDS-10545
Change-Id: I8e96ea5f4b409a8b378f94e45b413d6315ea8170
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-30 19:36:43 +00:00
Henning Gruendl
315da21424 ADS: Delete implicit ScrollArea
* Delete implicit ScrollArea when content widget is deleted in
  hideDockWidget()

Base repository commit
2178b52621ed16f9846d6f80ecb59706b9d31921

Change-Id: I2e593f3be77fc8ad988e7882707619803ef70cfc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-30 16:16:54 +00:00
Henning Gruendl
78cfd73037 ADS: Fix crash in auto hide tab
* Crash is caused by dragging an autohide tab out when it is an icon
  only
* The crash can actually happen with non icon only tabs, but is masked
  by the orientation check

Base repository commit
61573cba1633600dddcbf5afb7d8ed1645f82b30

Change-Id: I1aebfd6455983662050aaf82a6506a6a5a40421e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-30 16:16:48 +00:00
Tim Jenssen
011ec75e88 ADS: fix QMetaObject::invokeMethod: No such method
Change-Id: Icdd8c3de7b95c60186ea30f0c40b7feeed322e28
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-30 16:16:41 +00:00
Semih Yavuz
fd2d1ceeae Fix M16 warning restrictions
In case id is not ancestor, we cannot find that ID in m_idStack by
design. The ID of an uncle type could be either popped out or not pushed
in yet. The previous implementation, therefore, doesn't restrict M16
messages if non-ancestor ID is referred.

As a workaround, disable M16 warnings completely if the enclosing type
uses ImmediateProperties.

Amends 012f984c27

Task-number: QTCREATORBUG-28468
Change-Id: I47326e005753ff7b94057732602cfeb6dc525bbb
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-08-30 15:54:24 +00:00
Leena Miettinen
253eb4779b Doc: Mention the locator f file option for creating files
... in How-to: Create files.

Change-Id: I9cc0ba39009c722a89ee127d6ffcebcd01cce649
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-30 13:51:47 +00:00