Commit Graph

85691 Commits

Author SHA1 Message Date
Marcus Tillmanns
324e924178 Utils: Fix FilePath::isRootPath()
Change-Id: I287bae74469ba501ecb03d51f04f7aaa5f4a7268
Reviewed-by: hjk <hjk@qt.io>
2023-08-15 10:50:24 +00:00
David Schulz
01cac8299b ProjectExplorer: fix Interpreter::changed emits
Only emit changed if the current interpreter changes.
This is more in line with the other aspects.

This fixes the pyside detection since the changed signal was not
emitted in all relevant code paths.

Change-Id: I53409b17f260b35914e39de894b48d7bd1ce27c0
Reviewed-by: hjk <hjk@qt.io>
2023-08-15 10:44:53 +00:00
Jarek Kobus
b8acef5d8c AndroidManager: Rename runAdbCommandDetached() into startAdbProcess()
The process wasn't started detached in fact.

Change-Id: I60aee6d4de3be2499727ea43c3492c1c478f5e94
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-15 10:40:21 +00:00
Artem Sokolovskii
b01fcf5e7a DAP: Add enable/disable breakpoint support
Change-Id: Ice1c17e1c1e257d9f828bb6a54c643f7ecf7b387
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-15 10:23:16 +00:00
Henning Gruendl
c7d2b9bec1 ADS: Fix potential crash
Base repository commit
7a362b7ee3048ecee521ad4ba51647bc8a98193e

Change-Id: Id888b92b3738136a534ae7758f585f915777b07d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-08-15 10:19:22 +00:00
Jarek Kobus
ae51dedbd1 AndroidManager: Remove deleteOnFinish arg from runAdbCommandDetached()
Change-Id: I6a54c85921e27a2256417f730f56c41b1152fefc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-08-15 10:02:23 +00:00
hjk
6ee7989c61 KitManager: Move the instance setup to a function
Slightly nicer code and works well with settingspages nowadays.

Change-Id: Ic12ff58f4b0f8db226843961eb2ab6fb8879429c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-15 09:54:18 +00:00
Yasser Grimes
8f948c28a9 McuSuport: Use qsTrId() instead of qsTr in QtMCUs templates
Task-number: QTCREATORBUG-29258
Change-Id: I0e386b12308b04df0e2ca023d77c01a8d481b9a5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
2023-08-15 09:47:58 +00:00
hjk
4cb6858410 Meson: Remove unused header file
Change-Id: Iff0793eef63094b5ab680c436963e77c92f278c8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-15 09:33:59 +00:00
Jarek Kobus
93c30c4586 UnixDeviceFileAccess test: Add a note about the usage of QProcess
In order to prevent any possible further conversion.

Change-Id: I0f8be7558affb36b3015144fe9c640a7bfcab295
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-15 09:06:37 +00:00
hjk
86979b682d ProjectExplorer: Rename a few KitAspect related items
Mostly local variables and KitManager::kitAspectFactories() to
match closer what they are.

Change-Id: I8f837357528f9e1110888898077f82b5097003f0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-15 09:00:02 +00:00
hjk
aa25fdcc69 QtSupport: Rename qtkitinformation.{h,cpp} -> qtkitaspect.{h,cpp}
Change-Id: I12229e5e98b468101d32edd35be74bbda0921d89
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-15 08:59:52 +00:00
Mahmoud Badri
0c6bc8382f QmlDesigner: Add a ScrollView to the effect maker nodes popup
Also make nodes size smaller and small tweaks to margins.

Change-Id: I044684d1a57d1da2ed8b5768df80fb0948f94882
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-08-15 08:36:09 +00:00
Jarek Kobus
c82f06d834 Utils: Drop unneeded Q_OBJECT macros from public headers
Change-Id: Ia495397179dc8fd1308bac982d5fb27903444884
Reviewed-by: hjk <hjk@qt.io>
2023-08-15 08:35:58 +00:00
hjk
017d7c0e47 ProjectExplorer: Rename kitinformation.{h,cpp} to kitaspects.{h,cpp}
Change-Id: I069bddeb457366210d339edcbb8ffb359a40fab8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-15 07:31:03 +00:00
hjk
9a69c20c40 ProjectExplorer: Hide filtered items on TargetSetupPage
Instead of destroying/recreating them.

Fixes: QTCREATORBUG-29494
Change-Id: I70e673bf2fb72c0ed31248c6ea18b1fb1a8f30a8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-15 07:11:43 +00:00
hjk
e2a370f280 LSP: Use 8-bit keys in Json wrapper
Sufficient, smaller, faster.

Change-Id: I0d740785109538e04fc674c11d578ded8d2815fb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-15 07:11:31 +00:00
hjk
1818236b2b Utils/QmlJS: Move contents of utils/json.{h,cpp} to qmljs
This is a special version of JSON only used in the QmlJSEditor,
demote it accordingly.

Change-Id: Id21ea16c022fb8554d87e9ba90c3494978e4cd80
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-15 07:11:07 +00:00
hjk
576769e54c ProjectExplorer: Fully pimpl TargetSetupPage
Just re-organization relate to, but not a fix for the linked issue.

Task-number: QTCREATORBUG-29494
Change-Id: I0c5413b2dc97738a03b737e764194c4d90d3f086
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-15 07:10:14 +00:00
hjk
1748ce6822 Utils: Reduce default indent for navigation tree levels
Further, from 90% to 70%.

Change-Id: Ief5407933a43b1fcdf906e431221dc664ae78d28
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-15 06:40:12 +00:00
Marco Bubke
aa39093a3f QmlDesigner: Simplify and optimize property getter
So far we create all AbtractProperties and then filter and cast them. So
we throw most of them away.

Now we filter before we create them and we create directly the type we
want.

Change-Id: Ic1b32e11f2b934edfcf890e27de323af38051784
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-14 14:53:16 +00:00
Marco Bubke
1b6f9db8e6 QmlDesigner: Use view instead of values
In the case of the has and remove functions we don't need the value. If
we use views we can use const expressions.

We have to change from QHash to std::map because QHash can not handle
different types for the find function.

The patch is removing a double lookup too.

Change-Id: I89bb942d7948127344d230ee61ac166102354ccb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-08-14 14:53:10 +00:00
Marco Bubke
bdd076efcd QmlDesigner: Improve Model
Make node collection a little bit more explicit. Before we created,
copied and destroyed node lists. Now we send a list
around where we add nodes.

Use raw pointer for properties. Properties are used as internal pointer
plus the property name. The repesentation as an shared pointer is a
implementation detail and could be removed in the future.

Use raw pointer for internal nodes if we don't handle ownership but only
access member.

Remove double checks for properties. One lookup is better than two or
three.

Change-Id: If162f365db3e8869cbc19913abfc44d57c2d8324
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-08-14 14:53:02 +00:00
Jarek Kobus
5bce234986 Valgrind: Refactor Parser
Make it implicitly threaded.

Get rid of ThreadedParser.

Don't move QTcpSocket instances, received by
QTcpServer::nextPendingConnection(), into another thread,
as docs says it's not safe.

Use wait condition for waiting for new data.

Don't potentially leak the Parser in loadXmlLogFile():
store a unique pointer to the running parser.

Introduce Parser::setData() method and use it with
QFile device in loadXmlLogFile().

Pass QAbstractSocket into the parser instead of
QIODevice and get rid of downcasting. The QIODevice
couldn't really work with non-socket and non-file devices
(like e.g. QProcess), as it lacks general error and finished
reporting signals (it has only general readyRead() signal).

Change-Id: I9352aec694564d4d2a26898841ed964bed470d82
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-14 14:42:16 +00:00
Alessandro Portale
4605bf57dd CMakeProjectManager: Deselect "Stage for installation" for BareMetal
There is no CMake install target for BareMetal. Therefore, the "Stage
for installation" option needs to be deseleceted, like it is being done
for other devices.

Amends: 2387e9e37a

Fixes: QTCREATORBUG-29293
Change-Id: Ic0e61ab19318f6383f55e6330b7559a734706a0e
Reviewed-by: hjk <hjk@qt.io>
2023-08-14 14:41:35 +00:00
Alessandro Portale
6f9a97fd13 CMakeProjectManager: Deselect "Stage for installation" for iOS Simulator
There is no CMake install target for iOS Simulator. Therefore, the
"Stage for installation" option needs to be deseleceted, like it is
being done for iOS device.

Amends: 2387e9e37a

Fixes: QTCREATORBUG-29293
Fixes: QTCREATORBUG-29475
Change-Id: I6406446534c1ddedbf01cdab4d074bddc44dc495
Reviewed-by: hjk <hjk@qt.io>
2023-08-14 14:41:28 +00:00
Artem Sokolovskii
3ab2da691d DAP: Add check that cmake 3.27 or higher
If CMake version is lower then 3.27
- Shows the warning in general message
- Starts CMake without debugging
- Stops debugging correctly

Change-Id: Ibb13555c20ae2961c0a3c2ef6ec0fcc25930dddc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-14 13:41:39 +00:00
Amr Essam
a4fbbb2463 QmlDesigner: Create effect node entity members
The EffectNode entity members and initial implementation for loading effect resources

Task-number: QDS-10402
Change-Id: I36913731f15fdc89e7bbaa1a7b40088a817e3086
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-14 13:34:44 +00:00
Artem Sokolovskii
83d2ee56b7 DAP: Add run to line support
Note:
"Run to line" feature is disabled for CMake.

Change-Id: If8dc271fe51c6e5695f2544a71be544c7575bfa9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-14 12:16:36 +00:00
Artem Sokolovskii
888e7e0c6d DAP: Add select thread support
Change-Id: Ib85d7d4413284d5919a2b19016aec503c9cb5fca
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-14 12:16:31 +00:00
Artem Sokolovskii
8b1047aa8f DAP: Refactor dap responses handling
Change-Id: Iebc16d7e497b4f3a1deec6f52f7b89815c2cde3b
Reviewed-by: hjk <hjk@qt.io>
2023-08-14 09:58:11 +00:00
Mahmoud Badri
56303d62a6 QmlDesigner: Load effect maker nodes' icons
Also remove some unused code.

Fixes: QDS-10426
Change-Id: I71c4fde339261e2856472c15bde56ee8850ed236
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-14 09:15:27 +00:00
Miikka Heikkinen
46800c6f97 QmlDesigner: Improve helper grid handling in 3D edit view
Changed the grid spacing to depend on view distance rather than
zoom factor, making it more understandable. Also it now takes into
account the distance of the lookat point from the grid plane to improve
spacing when focusing objects far away from the grid plane.

Simplified the logic on how subdivision alpha is calculated, making
it more flexible in case we want to allow configurable grid spacing.

Also, now the grid steps are bit more sensible numbers, i.e. multiples
of 50 instead of multiples of 55.

Change-Id: I37bcdb9469273b3ac8981519182096aa789d5b77
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-08-11 14:12:13 +00:00
David Schulz
7bb49b58df Core: fix IDocuments aboutToSave and saved filePath
The function emiting those signals can be called with an empty file
path. Use the document file path in this case like in
TextDocument::saveImpl.

Change-Id: I9e3381999a25c49df1d5db060ef5467b12220ad4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
v11.0.2
2023-08-11 14:08:04 +00:00
Miikka Heikkinen
b4db8a2d84 QmlDesigner: Enable shader caching in puppet
When shaders are cached in addition to pipeline caching, further
speedup of another 20% or so is achieved on resetting puppets in
complex 3D projects.

Task-number: QTBUG-103802
Change-Id: I55c950b14c7d854ca3b4de40558ecd26889aa134
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>
2023-08-11 13:32:37 +00:00
Mahmoud Badri
f90755c6dc Only add .qen to the effect maker nodes model
Also capitalize first letter of category name.

Change-Id: I1a86a27d98a4cf666c0b748193eb093061ad2a3c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-08-11 13:29:40 +00:00
David Schulz
28754ba08a LanguageClient: fix showing obsolete proposals
When receiving a null proposal and the processor is not running after
updating a proposal we need to make sure the previous visible proposal
widget gets closed.

Change-Id: Icb0a7293698e603df3ba8cab34a08c10fe6784da
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-11 12:38:08 +00:00
Mahmoud Badri
dcbab3b5dd QmlDesigner: Load effect maker nodes from path
...instead of from Qt SDK

Change-Id: I10d3104477b7cd7c729121175c66a7402ea49651
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-08-11 12:06:14 +00:00
Mahmoud Badri
6e2c62776b QmlDesigner: Implement effect maker nodes popup and load data in it
Change-Id: I95625f2eaf8aac71679b2f816dd20a9167849830
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-08-11 10:13:04 +00:00
hjk
658db809ef ProjectExplorer: Remove Q_OBJECT from KitAspectFactories
None of the functionality it provides is actively used.

The QObject inheritance itself is left as the factories act as
guard objects in some connections.

Change-Id: Ia6f2707a3a0a4e2810acdb4dd566afee855468b4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-11 09:49:30 +00:00
hjk
605e23a3ce McuSupport: Rename some of the KitAspect related classes
... and split out the static interface.

Change-Id: I5f9e3ed1e0c75fe26fa843858014070cb6cc0e6f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-11 09:46:46 +00:00
David Schulz
49da6d897e Add 11.0.2 changelog
Change-Id: I1bc62db637b68067ca2a087fcba82d9dce2c6636
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-11 09:23:01 +00:00
Artem Sokolovskii
a7fcb71b90 ClangFormat: Add warning for clangformat version
Added warning when current clangformat major version does not
match with version what checks was generated for.

Change-Id: I818c9a4f79385cba4e492ea5428bb051f329a9d4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-11 08:40:01 +00:00
hjk
3e9886bd90 QtSupport: Rename some of the KitAspect related classes
... and split out the static interface.

Change-Id: I5fdd851bd230a062440be6be9a4bf1fce4f00861
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-11 07:01:02 +00:00
hjk
1fa67e1c67 Qbs: Rename some of the KitAspect related classes
... and split out the static interface.

Change-Id: I62d2a188e75bbc3e3d912c3ebf0c4300bec9fb79
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-11 07:00:55 +00:00
hjk
bb06155f09 Meson: Rename some of the KitAspect related classes
... and split out the static interface.

Change-Id: Iaa92ab8e0b29e47736af6c2b5ed146369f2d7294
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-11 07:00:43 +00:00
hjk
e9266f53ec CMakeProjectManager: Rename some of the KitAspect related classes
... and split out the static interface.

Change-Id: I28cdb2765a00d1bd19790f46a3b2b0da8690e929
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-11 07:00:37 +00:00
hjk
329541a42c ProjectExplorer: Rename some of the KitAspect related classes
... and split out the static interface.

Change-Id: I0a1bb1c2fa71fa41fe54a3cbedd69f5a8f73713b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-11 07:00:28 +00:00
hjk
cde3156050 Qmake: Rename some of the KitAspect related classes
... and split out the static interface.

Change-Id: I9767c858a850b1fe16c97acc4848e8f69ae3342e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-11 07:00:15 +00:00
Christian Kandeler
74a0313fcf CPlusPlus: Support associating comments with a declaration
This will serve as the basic building block for several comment-related
features.

Task-number: QTCREATORBUG-6934
Task-number: QTCREATORBUG-12051
Task-number: QTCREATORBUG-13877
Change-Id: Ic68587c0d7985dc731da9f539884590fcec764de
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-10 14:26:27 +00:00