Commit Graph

80147 Commits

Author SHA1 Message Date
Marcus Tillmanns
ae94d3b7ea Terminal: Handle bell
Change-Id: I61681166fc8e489ffd0807cf3bcb4a2abc9cf6e1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-24 16:12:05 +00:00
Marcus Tillmanns
9417f8b99e Terminal: Add search
* Adds new search widget to terminal
* Adds new theme color "TerminalFindMatch"
* Fixes ESC key handling in terminal

Fixes: QTCREATORBUG-28946
Change-Id: I7b6057d13902a94a6bcd41dde6cc8ba8418cd585
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-24 16:12:01 +00:00
hjk
884a1d6f94 Replace a few \returns by Returns
Change-Id: I09c633e610421f5cc8257b15de60ffa98d890ee0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-03-24 14:51:55 +00:00
Alessandro Portale
623a7fa358 Fix QtCreatorIDEBranding.cmake
Change-Id: I1513058affb047c1a6483fbcd45547348d75e756
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-24 14:49:37 +00:00
Eike Ziller
1df085b9b4 Bump version to 11.0.0-beta1
Change-Id: I6f87635449be080dcc532168c0180945f4ddc02c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-24 14:26:44 +00:00
David Schulz
48cd81b015 Copilot: fixup compression timer cleanup
Unfortunately the timer gets deleted to early when the temporary object
that gets copied into the hash gets deleted. Delete the timer only if
the editor widget or client gets destructed.

Amends e6e895d6be

Change-Id: Ifee0dce337e7fc69ffeaeb82901135bd23ea8d81
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-24 14:12:36 +00:00
Mahmoud Badri
359ea5d55a QmlDesigner: Disable edit material button when no material entered
Otherwise clicking the button leads to a crash.

Change-Id: I668143a9cf1f394e30a58f0f6f6078b479d284b7
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-24 13:56:57 +00:00
Mahmoud Badri
e2e53896f9 QmlDesigner: Fix Property Editor doesn't update binding properties
Now Property Editor correctly update a binding property when it is
added, removed, or updated.

Fixes: QDS-9465
Change-Id: I48eb101f7dcca04e123a84c6eebaf4ec6d098d6c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-24 13:53:54 +00:00
Alessandro Portale
f7639f458a Android: Launch "adb track-devices" with explicit working directory
Since no working directory was explicitly set, the "bin/" directory of
QtC was chosen as working directory.

"adb track-devices" leaves the server process alive after terminating,
and that server process used QtC's working directory. On Windows, that
caused that directory to be undeletable/unmovable as long as the adb
server was alive.

This change sets the working directory of "adb track-devices" to the
parent dir of the adb binary.

Task-number: QTCREATORBUG-28932
Change-Id: I3adf52829c9f4bf456d05d2685c04314e1d25a40
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2023-03-24 13:50:14 +00:00
Jarek Kobus
b5af4501df Fix include style
Change-Id: I64cb77f8d39dac35821fe96d735bc5dda35738e7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-24 13:42:50 +00:00
hjk
5996e58ffa ProjectExplorer: Allow Devices to be added without using the wizard
This re-organizes the buttons on the main device page a bit: The
topmost one still starts the wizard selection, below that are direct
individual buttons to add specific devices.

Change-Id: I52b2803febf658259dde9589544656fd4c8fc889
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-24 13:20:19 +00:00
Marcus Tillmanns
17a482bebe Terminal: Support paste via Middle mouse button
Fixes: QTCREATORBUG-28943
Change-Id: If48c021e509e10fd13e6e5356d0a364e91aae8da
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-24 13:16:23 +00:00
hjk
b7394e073e QmakeProjectManager: Work around a warning
warning: this statement may fall through [-Wimplicit-fallthrough=]

Change-Id: I95b97781934521b578571da196d6688302ce76f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-24 13:14:58 +00:00
hjk
6e276b0a00 Utils: Add a way to provide fall-back entries in an environment
These are used if a (presumably fully-expanded) environment does
not have a value for a certain key. Currently this works only for
fully-known environments, but this can at least be delayed until
the environment is needed, not when it is set up.

Change-Id: I9baaa2d23002ddd574101741a91d5f872e6b0314
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-24 12:53:15 +00:00
Marcus Tillmanns
a0924caea2 Terminal: Improve light default themes
* Made Ansi 11 easier to read ( darker )
* Fixed selection color to be black with 25% opacity

Change-Id: I2380e45b9cc15732085961f21eb6e5360321a9fe
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-24 12:29:27 +00:00
David Schulz
9ac1f221cc TextEditor: ensure block is layouted
...after requesting block bounding rect.

Change-Id: Id7420a1b1ae4761fad86b6dbbc9c9ebe639cc5fe
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-24 12:00:56 +00:00
David Schulz
e6e895d6be Copilot: correctly cleanup compression timer
fixes a leak and a crash if the timer triggers after the widget was
deleted.

Change-Id: I57794009186d4c5e4dee0b0c0746ffc5468000b7
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-24 12:00:50 +00:00
Cristian Adam
1be65dd1ee Terminal: Update on set focus after closing tab
Amends 84155e8354

This change sets the focus also on terminals that get destroyed via exit
or Ctrl+D

Change-Id: I9a96ae5b257f3e8a93db7efb4e7d4468b287c143
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-24 11:56:10 +00:00
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