Commit Graph

80529 Commits

Author SHA1 Message Date
Cristian Adam
3b6e59ab91 Terminal: Update on open/close the Terminal pane registration
Amends f95bd6119a

Change-Id: Ie20d73ad9d87c5b244c768a28f3a7bd71fdd272c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-24 11:55:58 +00:00
hjk
b4bc5f6e1b Utils: Add short documentation for two FilePath functions
ensureWriteableDir() and createDir()

Also change a few \returns to Returns.

Change-Id: I8c80616a465a7e665ff56fab8279e43e5755fb4f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-03-24 10:59:39 +00:00
Knud Dollereder
2da5e04ef7 Use QString::toUpper instead of std::toupper
Change-Id: I83fd40b9ac2ec8d47078c226390f5b352d4bf9bb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-24 10:46:25 +00:00
Alessandro Portale
3526b6a735 Terminal: Introduce Add/Close icons for the pane
Required a new "close" overlay.

Change-Id: I5268ec280992124ebcee78a73ab58b18e7c9309b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-24 10:39:00 +00:00
Burak Hancerli
47547e0c0c QmlDesigner: blame-file update for the bulk clang-format
Task-number: QDS-9097
Change-Id: I4cc499c2fd910b107434a1f8d4a3f0cbfd5efc5e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-24 10:10:49 +00:00
Marcus Tillmanns
47fcb28c8f Utils: Restore ctrlc stub
It was incorrectly removed in
0870f2583b

Change-Id: Id219981d459ab3bf9560945275ed874cc63efa64
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-24 09:59:05 +00:00
Semih Yavuz
8bf24bac3a Remove auto-format-on-file-save dependency from custom formatter widgets
We can use custom formatter not only with auto-formatting on file save,
but also tools/qmljs/reformat file action. Hence, command and arguments
lineedits of custom formatter should only be enabled/disabled by
useCustomFormatter checkbox. useCustomFormatter also should not depend
on auto-format-on-file-save checkbox's state.

Change-Id: If1a634612f38395fd846166f4cc72593f5150f91
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Xavier BESSON <developer@xavi-b.fr>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-24 09:31:33 +00:00
Eike Ziller
01b2108697 German translation: Help, ImageViewer
Change-Id: I24d0b8a6fac48d9583b107ede89f1d50a92f83fc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-24 08:48:26 +00:00
Eike Ziller
f28d542175 German translation: Beautifier, ClangFormat, ClangTools, Cppcheck
Change-Id: Ic0dd09cbed42ac9d83e212b6557372e0e1f8cf73
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-24 08:48:15 +00:00
Alessandro Portale
83d40683d9 Core: Fix error text color in SearchResultWidget
Remove the CanceledSearchTextColor theme role and use TextColorError
instead.

Change-Id: I3dde538d107ecfdd9c9a3f2406f6cd26ad28c902
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-24 08:47:24 +00:00
Burak Hancerli
fef7852da5 QmlDesigner: bulk clang-format trial
Task-number: QDS-9097
Change-Id: I9b063614030831a2dda6dbdc2bbc79205d6baeaf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-03-24 08:45:28 +00:00
Leena Miettinen
77fa93ef0a Doc: Fix reference to an image that is now in WEBP format
Task-number: QTCREATORBUG-28778
Change-Id: I1d0b45781a1692384ec218d74f4f270b083916ed
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-24 08:11:57 +00:00
Thomas Hartmann
1e2c8d42e3 QmlDesigner: Make connection generation a bit more robust
* Do not hardcode the typename
* Handle types without defailt property/non visual nodes

Change-Id: I0db0173f7ec645dc42cdf52824fdc5ba1389bb13
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-03-24 08:03:04 +00:00
Cristian Adam
f95bd6119a Terminal: Register the command to open/close the Terminal pane
This way Alt+5 (Ctrl+5) would open / close the Terminal pane.

Change-Id: I91003987c1b8109abc302a79a895fab1557fefea
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-24 07:47:03 +00:00
hjk
2766b4004b Utils: Continue Environment/EnvironmentChange consolidation
Make Environment a stack of changes that gets "expanded" to
a full environment before things are actively accessed.

Later this expansion should be done lazily if possible.

Task-number: QTCREATORBUG-28357
Change-Id: If1c7bfdb9f58b81e71c51ed87ee75d6964a47019
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-24 07:45:35 +00:00
hjk
ae4e178221 Utils: Move the CommandLine destructor out-of-line
Not really cheap and bloats the user code.

Change-Id: I2039794f0608838d97b404bb7d92b489d22f2cbe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-24 07:45:11 +00:00
Christian Stenger
8af05292e7 Terminal: Fix Qbs build
Amends a485f18a94.

Change-Id: I107d142b4d1e4ca427d5d52af7bdfc102accae2e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-24 07:39:41 +00:00
Christian Stenger
875dc22ef4 Terminal: Do not use plugin tr includes inside header
...to avoid accidently including it elsewhere and using a
different Tr::tr() in turn.
Amends a485f18a94.

Change-Id: Iee5b6626ebf53cd2c18833f48ca1a603c3cbff8b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-24 07:39:35 +00:00
hjk
4885002613 ProjectExplorer: Code cosmetics
Amends 29873068eb.

Change-Id: I353a591b6199422886473e6ae94920e6f4097ce6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-24 07:26:35 +00:00
Leena Miettinen
31ea42eb54 Doc: Describe Threads, Modules, and Source Files debugger views
Add screenshots and more information about the views.

Task-number: QTCREATORBUG-28778
Change-Id: I385c1f6dd5eeed20d122bed2d9420b32b9a3d70b
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-24 07:24:26 +00:00
Marcus Tillmanns
8064496f4e Terminal: Always show tabs
Fixes: QTCREATORBUG-28944
Change-Id: I59242eb08999ca9bd25363c144c05f29f36cbc54
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-24 07:16:33 +00:00
Alessandro Portale
8432760f9a Android: Make QRegularExpressions static const
Change-Id: I76653261c47a91dc5c3e3368e1961774917bc741
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-23 16:04:06 +00:00
Thomas Hartmann
3b1c9ea882 QmlJS: Take Qt 6.5 into account for Connections
In Qt 6.5 Connections are on QtQml.Base

Task-number: QDS-9492
Change-Id: I07874695367994641126f25148f3425af37b6bf3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-03-23 15:27:43 +00:00
Marcus Tillmanns
7fe4fde886 Terminal: Open directory links in navigation
Fixes: QTCREATORBUG-28938
Change-Id: If49def66501ff29f72d8a92e3971da6be5d93367
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 14:07:00 +00:00
Marcus Tillmanns
1c099b2bd2 Terminal: Use current dir for links
Fixes: QTCREATORBUG-28942
Change-Id: I424676d3ef3395eead9c4c0c0e826e1c44500b40
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 14:06:52 +00:00
Marcus Tillmanns
e045c643c3 Terminal: Support Alt+Left / Alt+Right cursor move
Fixes: QTCREATORBUG-28941
Change-Id: I7c8e012733f6dcb2851e8e1b840d53317e413cd8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 14:04:59 +00:00
Marcus Tillmanns
84155e8354 Terminal: Set focus after closing tab
Change-Id: I1c13d0e59000ca3d1a88a3fe543ccd1aa6db7462
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 13:52:05 +00:00
Marcus Tillmanns
10816ecbe0 Terminal: Add default themes to Creator themes
Fixes: QTCREATORBUG-28939
Change-Id: I51ded621cdd2e87743a93853686bba09aa9aa44d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 13:51:58 +00:00
Cristian Adam
6e0a50c660 Terminal: Use terminal icon for the shells dropdown button
The + icon is confusing with the zoom in.

Change-Id: Ibafa538a7ef3c1f58c940780caca4c24bfc23ef3
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-23 13:30:10 +00:00
Mats Honkamaa
e42f66ba8c Doc: Fix Simulink Qt Blockset link
Task-number: QDS-9510
Change-Id: I595c70e1eeb1834aeb8213c32b223e3911594045
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-23 13:01:51 +00:00
Marcus Tillmanns
29873068eb Utils: Store Device::osType in settings
Change-Id: I41348be752598b7a8d1f1979764e7111cccc95a9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-23 12:33:58 +00:00
Marcus Tillmanns
af809b3a52 Terminal: Add context menu & Settings button
Fixes: QTCREATORBUG-28937
Change-Id: I9dab5da0adccb8cff4d4e824ead0eba3e27eef5c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-23 12:32:07 +00:00
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