Commit Graph

82566 Commits

Author SHA1 Message Date
hjk
f21282cb2d ProjectExplorer: Simplify KitManagerPrivate access
Change-Id: Ia4e97a93899c7cd90d97a4cfaa6098cd2b395cc8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-16 10:38:47 +00:00
hjk
fa011af1a0 ProjectExplorer: Avoid early creation of KitManager
This was only meant as part of a safety net, but in the case that
the situation this was guarding against actually happens we'd also
notice by simply not seeing the effect. This is not different to
any other place in the code where we e.g. create objects/widgets/...
and don't put them in the right container.

Change-Id: I0700fd3ca235662b718cf01229211a4eebec8a9a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-16 10:17:35 +00:00
Christian Stenger
b79ffcf8a2 Copilot: Fix qbs build
Change-Id: I2fad66854b69345150fdd19fa7da18125f8590d9
Reviewed-by: hjk <hjk@qt.io>
2023-08-16 08:57:26 +00:00
hjk
e9c1901bad Core: Use an aspect for the Patch tool path setting
Change-Id: Ifc758fb4ac5d00a7b755ea06f3f6b98d53e7cc46
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-16 08:57:09 +00:00
hjk
cf35cf326b ProjectExplorer: Use some better names for local variables
In KitManagerConfigWidget, plus a bit of style cleanup.

Change-Id: I6e28f697267c5e51d95a734cb2fe989346ac016b
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-16 08:37:47 +00:00
Jarek Kobus
0ad7ec4518 RunWorker: Remove unused method
Change-Id: I02da4d0336949c24000a70a6f4364fe80b14dae8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-16 08:34:13 +00:00
hjk
2a07253a42 Debugger: Rename debuggerkitinformation.{cpp,h}
... to debuggerkitaspect.{cpp,h}

Change-Id: Ia6316fcdc893ca066933658a52c78ef1587a76e8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-16 07:33:43 +00:00
David Schulz
1036c776f5 CMake: add environment variable for ccache support
Add another environment variable whether CMake should check for ccache
and adjust the compiler options accordingly when building Qt Creator.

Change-Id: I796f29d7f6ad4a1f054f978d50dbd0120b873aea
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-08-16 07:29:09 +00:00
hjk
a3b93481da Debugger: Hide KitAspectFactory
Change-Id: If98f4598efb273852a602a9ed7379341a3720a60
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-16 07:27:10 +00:00
Marcus Tillmanns
ae51ad8c92 Copilot: Move to Settings::setLayouter()
Change-Id: I1d7d9872f12aa5436f03107bdd5fedfbe2829700
Reviewed-by: hjk <hjk@qt.io>
2023-08-16 06:55:06 +00:00
Marcus Tillmanns
f2d62c6d91 Copilot: Add support for proxy settings
For easier testing a docker file is added. You can start
"buildandrun.sh" in copilot/tests/proxy to get a simple
proxy server up and running. The argument "PWDMODE" in
buildandrun.sh can be set to "with" and "without" to get
a proxy server that needs a password or not. The username
and password are user/1234.

Fixes: QTCREATORBUG-29485
Change-Id: I3859c9ad04ebd4f9349e25665ba710e23fb64dea
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-16 06:54:54 +00:00
Christian Stenger
91596316f2 WinPty: Fix qbs build on Windows
Change-Id: I993fa3c8d9bc364c00e9e9eedba021a7432d908f
Reviewed-by: hjk <hjk@qt.io>
2023-08-16 06:49:48 +00:00
hjk
f53e18ee73 Test: Avoid some Id::withSuffix calls
Saves cycles and is arguably clearer.

Change-Id: Ib53207704806d4b6ea184633a15ab98fb2eeb89a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-16 06:06:55 +00:00
hjk
0690b65abc LanguageServer: Compile fix for Qt 6.2
QLatin1StringView ist ein alias fuer QLatin1String, aber erst ab 6.4

Change-Id: I9b04d39722bf2707c327c6596a4bfe9ee719bae8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-08-15 16:04:47 +00:00
hjk
5aa138bb68 ProjectExplorer: Hide some KitAspectFactory implementations
Change-Id: If84dd7aeb72e87d2cb35635689ad1c9c2e09a825
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-15 13:49:59 +00:00
Marcus Tillmanns
013b71b301 Utils: Allow cascaded aspect "setEnabler"
Change-Id: I4e519c0ef27460b42c4e44a755e5e6cbbf49ebdf
Reviewed-by: hjk <hjk@qt.io>
2023-08-15 13:30:06 +00:00
Marcus Tillmanns
bc1ab260b4 Utils: Add password input dialog
Task-number: QTCREATORBUG-29485
Change-Id: I2b55e7d39f848f1c89d3a365a2cadd44e8aac97c
Reviewed-by: hjk <hjk@qt.io>
2023-08-15 13:17:19 +00:00
hjk
123793fbb1 Utils: Add an 'If' LayoutItem
Change-Id: I700e28d03b6dc39e96fa969152f236760989bdb7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-15 13:03:11 +00:00
Marcus Tillmanns
b0d5e44235 Utils: Add Password display to StringAspect
Task-number: QTCREATORBUG-29485
Change-Id: I8da46be4c63f97595aa1e93b6ac4905bdbb54799
Reviewed-by: hjk <hjk@qt.io>
2023-08-15 13:02:31 +00:00
hjk
876d9fb1e0 ProjectExplorer: Separate KitAspectFactory storage from live kits
Change-Id: Ic4d4f4938a11e209c31dcba73d1a793d359fe135
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-15 12:54:05 +00:00
Jarek Kobus
d6068c3ce5 TaskTree: Make TreeStorage final
Allow TreeStorageBase to be subclasses only by TreeStorage.

Change-Id: I6e119d6b6f2f99cc7846752cf55f9fb92f3834c7
Reviewed-by: hjk <hjk@qt.io>
2023-08-15 12:46:46 +00:00
Mehdi Salem
10feedf9de Axivion: integrate generated DTOs
We are not yet making use of the integrated DTOs as this will happen
in a future commit along with the network requests to fetch the data.

Change-Id: I72cf9005cae052c41a7e906e0fae5dbe176e0882
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
2023-08-15 11:35:02 +00:00
Marcus Tillmanns
5ae116618e Tracing: Remove useless code
runSceneGraphTest() did nothing but create an opengl context and
offscreen surface. It did nothing with the provided QSGNode.
The only thing it does is make the test fail if the opengl context
can't be created for instance on test machines without opengl.

Change-Id: I376c3565f5afcee6e123a7ef8b9832e679e645a0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-08-15 11:04:36 +00:00
hjk
9b18e73fac Utils: Switch FileIconProviderImplementation::icon() overloads
The FilePath based one seems to be called primarily, so make that
the primary implementation, saving a FilePath <-> QFileInfo round trip.

Change-Id: Ib3427a5168e559b8a583570ac1c82dfe658644da
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-15 10:52:16 +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
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
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
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
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
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
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
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