Commit Graph

80147 Commits

Author SHA1 Message Date
Marcus Tillmanns
a485f18a94 Terminal: Make shortcuts configurable
Fixes: QTCREATORBUG-28940
Change-Id: I1afe114c357243a8fa4f101b5eac80a766dc87b9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 12:31:53 +00:00
Marcus Tillmanns
f00a4ef46b Terminal: Import color schemes
Change-Id: I86c7ccdb28b81eff9d9519c40321a3b3890ef73a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-23 12:31:43 +00:00
Leena Miettinen
7babb9677d Doc: Update debugger topics
- Add info about PDB
- Edit info about setting up debuggers and add (existing)
  screenshots
- Update info about Add Breakpoints view
- Move some text around

Task-number: QTCREATORBUG-28778
Change-Id: Ice3813ef2d4b143ed1f9d246aa6c029829dee60f
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-23 12:31:09 +00:00
Eike Ziller
d99128e5e6 Build: Fix CONDITION with multiple parts
for add_qtc_test and qtc_add_resources.
The condition needs to be wrapped in () because otherwise conditions
that contain AND or OR themselves break.

Change-Id: Iff64ad15c5f5b6e5a9db5a97c975bd8854c59c02
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 12:10:34 +00:00
Marcus Tillmanns
1d9c96a9f4 Terminal: Add enable setting
Change-Id: I13cca8b2d4c55df7db29807c1252718e2819ea0b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 11:42:00 +00:00
David Schulz
75bdaf25d0 Debugger: enable dependency action only if we can find depends
Change-Id: I1f8c8d4108a1e3c6a03b93c9cf280c005806fc44
Reviewed-by: hjk <hjk@qt.io>
2023-03-23 11:37:56 +00:00
hjk
cd3c7e368d RemoteLinux: Clean up abstractremotelinuxdeploystep.h
Change-Id: I14297c2f7ccff34dd2119c90eab8a9ee42800ba1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-23 11:34:13 +00:00
Eike Ziller
c0676540ee Utils: Add header to be installed
Referenced in filepath.h

Change-Id: Ie7c8a270c64e2d2a5f979bbf8ad5990fb6ff1a8c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-23 11:34:05 +00:00
Marcus Tillmanns
5341570572 Terminal: Move color mapping to widget
This allows us to easily update the view when the colors are changed
in the settings.

Change-Id: I0b4f150b4fc9cec9aee2796d63f2395e05ce70df
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 11:32:51 +00:00
Marcus Tillmanns
d5b419dfa8 Terminal: Fix settings aspect registration
Change-Id: I6f38660ba041dd745900746b16c7045d61a39e5b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 11:32:46 +00:00
Mahmoud Badri
53657b1e3c QmlDesigner: Cleanups to the AbstractView class
Change-Id: Ic8f82342cd6cb8ff14b3239efa7add62112898a6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-23 11:27:01 +00:00
hjk
04dd3e87b4 RemoteLinux: Use FancyLineEdits in device setup wizard
Change-Id: Ibd94630e8acc4e99073760a15eddb82193a44d75
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-23 10:58:13 +00:00
hjk
64e40631ec RemoteLinux: Inline a few more deploy step functions
Change-Id: Ib93562b24de796f570cfa76dd3990ede5ebc6061
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-23 10:55:02 +00:00
hjk
c6659020be Boot2Qt/RL: Remove some function re-implementations
... that are identical to the base implementation.

Change-Id: I75dd2c2c560ae04fe410a1846c68a82aa6d214a2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-23 07:28:13 +00:00
hjk
2d0b2fd464 RemoteLinux: simplify AbstractRemoteLinuxDeployStep interface
Effectively inline four functions that are used only once.

Change-Id: I2cc96205e457a16a1f68f2bcda1cdf4945cec93e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-23 07:22:56 +00:00
hjk
c6b6e5b0c6 RemoteLinux: Drop some in-class signalling
Not needed since the deploy step and service hierarchy merge.

Change-Id: I644bdeca31caa2182b9d618e5f1ec6865c95f4c8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-23 07:22:50 +00:00
hjk
a4ed630c7d RemoteLinux/Boot2Qt: Merge DeployStep and DeployService hierarchies
They were 1:1 now.

The change here is as small as possible, there are quite a few places
to clean up left.

Change-Id: I4f78d1de857b93d8372e2592a7723b02fe2fc947
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-23 07:16:54 +00:00
David Schulz
1bdc638e65 LanguageClient: remove unused variables
Change-Id: I75281300ae5bc432d4571fd9b423c91d53eda310
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-23 06:18:22 +00:00
David Schulz
f3d620fe79 LanguageClient: add tooltip to reload call hierarchy tool button
Change-Id: I9811bdf39f39175cd53f201b94aaf3dc3a6fae22
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-23 06:17:31 +00:00
Christian Stenger
7a4ef9c1f7 TextEditor: Fix build for real build systems
Amends 6deabc4334.

Change-Id: I237d912041c1db29dabd48ba243731419d8d688c
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-23 05:51:25 +00:00
David Schulz
eb7ccfd889 LanguageClient: add action to open call hierarchy
Fixes: QTCREATORBUG-28839
Fixes: QTCREATORBUG-28842
Change-Id: Icb70412282c0c2c36241559d942a58ffddab5664
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-22 14:40:38 +00:00
Eike Ziller
2880453e38 German translation: ProjectExplorer
Change-Id: Ieb273702f1d2dd470420d4d1ce4376e6d617a1c2
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-22 14:12:00 +00:00
Eike Ziller
9cfc07fae8 German translation: CMake
Change-Id: I874475c627ac398aaf996d6f43c78e719eaf1548
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-22 14:11:38 +00:00
David Schulz
52bc450790 Debugger: Fix error message
Change-Id: Idd6b63c8f814f1fbde31ee6cd5c0d4d3c461c895
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-22 13:53:34 +00:00
hjk
f423db5cb7 Android: Slim down androiddeployqtstep.h
Change-Id: I8a7cf3c33cc1dea6dd79f4c2bf0808f24a3b2369
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-22 13:27:56 +00:00
Eike Ziller
1daf3063ff German translation: CppEditor
Change-Id: I1b87fdc7709ed777fa6486ef692ef53ceb5ad1cf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-22 13:21:27 +00:00
Semih Yavuz
6deabc4334 formattexteditor: fix broken formatting
In case of unicode character, moving cursor relatively can result in
wrong placement of the cursor. Use absolute positions.

Fixes: QTCREATORBUG-28859
Change-Id: Idf68481861fc10c24b1eb330220fba92cadf560a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-22 12:54:11 +00:00
Christian Stenger
7014376aaa Python: Tweak handling of python project files
Improves the handling of the preferred python project
file (*.pyproject) and makes use of the json support.

Change-Id: I24d6e2c1d10899efacec0fc9b03660bb8f25dfe7
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-22 12:18:39 +00:00
Alessandro Portale
6079b7b378 Android: Update SDK manager tree display
Adopt latest naming in Android Studio.

Change-Id: I524adf5858933fddefe496db434b2fdca029d18f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2023-03-22 10:55:47 +00:00
Thomas Hartmann
b63cb2603e QmlDesigner: Always try to open in design mode if qmlproject is opened
If there is no ui.qml file then fallback to .qml.
Change to design mode in any case if a file was opened.

Task-number: QDS-9460
Change-Id: I619292019105f488ff33e6e5ed4294b36eb2627c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-22 10:37:19 +00:00
Marcus Tillmanns
4d6683b2cb Docker: Fix warning
Change-Id: Ia4665c1fcd0f52b5b8180b811e59ad7ba5bc2587
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-22 08:18:01 +00:00
Artem Sokolovskii
5a0ec63895 Core: Refactor disambiguateDisplayNames
- Used FilePath utils for finding common ancestor

Change-Id: I2491a66196128e927bd0da5729ed45eeb0b35646
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-22 08:06:21 +00:00
Christian Kandeler
661eca5968 LanguageClient: Fix off-by-one error in CallHierarchy
Fixes: QTCREATORBUG-28841
Change-Id: I739be37c3de942f5f631ad576a775a441ee8e4cf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-22 06:53:18 +00:00
Marcus Tillmanns
83d818496c WASM/MCU: Fix includes
Change-Id: I47b547249c15d799bf4567fbede83afd83fcd1bf
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-21 15:23:14 +00:00
Jarek Kobus
97f1333cf7 CppCurrentDocumentFilter: Avoid using internalData
Change-Id: Ic4dc03101f319449ca9835a23c786fbb0528f1c3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-21 15:09:18 +00:00
Marcus Tillmanns
44074accc7 Terminal: Use QtcProcess to start terminal window
Previously DesktopDevice::openTerminal used custom code to open a
terminal window. This patch changes it to use QtcProcess with
TerminalMode::On.

This also removes the need for "openTerminal.py" on macOS.

Change-Id: Iec978bdd19487ff8e59dcd88c35c2d01b0681022
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-21 15:09:15 +00:00
Alessandro Portale
50a214de9e Qbs build system: Add a component for test files groups
Mainly in order to enforce a unified group name across QtC libraries and
plugins.

Change-Id: I6eafe0f9d227ec73d8c9029675866c67063768fb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-21 14:54:08 +00:00
Ulf Hermann
063b1d4b79 Update perfparser submodule to version 10.0
Change-Id: I49d445a4210215b0863f6cb410919a6a41f9fcf3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-21 14:43:52 +00:00
Marco Bubke
c738305989 QmlDesigner: Fix compilation error
There was an unused parameter.

Change-Id: I50e727a2c7152d730660f63a9f2aa43718ae1e4a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-21 14:39:24 +00:00
Eike Ziller
1029cb959b Build: Fix translation targets
Filter out .pro files from the translation sources.
A ProjectExplorer test was added that added files like
`multi-target-project-app.pro` to the target sources.
lupdate then triggers a call for lupdate-pro, which in turn fails.

Also filter .css files, which result in lupdate warnings.

Change-Id: Ib2fa5f0228307bc5850915ed89c14a0956d1d6a8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-21 14:09:49 +00:00
Marcus Tillmanns
97c1bb53a5 Docker: Check Image available
Docker will try to download images from the registry if an image is
not available locally. This takes a while, even if the image is not
available remotely. To circumvent the hangs resulting from this we
first check if the image is available locally and if it is not we do
not try to start it.

Fixes: QTCREATORBUG-28880
Change-Id: I6b9de8601b87e3050ae9ac5f1bbe3fa9701d4cc1
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-21 14:09:33 +00:00
Christian Kandeler
90f2d33767 Update qbs submodule to HEAD of 2.0 branch
Change-Id: I3e86c68b7a4b958c5a5d078400b48a5b4251d044
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-21 14:02:57 +00:00
Christian Kandeler
e788d0e8da ProjectExplorer: Make sure all changes to device settings are applied
The old "editingFinished on macOS" problem hits again.
A cursory glance seems to suggest the required call to
updateDeviceFromUi() was missing already in the original patch
dff0761406.

Change-Id: Id286417962010bfffe98169b55fb42e3480b03f6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-21 14:02:36 +00:00
Christian Kandeler
65814b124c CMakeProjectManager: Add lib and app binaries to project tree
Task-number: QTCREATORBUG-28815
Change-Id: I58ebcd2a6935eb4b6746b5fd58e6ab8b97fdef43
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-21 13:59:46 +00:00
Marcus Tillmanns
80fa3339e0 Utils: Re-add "press enter to continue" to stub
To keep the terminal from closing immediately, ask the user
to press enter after the inferior exited.

Make it configurable as the terminal plugin does not need
this.

Change-Id: I1949895f022a54539a6139be9f92fdc698f6534e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-21 13:50:18 +00:00
Alessandro Portale
20af0711d5 Tracing: Fix category label appearance after manual reordering
The drag item remained visible although the item height was supposedly
set to 0. This fix uses the visibility property in order to show/hide
the drag item.

Fixes: QTCREATORBUG-28930
Change-Id: I2233eed585f94eab5d71e0aa2743b791390c249c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-03-21 13:40:31 +00:00
Marcus Tillmanns
129562ea6f Utils: Test QtcProcess default environment
Change-Id: I62f56bd070ec531462ad3dd4e39cf6708115c7ba
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-21 12:41:04 +00:00
hjk
eb9416b35f RemoteLinux: Move GenericDirectUploadService implementation
... to genericdirectuploadstep.cpp and inline its pimpl.

Change-Id: I50550ee4bbf4266fa191008c9db1696bae3f7f43
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-21 12:35:38 +00:00
Marcus Tillmanns
9ddd1e1d36 Utils: Improve DeviceShell error handling
In case mktemp or mkfifo fails, the device shell script would
incorrectly print both success and failure messages.

Also cleaning State enum, removing unnecessary values.

Fixes possible crash if creation of master process fails.

Fixes: QTCREATORBUG-28928
Change-Id: I75fef54dc791b2b0a403bab19dab6813b62643ac
Reviewed-by: hjk <hjk@qt.io>
2023-03-21 12:31:44 +00:00
Samuel Ghinet
98be6d289f Make Content Library Materials downloadable
Task-number: QDS-9267
Change-Id: Ib4da1871cd1d9f0bf52323793b7d8d1b028ae170
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-21 12:30:31 +00:00