Commit Graph

80529 Commits

Author SHA1 Message Date
Alessandro Portale
a0eb8493b9 Macros: Tr::tr
Change-Id: I16d875d238ea9ac14758148c867cbac74042c43c
Reviewed-by: hjk <hjk@qt.io>
2023-01-23 09:03:18 +00:00
Alessandro Portale
852a74c9c1 Python: Merge orphaned translation contexts with "::Python"
Change-Id: I3036d0efd6876118e7b48a6403f1b07ec3f861ae
Reviewed-by: hjk <hjk@qt.io>
2023-01-23 09:03:13 +00:00
Alessandro Portale
f99a340ea4 McuSupport: Tr::tr
Change-Id: Ia2f0e523a378bea82887bdb212acfdab47b408e9
Reviewed-by: hjk <hjk@qt.io>
2023-01-23 09:03:07 +00:00
Alessandro Portale
cd4e116dff Subversion: Tr::tr
Change-Id: Ic94722ec93b145eb8c78141b888797d70aed13fd
Reviewed-by: hjk <hjk@qt.io>
2023-01-23 09:02:57 +00:00
Alessandro Portale
eada41a393 SerialTerminal: Tr::tr
Change-Id: Iac630d03a27eb1599485a9b8044d794fc66c7bb2
Reviewed-by: hjk <hjk@qt.io>
2023-01-23 09:02:48 +00:00
Jarek Kobus
817553f3e5 TaskTree: Merge DynamicSetup with OnGroupSetup
Don't define 2 separate group setup items. Make OnGroupSetup
be able to handle also dynamic setup - like it's done with
CustomTask's setup handler.

Change-Id: I43e135f268ea96419b44ef5a4325707a124b4921
Reviewed-by: hjk <hjk@qt.io>
2023-01-23 08:07:36 +00:00
Jarek Kobus
105fc92e19 TaskTree: Simplify SFINAE code
Change-Id: Ic54be7ff780772f7c989b88aaab948f5fe9c3750
Reviewed-by: hjk <hjk@qt.io>
2023-01-23 08:07:19 +00:00
Orgad Shaneh
b95fee74bb QtSupport: Fix potential null dereference
Shouldn't happen in real life, but done to make Coverity happier.

Change-Id: I3316030f59ec74516d2271973ac53c41554c3893
Reviewed-by: hjk <hjk@qt.io>
2023-01-23 07:58:32 +00:00
Marcus Tillmanns
0c9d5903ef Utils: Fix crash in fsengine test
Change-Id: I6a28dfc907d34f1a6e20bc92f5cc506b308f1c0b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-23 07:46:35 +00:00
hjk
2336ff5570 Git: Some more FilePath proliferation
Change-Id: I8d3d97d0c7979d741a7da333f922ce93359afef8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-23 07:15:17 +00:00
Amr Essam
18f9ddc960 QmlDesigner: fix user cannot name new effects properly
Task-number: QDS-8705
Change-Id: Idef4a40efdc2bdf052e1f6daef5abe16d27bce99
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-01-20 15:00:53 +00:00
Thomas Hartmann
27925d5bc5 QmlDesigner: Use Instancers instead of Component
Task-number: QDS-8868
Change-Id: Ia4879a134b7f374dca66aecc4d46cc3d316835cb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-01-20 14:25:25 +00:00
Jarek Kobus
ec28990dd5 TaskTree: Clear old storages on root setup
Change-Id: Ic32dedb1f427b238427df675e9c882c15d359da4
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 14:19:01 +00:00
Jarek Kobus
98ff1d32f9 TaskTree: Remove GroupConfig / GroupAction
Use TaskAction for dynamic group setup. Get rid of possibility
of selecting group's children to be started inside group setup.
Use dynamic children's setup instead, so that each individual child
may decide itself whether it wants to be started or not.

Change-Id: Ie31f707791db0dc26be92663ca6238b8e49c3b98
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-20 14:18:56 +00:00
Jarek Kobus
01faf0843d TestResult: Devirtualize the class - part 2 of 5
Step 2 - implement findTestItemHook.

Change-Id: Iabc843740343e549f79b02f74f94f5b1b4713af3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-20 14:18:32 +00:00
Marcus Tillmanns
2d491591e2 Utils: Add FilePath.hasFileAccess()
FilePath::hasFileAccess allows a user to test if a specific device
can access files. This is faster than calling "exists()" as it does
not have to actually check anything on the device.

cherry picked from commit 21ef25a0f5

Task-number: QTCREATORBUG-28531
Change-Id: I363ca634d921464fe4ec68397c09fba49dccee25
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-20 13:31:51 +00:00
Jarek Kobus
6eb14c66c7 TestResult: Make createIntermediateResultFor() a const method
Change-Id: I60dc08117504611857885668d1ad0d565a0ee020
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-20 13:20:53 +00:00
Jarek Kobus
d03c4f77c9 TestResult: Devirtualize the class - part 1 of 5
The goal is to make the TestResult a value type without a need
to create these objects on heap.

Introduce a ResultHooks class that will replace all 5 virtual
methods.

Step 1 - implement outputStringHook.

Reorder constructor arguments of TestResult's subclasses so that
the first 2 args are always: id and name.

Change-Id: Iae93e5a348328414f057d1471afad8020b3c1171
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-20 13:20:39 +00:00
Mahmoud Badri
83f162f460 QmlDesigner: Enable drag-n-drop a bundle texture to material editor
Fixes: QDS-8340
Change-Id: If0aa8d34689825c253a7e679f6887cbd3b328604
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-01-20 13:15:16 +00:00
hjk
c8b9e4504e Update to upstream FilePath changes
Change-Id: I151fc9cb369bafd943dbfcfa17a301e09cd897df
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-20 13:02:58 +00:00
David Schulz
e592e0e83f Python: remove outdated pyls install toolbar earlier
Change-Id: I9ba67bffcff159523eb44b4f486c11fc37085fa8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-20 12:51:07 +00:00
hjk
642c593481 Utils: Flatten LayoutBuilder related hierarchies
Originally the idea was to only expose LayoutBuilder, but we
are getting more and more related items. Be consequent now,
and have everything in Utils::Layouting, but not in nested classes.

Change-Id: Ic0f98595882e5c60a25c30ec52df4a0ea79bc0ca
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-20 12:44:30 +00:00
Jarek Kobus
a37f2ae3a8 QdbStopApplicationService: Replace DynamicSetup with dynamic task setup
Change-Id: I5c02ea111afe604c61f11ff7a4677c825743ed80
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-20 12:43:13 +00:00
Alessandro Portale
6bcee998a5 CppEditor: Merge translation contexts of "CppTools" into ::CppEditor
CppTools was at some point an own module, which got merged into
CppEditor. This makes the translations follow suit.

Change-Id: Ifc1ca4db883316723b747da5bf810e0c45026b69
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 12:21:13 +00:00
hjk
118b84ffd6 Use simpler Plugin::initialize() when feasible
Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-20 12:13:10 +00:00
hjk
013ad1345e VcsBase: Proliferate use of FilePath
... and update user code.

Change-Id: I52c08e9e07238536d31fc72f97312ac582a1e32f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-20 12:02:32 +00:00
Jarek Kobus
7dd2fe689d GenericDirectUploadService: Replace DynamicSetup with dynamic task setup
Change-Id: Ic9befb63b51101803aef48911ae1d54a87eb98da
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-20 11:41:14 +00:00
hjk
ad0fcc60d2 ExtensionSystem: Add a less verbose way to *Plugin::initialize()
Barely any of our plugins use the arguments or report error on
initialization.

Use it to the Nim plugin for demonstration purposes.

Change-Id: I0aead51afff61648fe03ad7e1ef7b4100abd9ed6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-20 11:28:20 +00:00
Miikka Heikkinen
bca0c74f2e QmlDesigner: Handle drag ending properly in 2D and 3D views
Model::endDrag() needs to be called for drag ending to be
properly notified to other views if drop is accepted.

Fixes: QDS-8825
Change-Id: If090f914a88350351865376f260be64d76fcfed3
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-20 11:05:24 +00:00
Eike Ziller
7e9e103c53 Issues: Fix ugly error text when item is selected
Trying to make red text work on a various possibility of selection
colors is futile. Just use the normal "blended" text color, like for
file names that are found, for the selected item. Use the theme defined
error color for items that are not selected.

Fixes: QTCREATORBUG-27525
Change-Id: I423487fbf8b5333993774ccebcb488ffb156dc0e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-20 11:03:59 +00:00
Artem Sokolovskii
a20c4c4490 ClangFormat: Fix the "Open Used .clang-format File" function
- FilePathify related functions
- Logic of related functions were updated to use new configuration
files location and new settings variables

Change-Id: I9f5504fc72f5c051a83dc80e1feb2e13272de146
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-20 10:29:51 +00:00
David Schulz
f0f0cf129a Python: add interpreter selector to editor toolbar
Fixes: PYSIDE-2154
Change-Id: If5e90f5bf2923b61af37ebbfcd35c512b3b07db4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-20 10:16:36 +00:00
Thomas Hartmann
49955964f7 QmlJSCheck: Add missing comma
Change-Id: I5f26cbe50ecb47c088bab8b9cdea49d0103352eb
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-20 10:12:20 +00:00
Alessandro Portale
d92be80610 UpdateInfo: Tr::tr
Change-Id: I7167f675bf58793cb38e11bfd58902bb7537c4b9
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 09:37:01 +00:00
Jarek Kobus
3244819d3a GitClient: Replace DynamicSetup with dynamic task setup
Change-Id: I1a56e34274c5d7ace8fb8866c128c8dee03d2ad8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-20 09:35:40 +00:00
Jarek Kobus
d96fbb3e54 SubversionClient: Replace DynamicSetup with dynamic task setup
Change-Id: I7f96ee1300c6d53afc85a4c22bc18bcfe744ebd3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-20 09:35:27 +00:00
Amr Essam
0174e3495f QmlDesigner: Fix effects folder is not created when creating effect from new effect dialog
Task-number: QDS-8166
Change-Id: Ifa5569beae70423f3e936e639b001cf4f3dcc9fe
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-20 09:26:20 +00:00
Jarek Kobus
9dfd72017c TaskTree: Add more tests for recently added fixes
Change-Id: Ia71fa174380b484cbe07a23f8b641755c5edcc65
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 09:20:14 +00:00
Jarek Kobus
6269c2cec8 TaskTree: Unwind execution properly on synchronous done
When task or group setup handler finishes synchronously
we may end up with mismatched execution order or may
grow call stack considerably. The fix is to detect
synchronous finishes and leave handling to the synchronous
caller.

Change-Id: Id72cf8cc98e2f53ff601a5e5226cd203a8470aaf
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 09:20:03 +00:00
Jarek Kobus
e6ca18e194 TaskTree: Implement dynamic setup for tasks
Before it was possible to dynamically setup groups only.
This functionalily is probably good enough to replace
Group's DynamicSetup, as it seems much more convenient.

Change-Id: I56080f0ffa844847ca955cf52ccb07f3b4e4c731
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 09:19:49 +00:00
David Schulz
42d7304d2b ClangCodeModel: Allow cancelling the background index
Restarts the client with temporarily disabled indexing. The block is
reset after starting clangd, so any subsequent changes to the
configuration or the project will start the client again with indexing
enabled.

Change-Id: I16c975b6ef0b56f27ce5b2ced01f534f8ae0b4d3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-20 08:44:57 +00:00
hjk
77054c2fa3 LanguageClient: Tr::tr
Change-Id: Idbd7c5cdadba4f269b2033df91db0e05bb5281d5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-20 07:56:04 +00:00
Alessandro Portale
6780a6ca50 ClangTools: Tr::tr
Change-Id: I61e2d961225e9699bffcee8e54bc201eeb9a70d9
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 07:09:54 +00:00
Alessandro Portale
5a5a91f7d2 GenericProjectManager: Tr::tr
Change-Id: I7ed1fac9dd6b4517cbc90a8c03a1c67d1e5404ae
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 07:09:48 +00:00
David Schulz
5516188290 Docker: validate clangd version
Do not automatically setup a clangd that is too old and mark them as
invalid if they are manually selected.

Change-Id: Ie9662a8821df8fc678eabc4b8a08375723b4d1c3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-01-20 05:36:32 +00:00
hjk
2e98acfdfd Incredibuild: Tr::tr and code cosmetics
Change-Id: Id2facedde38dd09311069711b9e621a95439d433
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-19 17:25:28 +00:00
Alessandro Portale
0fff2aa172 QmlProjectManager: Tr::tr
Change-Id: I219111bab487ad5f2d7d1cd7ae6f3e3e8a2a8d3f
Reviewed-by: hjk <hjk@qt.io>
2023-01-19 15:53:58 +00:00
Alessandro Portale
16ec720537 DiffEditor: Tr::tr
Change-Id: I71b9908ea332256044120b42ff6af2fc57a89a5e
Reviewed-by: hjk <hjk@qt.io>
2023-01-19 15:32:29 +00:00
Marcus Tillmanns
eeea7e8b6c ADS: Cleanup dockmanager
Change-Id: I752e98df60fd7265e51ba32795edb536c2055675
Reviewed-by: hjk <hjk@qt.io>
2023-01-19 15:08:18 +00:00
Tim Jenssen
2e87ee5865 qmlpuppet: better error when Qt is too old
Change-Id: I219f2f8ce551e36d2f749d60a6984c3ccc903e5c
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-01-19 13:56:11 +00:00