Commit Graph

80400 Commits

Author SHA1 Message Date
Jarek Kobus
ce457a9cdc ILocatorFilter: Replace refresh() with refreshRecipe()
Most of refresh overrides were running synchronous method in main
thread, however, it was really convoluted: we were starting
asynchronous call and from inside the method running in separate
thread we were scheduling the call back to main thread.
Use Tasking::Sync for these cases instead.

The only subclass that is doing the real asynchronous refresh
is DirectoryFilter. Simplify the async call internals and
pass data to the async call explicitly. Move the refresh method
outside of DirectoryFilter class (to make it clear we shouldn't
touch private members).

Change-Id: I6af788611bdc49db1ff812f91202ac40a280fbc8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-06 09:55:07 +00:00
Christian Kandeler
913513ff62 qbs build: Turn off warnings for vterm library
As in the cmake build.

Change-Id: I2cbc5d3fcae89053f310675dc0ea55c52f72f646
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-06 09:21:34 +00:00
Pranta Dastider
4ddf7600be QmlDesigner: Update Tooltips for Path View Highlight Section
This patch update tooltip text for Path View Highlight
section fields in Property editor.

Fixes: QDS-9204
Change-Id: Ic6007946386f1e0e5bdcf39bb04b04139c45a6a1
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-06 08:51:17 +00:00
Pranta Dastider
b577188882 QmlDesigner: Update Tooltips for List View Highlight Section
This patch update tooltip text for List View Highlight
section fields in Property editor.

Fixes: QDS-9203
Change-Id: If69dfbff8adcb47c83da9e02e132081c9ab1bef8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-06 08:51:13 +00:00
Pranta Dastider
fd3d3b5c23 QmlDesigner: Update Tooltips for Grid View Highlight Section
This patch update tooltip text for Grid View Highlight
section fields in Property editor.

Fixes: QDS-9202
Change-Id: Ie16d7df74755d726bb729c2c53490444fefc48fe
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-06 08:51:08 +00:00
Pranta Dastider
4b4ad4001f QmlDesigner: Update Tooltips for Progress Bar Section
This patch update tooltip text for Progress Bar section fields
in Property editor.

Fixes: QDS-9213
Change-Id: Ib5953d93e5a3fba409705632b2a38844491aa5d1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-06 08:50:28 +00:00
Pranta Dastider
566710324a QmlDesigner: Update Tooltips for Group Box Section
This patch update tooltip text for Group Box section fields
in Property editor.

Fixes: QDS-9208
Change-Id: I7c0c27a6e37bae06c552b15abac0ec75661e3580
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-06 08:50:19 +00:00
Pranta Dastider
89eb04f3be QmlDesigner: Update Tooltips for Dial Section
This patch update tooltip text for Dial section fields
in Property editor.

Fixes: QDS-9206
Change-Id: If3033bb6258339bf1d9dbdd2bfed788e65e6ecb1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-06 08:50:13 +00:00
Pranta Dastider
b746b357d7 QmlDesigner: Update Tooltips for Combo Box Section
This patch update tooltip text for Combo Box section fields
in Property editor.

Fixes: QDS-9205
Change-Id: I62fd4c0fe2a1509d3f5264f7e39bb016fc4ba8a2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-06 08:50:07 +00:00
Orgad Shaneh
70369aca13 Android: Remove unreachable return
Reported by Coverity.

Change-Id: Id1b67f0adae3ff0c9157428726778c8c3b2a03a7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-06 08:32:01 +00:00
Leena Miettinen
476c072b00 Doc: Add table of debugger toolbar icons and their purpose
Task-number: QTCREATORBUG-28778
Change-Id: Ic7c88862bc28e9680fb103a1d8663baedc28df79
Reviewed-by: hjk <hjk@qt.io>
2023-03-06 08:20:38 +00:00
The Qt Project
a50ca812f4 Merge "Merge remote-tracking branch 'origin/10.0'" 2023-03-06 07:50:20 +00:00
Orgad Shaneh
cabba52a89 Utils: Fix bad condition on iterator end
Detected by Coverity.

Amends c1b1842c48.

Change-Id: Ie0233aab33317e286722dec7066d11dfc2a11a06
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-03-06 07:32:04 +00:00
Leena Miettinen
4c5b4e7ea0 Doc: Describe the "cmake --install" deployment step
Task-number: QTCREATORBUG-28721
Change-Id: Id2571cf357e821555ecfa73a78d9b76dd9ee540b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-06 07:30:08 +00:00
Eike Ziller
36d9341397 Merge remote-tracking branch 'origin/10.0'
Change-Id: Idf151b6cfe87957cf905e67aab6b1275b9f0506a
2023-03-06 08:24:18 +01:00
Christian Stenger
5ea655cabd Dumper: Fix dumping QDir with Qt6.6
Change-Id: I7ef37026c638f7e77e4e34af40c3ecff1e40e8b3
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-06 07:11:05 +00:00
Christian Stenger
735417c859 Tests: Enhance offset test
Change-Id: I58bc51c4552ab58e303de0fdf3f89cd28b9ff62a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-06 07:10:46 +00:00
hjk
ae86a6a4bc Utils: Remove some iterator bases accessed to Environment
Now unused.

Change-Id: I21bce9218662d9cb8acc18e5c2ede6dfbb8962bb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-06 06:45:20 +00:00
Christian Kandeler
2fd91ad18e Fix qbs build
Change-Id: Ic2673f6f90610b1e58c9ec1fbf2f63522068cca8
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-06 05:32:18 +00:00
Tim Jenssen
ef6ab90d1c crashpad: add sha to sentry annotations
Change-Id: I7142da6d8fc61643512ff2ae6f581bf6795ab802
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-06 04:46:49 +00:00
Tim Jenssen
b619f24396 crashpad: change chrashpad dumps location to user directory on macOS
This is necessary to not pollute the signed and notarized .app
bundle.

Task-number: QDS-9113
Change-Id: I74e0bced5679faac94b27d2a31ea10a7949fb21f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-06 04:46:03 +00:00
Marcus Tillmanns
74f15c99ce Terminal: Fix Ctrl+[A-Z] and '|'
Change-Id: Id245a015d6092236c20634c47af682bcf073d982
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-03 20:00:02 +00:00
Marcus Tillmanns
7fc674b566 Terminal: Fix "nano" titlebar
QTextLayout ignores trailing spaces, and does not draw their
background color. Converting them to Nbsp fixes this.

Change-Id: I19a363bcb4792c613eb9c59f7caaa40fa631b937
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-03 19:59:30 +00:00
Marcus Tillmanns
af520667ca Terminal: Defer scrollback text calculation
In high load situations, the conversion of cells to std::u32string's can
become a bottleneck. To address this, the calculation is deferred until
it is needed.

Change-Id: I0cc3c941fa680d8b9ebc3a5cba13cdc5c2db50f9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-03 19:59:08 +00:00
Marcus Tillmanns
dc4ec494b3 Terminal: Fix mouse selection
Previously m_selection was not correctly ordered such that start < end.
This patch fixes that and also adds optional debug visualizations to aid
in debugging / validating the selection.

Change-Id: I9b0d2fcd917f39eeb5082bc374796fed91521c7c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-03 19:55:05 +00:00
Tim Jenssen
6445db8ca2 Revert "scripts: add ignore-codesign-paths feature"
This reverts commit cc4914ff83.

Reason for revert: did not work

Change-Id: Ib6e860f93a23bb599a4c6da98e23117498ff294a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-03 19:07:49 +00:00
Tim Jenssen
cc4914ff83 scripts: add ignore-codesign-paths feature
QtDesignStudio packages Qt into the dmg
which is already codesigned.

Change-Id: I8d0f0d6df1e8792e44ef93ab6f871e6eecad7183
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-03 18:21:54 +00:00
Tim Jenssen
3425b55352 qml2puppet: fix QtCreator branded builds
Task-number: QDS-9356
Change-Id: I6bb587a8a5c0d7d905725b1e145fcc9c11ac4994
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-03 18:19:51 +00:00
Mahmoud Badri
399cc372db QmlDesigner: Skip asset importer dialog when dropping an external asset
Fixes: QDS-9350
Change-Id: I7bef35350108580ef293160840a9e4174d1f6642
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-03 16:28:30 +00:00
Marcus Tillmanns
1d6c161124 Utils: Fix missing modeBase
Change-Id: I8ce9393ef97b83b9db8cde12cc8653e9072dad65
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-03 14:24:25 +00:00
Eike Ziller
89f98659ca Change filesystem locator filter to FilePath
Allows using the filesystem locator filter on remote systems.

Change-Id: I4753691cdc0ec8a0e598001371ff3cf6be44737c
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>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-03 14:15:29 +00:00
Jarek Kobus
6efecebb10 ILocatorFilter: Provide default implementation for accept()
Change-Id: Ide3c65ac78da60c9634b8f1c3009e947e8f1e2f3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-03 14:06:17 +00:00
Jarek Kobus
215f79f580 LocatorFilter classes: Use more linkForEditor
Limit the usage of ambiguous internalData.

Change-Id: Ice67884b9fb2ff303939cd5998c6e80453e82530
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-03 14:06:08 +00:00
hjk
34fd28327d CMake: Use callback-based environment iteration
Hides underlying data structure.

Task-number: QTCREATORBUG-28357
Change-Id: Ib0d7fb70afa820b1bd28d23e12b9379a6de6546b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-03 14:05:07 +00:00
Cristian Adam
6a41e33908 CMakePM: Use cleaned paths for CMake parameter values
FilePath::fromUserInput will "clean" the paths, which on Windows means
that \\ will be replaced by /.

This is how CMake treats the paths internally as CMake paths.

This fixes the %{buildDir} macro which will expand to \\ on Windows.
Which causes issues with qtcsettings.cmake.

This way the expanded value of CMAKE_PROJECT_INCLUDE_BEFORE is not
displayed as red on Windows in the "Current Configuration" settings
page.

Change-Id: Ic26bf437de41ff3fb1c1b98d304ae84512cb0f1a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-03 13:57:08 +00:00
David Schulz
9feef11b5d Copilot: robustify request logic
Change-Id: Ifa46bc05f0bab8e3c7fc40d855a35e940f0628da
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-03 13:34:40 +00:00
Fabian Kosmale
b80546c1d9 Docs: Adjust to QtQuick application wizard changes
The filename starts now with an upper-case M.
Amends fa2ea6fd97

Change-Id: Ia5055b0be1edc77aa5cab84329424241c4334a27
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-03-03 12:51:29 +00:00
Mahmoud Badri
26b2b01ab4 QmlDesigner: Cleanup includes in assetslibrarywidget
Change-Id: I224b16cf34698ecdfe0b72a9c1d87bb17a92e56a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-03 12:32:39 +00:00
Miikka Heikkinen
8e8cb6aa3d QmlDesigner: Fix shader asset icon in assets view
Fixes: QDS-9297
Change-Id: Ib81e1e12476b436dbb04984bf6f6567a88a44f63
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-03 12:02:33 +00:00
hjk
08bacd3f19 Avoid a few double lookups when expanding environment values
Change-Id: Ie84caee89a48d8006e6324c5a82901d01a5fac6c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-03 11:37:05 +00:00
Mats Honkamaa
288dc3f3fa Doc: Update snapping in 2D view docs
Snapping was done from the toolbar before, now you
use the context menu.

Task-number: QDS-9265
Change-Id: If7aeac74dd95c74b4a942c8dc69829e274a2c5da
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-03-03 11:28:18 +00:00
The Qt Project
67b8af1de1 Merge "Merge remote-tracking branch 'origin/9.0' into 10.0" into 10.0 2023-03-03 11:18:26 +00:00
Christian Kandeler
47d375bbb4 CPlusPlus: Support requires clause in parser
Change-Id: Ice6a7a287453516a1cfc296e2c9f16160b3ea130
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-03 11:10:54 +00:00
Eike Ziller
3be4cf7521 Merge remote-tracking branch 'origin/9.0' into 10.0
Conflicts:
	share/qtcreator/translations/qtcreator_zh_CN.ts

Change-Id: Iedd37c310b312223bd8a455479770e9359719a07
2023-03-03 11:56:49 +01:00
Friedemann Kleint
7214d79420 Start debugger dialog: Enable clear button for command line arguments
Change-Id: Ia8d1a9a39ad61df37fd18a81e18d7e3e2ccad674
Reviewed-by: hjk <hjk@qt.io>
2023-03-03 10:20:07 +00:00
Jarek Kobus
30760747a3 FileStreamer: Optimize transfer on the same device
Run just "cp" on device instead of transferring the content of the
source into local and sending it back again to remote.

Change-Id: I703ad1181d77d470ae145691979c34fc75b59a97
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-03-03 10:10:24 +00:00
Jarek Kobus
c1b1842c48 Utils: Introduce FileStreamerManager
To be used for FilePath::async[Copy/Read/Write]() methods.

Change-Id: Ie34e600f8d65eae10b41893e15685afe19ce2a46
Reviewed-by: hjk <hjk@qt.io>
2023-03-03 09:57:28 +00:00
Jarek Kobus
22b9826e22 Utils: Introduce FileStreamer
The class is responsible for asynchronous read / write
of file contents. The file may be local or remote.
It's also able to do an asynchronous copy of files
between different devices.

Change-Id: I65e4325b6b7f98bfc17286c9a72b0018db472a16
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-03-03 08:49:31 +00:00
Marcus Tillmanns
240686b7ea Terminal: Start with disabled copy action
The copy action should only be enabled once a selection exists.
In the beginning no selection can exist, therefore the copy action
is disabled.

Previously this lead to a bug where only the second "Enter" keypress
was passed on to the terminal.

Change-Id: Iac01c273f70a50a4fc131bd6a2bbb1507705b853
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-03 08:24:31 +00:00
Marcus Tillmanns
6d70a27965 UnixPtyProcess: Fix read loop
Previously a value of "-1" from ::read would result in an endless loop.
This could easily be reproduced by "cat /dev/random | base64"

The buffer usage was also much more complicated than needed.
A static readBuffer now keeps the amount of allocations lower.

Change-Id: I5bb1a3c84b107ff8c2d3801bca8c6ae9a709cdb3
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-03 08:12:38 +00:00