Commit Graph

85691 Commits

Author SHA1 Message Date
Orgad Shaneh
4f5b24d589 QtAppManager: Fix typo in json description
Change-Id: I606039de38ba28a7a35711bc13d24eb65325453e
Reviewed-by: hjk <hjk@qt.io>
2023-12-18 07:39:46 +00:00
Dominik Holland
d129956b0b Import of the QtApplicationManager plugin source code
The plugin will be developed as part of QtCreator in the future and
also be released under the GPLv3 license.

Change-Id: I673519161e105982d68f0c4ebbc06e6d7a6f91ac
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-15 14:58:55 +00:00
Ali Kianian
f41b69159b QmlDesigner: Extract unique property name by collection name
- The property names of the data store are defined after converting
collection names to a proper unique property name.
- Now, Spaces are supported in the collection names.
- Collection property names will remain the same by collection
renames, and only the modelName will change

Task-number: QDS-11462
Change-Id: I2031c2e0a9afc5388386dc6e54c66e75f0d13ded
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
2023-12-15 14:08:21 +00:00
Eike Ziller
b2199ec59d Debugger: Fix saving (legacy) state
Since dd9f9c799b we not only save the dock
widget state as the state of Perspectives, but the whole FancyMainwindow
state, so other properties from FancyMainWindow like the side bar state
is saved too.

The conversion from "legacy" to "new" state information was only done
when saving the state of perspectives when switching them (and for the
active Perspective at shutdown). The code that serialized that into
settings was expecting "new" state information, which was not true and
lead to soft asserts.

Do the conversion directly when reading settings instead.

Change-Id: I588fcf49bb7195100030266e5752358b7e734113
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-15 13:13:40 +00:00
hjk
3771eb196b CppEditor: Use ActionBuilder
Change-Id: I2590d77b73ebbcd3856f259201b874a112e12900
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-15 12:38:22 +00:00
Artem Sokolovskii
508a961c1c SyntaxHighlighter: Add QTC_USE_THREADED_HIGHLIGHTER env variable
QTC_USE_THREADED_HIGHLIGHTER allows to opt-in or out threaded
highlighter. It is on by default.

Change-Id: I3e84f6f80101db5869a45c84cf1e8a8196c02be8
Reviewed-by: hjk <hjk@qt.io>
2023-12-15 11:12:36 +00:00
Jarek Kobus
1a07fa87fd CollectionSourceModel: Avoid using sender()
Amends 6eb522f0ca
Amends 01a4f087c6

Change-Id: Ifa1be7cd2a39e6910160a4383fd9a1c1ce743731
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-15 11:07:39 +00:00
hjk
4de2ec6bb7 Core: Some ActionBuilder API polish
Change-Id: I8a59b5dd9277833361a7c8ed848e2da80972afcb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-15 10:51:18 +00:00
Orgad Shaneh
b1413e35f0 CMake: Fix implicit size_t -> int warnings
Change-Id: I6261faad372050fba118f5f5d8db91207d94f941
Reviewed-by: hjk <hjk@qt.io>
2023-12-15 10:44:30 +00:00
Orgad Shaneh
c4c9af1bd8 Tasking: Fix implicit size_t -> int warning
Change-Id: I19b359a941175034444fc9b3febed22a8fbc2cd0
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-12-15 10:44:25 +00:00
Jarek Kobus
efc63c8ffb NodeListDelegate: Get rid of unused functions
Amends 1a402984da

Change-Id: I518c2bcc638f295b1540361c633af045c0caf524
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2023-12-15 10:43:18 +00:00
Jarek Kobus
53c4fb0243 EventListDelegate: Avoid using sender()
Amends 1a402984da

Change-Id: I635febfb3c9b3f51a8155491a2e3d8edeb3647c9
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2023-12-15 10:42:50 +00:00
Robert Löhning
1f69ea54a0 SquishTests: Let tst_openqt_creator test for fixed bug again
This partially reverts commit f52c92bfe5.

Task-number: QTCREATORBUG-29923
Change-Id: I166aaca27cf8e27cb8555748c76ab163fabe7dcb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-15 10:08:57 +00:00
hjk
9f342fb396 CMakeProjectManager: Use ActionBuilder for build file action
Previously, ActionBuilder could not handle ParameterActions.
Now it can.

Change-Id: Icfe203c63d5f84198ff88864699acba55516cb25
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-15 10:00:26 +00:00
hjk
aff66f9060 ClangFormat: Simplify menu action handling
Change-Id: Ic4a5a6023c2f8f43b30010c14e245d0879da9ab1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-15 09:58:58 +00:00
The Qt Project
96f5e56125 Merge "Merge remote-tracking branch 'origin/qds/dev'" 2023-12-15 09:53:53 +00:00
Jarek Kobus
2dc30f161d TaskTree: Drop unneeded typename
Change-Id: Iab7895028e182715c98178eeb856fae76dc3eda9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-15 09:30:12 +00:00
Jarek Kobus
2df2ca2acf Algorithm: Simplify template code
Amends 650ab0841b

Change-Id: Ic6f1e38f6c498cacc1e21f07e9d383351c2cdb5c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-15 09:25:35 +00:00
Eike Ziller
2ce9f9d97d Move most acknowledgments to qt_attributions.json
Create a qt_attributions.json and generate a documentation file from it
automatically when building documentation. The result is included as a
table in the acknowledgments page in the documentation.

Some attributions cannot (yet) move to qt_attributions.json, because
that requires the sources to be available in the project's source tree,
which is not the case for LLVM, Clazy, etc.

Remove the attributions from the README and instead point to the
documentation from there, so we get rid of that duplication.

Change-Id: I22623fe7495593ffce2e2c6c26255c27c5a8cb71
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-12-15 09:02:23 +00:00
Mats Honkamaa
0b32abdb31 Doc: Update Fire Particles tutorial
Fixes and updates:
- Added more screenshots
- Improved descriptions of properties
- Fixed errors
- Improved text in general

Task-number: QDS-11184
Change-Id: I8c6d26758e8e86512e736ecffd9e0a15c479e632
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-12-15 08:36:43 +00:00
Ali Kianian
08d7dcc46b QmlDesigner: Fix the bug for adding rows to a Collection
After adding a row to the model, TableView reads the whole model except
one cell. It also ignores all the further notifications for that cell
even if we notify it explicitly. By notifying a model reset, this will
be solved.

Fixes: QDS-11248
Change-Id: I92cc7be5f82bc9acd2f9695f6f6a306ef003b78c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-12-15 08:06:36 +00:00
Christian Stenger
309d238f7b FakeVim: Persist fakevim settings when enabling globally
Explicitly persist settings if enable FakeVim mode gets triggered
using the global shortcuts, otherwise we would enable the FakeVim
mode only temporarily and a restart of Qt Creator would use the
former mode again.

Fixes: QTCREATORBUG-29949
Change-Id: I457b32f8e5fe035e334ed51f358f374c85ab010b
Reviewed-by: hjk <hjk@qt.io>
2023-12-15 08:04:03 +00:00
Jarek Kobus
bc1f1c3719 QmlDesignerPlugin: Restore emitUsageStatisticsUsageDuration
It is still used in assetimporter.cpp.

Amends 80b3c9c35f

Change-Id: I53aad38072d6b0ae1e120a539a1f2fc713f5730d
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-12-15 07:27:18 +00:00
Jarek Kobus
ea0d814905 QmlDesignerPlugin: Use QWidget::isAncestorOf()
Change-Id: I7896fe5907e3af932ad29e6577207ac803164330
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-12-14 19:52:45 +00:00
Jarek Kobus
d18ef94aaf ShortCutManager: Hide currentDesignDocument() inside cpp
Change-Id: I21bd2bbfd29de810715286402f6d261f49051297
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-12-14 19:52:29 +00:00
Jarek Kobus
80b3c9c35f QmlDesignerPlugin: Make code less verbose
Replace some emit helpers with direct emission.

Change-Id: I832fc942234424f96da8516a18bd4b9e0c66c71a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-12-14 19:52:16 +00:00
Jarek Kobus
e919e235b7 ShortCutManager: Fix the disconnect condition
The intention was to check the passed arg, not a static state.

Amends 8d9710c074

Change-Id: I5215c67c533c399694883b83ea7ea66da8387342
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-12-14 19:52:01 +00:00
Tim Jenssen
06bfa66ed7 Merge remote-tracking branch 'origin/qds/dev'
Change-Id: I6c657f5b8c0602ca76e9b17b10f1ff7a38b1b8be
2023-12-14 19:50:03 +01:00
Eike Ziller
64f0e10a4e Merge remote-tracking branch 'origin/12.0'
Conflicts:
	src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp
	src/plugins/remotelinux/killappstep.cpp

Change-Id: Ife961ca4eb14271c48bd0dbc08e0a0a816935682
2023-12-14 18:03:59 +01:00
Leena Miettinen
ef91b41663 Doc: Remove "Setting Up" from build system reference topic titles
- And split some of them into several topics.
- Combine almost identical topics.
- Put settings values into tables to make them easier to browse.

Task-number: QTCREATORBUG-29361
Change-Id: I2ee5a65848ab3a4643cf5fafe5a654730166aab1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-14 15:38:58 +00:00
hjk
9b493ccece ProjectExplorer: Don't leak runconfig's GlobalOrProjectAspects
Fixes: QTCREATORBUG-30075
Change-Id: Ic82f8257521f72d6e3ccd436d17bff8434f11a1d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-14 15:28:03 +00:00
Sami Shalayel
556d4d2831 doc: clarify what the qmlls checkboxes really do
Add some documentation about what these qmlls checkboxes really do.

Change-Id: I019d68b6d53efbbd599ba2c8c4edc68e3f9be1da
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-12-14 15:17:46 +00:00
Mahmoud Badri
dc42b62ddf Effect Maker: Enable helper nodes
Helper nodes are nodes that another node depends on and are added
automatically when the depending node is added. Helper nodes are
placed before all other nodes. Helper nodes that do not contain
any properties are not shown. Helper nodes keep reference count
and are removed when last referring node is removed.

Task-number: QDS-11193
Change-Id: I036019afb1414ec6e98b2f949a18bd217753a910
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-12-14 15:17:22 +00:00
Robert Löhning
4dd44e01c2 SquishTests: Move definition of regexVerify() to where it's used
Change-Id: I1f06a36c62acbd6662737bdd6657981f3cf04c36
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-14 15:10:30 +00:00
David Schulz
e743da1cbf Terminal: do not block Qt Creator shortcuts by default
Change-Id: I8709f89912d05242d4841518dd3a4544c63ee160
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-12-14 14:34:11 +00:00
hjk
d2ca6afb8f ProjectExplorer: Some more Toolchain renamings
Change-Id: If8bdfd5e49a031a511bc0e062727495a12d2d3bd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-14 14:22:47 +00:00
Marcus Tillmanns
d6b27f372b CompilerExplorer: Un-static NetworkAccessManager
We have seen crashes on Windows when the static network access manager
is deleted (with a "dev" version of Qt). Out of an abundance of caution this
patch changes the Network access manager to be owned by the actual
settings object.

Change-Id: I999a15d99315019b3e5f4ed330a4ac058849f066
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-12-14 14:19:38 +00:00
Marcus Tillmanns
21c868604e CppEditor: Use Utils::SynchronizedValue for project data
Change-Id: I67c07c2f5f5f7e8bb6b10d4f492ad062f82977be
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-12-14 14:19:31 +00:00
Artem Sokolovskii
3208dc92d3 SyntaxHighlighter: Remove using global fontSettings
Currently, default font settings are set inside the highlighter
runner after creating a highlighter. It prevents to call
TextEditorSettings::fontSettings() from non-main threads.

Change-Id: I0c806f0f586c67749cb2964bebdf2bf3c58a5302
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-14 13:28:22 +00:00
Shrief Gabr
6b6f74ccad QmlDesigner: Create data type warnings for CollectionDetailsModel
Task-number: QDS-11079
Change-Id: I8cb5167d71ff96d01313bc559401e16f0925afbb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-12-14 13:12:57 +00:00
Eike Ziller
0c9f5c99e7 FancyMainWindow: Keep collapse state when toggling dock area
When using the hide/show side bar actions/buttons, keep collapsed docks
collapsed.

Change-Id: I2c455523f8cde2acf68280799dd8735631756120
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-12-14 12:54:10 +00:00
Eike Ziller
95fc28d37b FancyMainWindow: Move collapse functions to DockWidget
Make more sense there than in the title widget, though it was first added
there, because it has the button.

Change-Id: Ia4102beec2afa43d6ba2097c7cc29009180b635b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-12-14 12:53:47 +00:00
Johanna Vanhatapio
4d042e5b7d Doc: Update info on baking lights
Fixes: QDS-11174
Change-Id: I8f92c3cca0faaa3f4b1db11caa8825677c80121e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-12-14 12:28:40 +00:00
Christian Kandeler
2c4261e307 Wizards: Modernize some qbs project files
The "import qbs" stanza has not been required for probably a decade now.

Change-Id: I92aadc9fd7a95c3fddd38b8a1d86e473ce421b48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-12-14 12:04:20 +00:00
Christian Kandeler
368ad63653 ProjectExplorer: Make DeviceKitAspect mutable for all non-Desktop kits
Fixes: QTCREATORBUG-30031
Change-Id: I0b2dacb5977b0f8e81afd13a0a4af6354ea81915
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-12-14 12:03:36 +00:00
Marcus Tillmanns
3425959e21 CompilerExplorer: Add assembly => source links
When hovering over the assembly, the matching source lines
are highlighted. Links inside the assembly are now clickable.

Change-Id: I22479a2e1badcfd95e0f341b2556fc93c8469625
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-12-14 10:14:02 +00:00
Marcus Tillmanns
7b1213d9f8 Utils: Fix initial display string for StringAspect
Change-Id: Ib76a5ef4e0792509dc3062c2be244e0f4be049d3
Reviewed-by: hjk <hjk@qt.io>
2023-12-14 10:13:57 +00:00
Serg Kryvonos
650ab0841b Use C++20 compatible std::invoke_result instead of std::result_of_t
Change-Id: I52ccd82f801af64de03d9076096755c52c1d8b37
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-12-14 10:03:03 +00:00
Jarek Kobus
d6bc19e54d Qt5InformationNodeInstanceServer: Avoid using sender()
Get rid of some unused includes.

Change-Id: Ib8dd5f9672c446c5c571e79ed1f26f3f4af2b65d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-14 09:55:28 +00:00
Jarek Kobus
2f4fa0b62d Qt5NodeInstanceServer: Avoid using sender()
Amends b4db8a2d84

Change-Id: I9dc446d376bce9d91eb9d7a753003e0d92e10889
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-12-14 09:45:14 +00:00