Commit Graph

80147 Commits

Author SHA1 Message Date
Jarek Kobus
2baf59b87a Meson: Use QtConcurrent invocation for async run
Change-Id: I2b222a481a32edbea38d1784629b0a888c8b0c57
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 09:17:01 +00:00
Jarek Kobus
ce037d09a2 VcsBase: Use QtConcurrent invocation for async run
Change-Id: Ia4e461c1a2e71d4c959f582e9ed464d4713b672a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-09 08:40:57 +00:00
Jarek Kobus
cae18f8872 QmlJSSemanticHighlighter: Use QPromise for async calls
Change-Id: Ic5d70d766cc25214a3c4a54251d514b678aa9aff
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-09 08:32:10 +00:00
Jarek Kobus
cca7c2a12b AsyncTask: add asyncRun() wrappers around QtConcurrent::run()
These wrappers accept the additional QThread::Priority argument.

Change-Id: I05a692d13bb539622146e3267f8a918431af06ac
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-09 08:32:03 +00:00
Thomas Hartmann
c3e5f3e83c QmlDesigner: Use StudioQuickWidget in assets library
The event filter has to be installed on the actual QQuickWidget.
Using registerPropertyMap instead of global context properties.

Task-number: QDS-9124
Change-Id: I9e0e59d4bdf312d98177b8da51761bca8073c9e5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-09 08:10:26 +00:00
Thomas Hartmann
fb685307f9 QmlDesigner: Use StudioQuickWidget in content library
The event filter has to be installed on the actual QQuickWidget.
Using registerPropertyMap instead of global context properties.

Task-number: QDS-9124
Change-Id: I148ecc6b489f6d72d80a345aa195f74676a92d51
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-09 08:10:12 +00:00
Eike Ziller
b619319b2b Fix vanishing search term from locator popup
When setting the locator to open as a centered popup, everything locator
is triggered, the search term is cleared.

Don't delete the popup when closing it. That keeps the input field alive,
and the text in it. We manage a singleton instance of it in
locatormanager.cpp/locatorWidget(), and it will eventually be delete
because it has a parent.

Change-Id: I237029bc2793f7394c5eb6ea7d658a4dd4a2c1cf
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-09 07:57:57 +00:00
Eike Ziller
b98fc12de9 Set focus to filter input when creating run configuration
Change-Id: I9a02abfa917a211ec0e88a7debaabbf26cc2c918
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-09 07:40:32 +00:00
Eike Ziller
556e7315f7 Build: Simplify ts_all* targets and add "ts_all_cleaned"
Instead of trying to update all files in a single lupdate call,
make the ts_all targets just depend on the individual language targets.
It is less efficient, but not used often, simpler to setup and since
lconvert cannot work on mutliple .ts files simultanously easier to
setup a ts_all_cleaned target.

Change-Id: I60718408a661f011d84f3f74645e2f8fd49a95d1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-09 07:40:03 +00:00
Orgad Shaneh
b54c1ec139 Debugger: Clear also global log when clearing the log
If the user wants to clear the log in order to read it only "from now
on", then the sensible way to do that is to clear the log, finish the
debugging session, then copy the output from the log pane.

But this flow did not work, because when the debugger is done, you no
longer have access to the live log window, only to the global window,
and this pane is not cleared, so all the logs are still there.

Change-Id: I89d8a5b8aab22c53e8c2eceac4c5482931cdd8b6
Reviewed-by: hjk <hjk@qt.io>
2023-03-09 06:37:08 +00:00
Sivert Krøvel
b9fb022389 McuSupport: Open QML file when starting new MCU project
Previously the editor opened the translation file when starting
a new project. It makes more sense to open up the main QML file.

Task-number: QTCREATORBUG-28790
Change-Id: If1f61d23e4863143cacf004246ca7813dd04a1ab
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-07 15:57:18 +00:00
Sivert Krøvel
0d809806d4 McuSupport: Update minimum CMake version in qmlproject template
The minimum CMake version was changed to 3.21.1 with Qul 2.3.
Updating the minimum CMake version for the qmlproject template
project, but keeping the old minimum for the template targeting
older versions of Qt for MCUs

Task-number: QTCREATORBUG-28825
Change-Id: Ia6cb43a47cee81b3b299f188d6008ebd0576daba
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-07 15:57:03 +00:00
hjk
5d21da74f9 Utils: More explicit host os use to make it stand out
Quite a few of the uses are actually wrong, but are better visible
now and therefore more likely to be fixed.

Change-Id: Ia51f7d6eb1b2d3a9c9f73d67dabacfd227c44b15
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-07 15:53:18 +00:00
Miikka Heikkinen
269738d7e5 QmlDesigner: Force QDS compatibility mode 3D import option
QDS requires 3D imports to use QDS compatibility mode to work correctly,
so we force designStudioWorkarounds option on in all imports we do and
hide the option from UI so user can't toggle it off.
Since designStudioWorkarounds supercedes expandValueComponents option,
we also hide that as setting it has no effect.

Fixes: QDS-9219
Change-Id: Id40a45338ea630228f59b111703eba661ebd357b
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-07 14:29:12 +00:00
Miikka Heikkinen
333ebb5bc2 QmlDesigner: Fix content library textures tooltip width
Width calculation didn't account for possible status text.

Change-Id: I58378a2dd185ea9ad47459ce107c1c227c2f6fd8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-07 14:24:47 +00:00
Eike Ziller
d686d241d2 Build: Avoid installation of huge static QmlDesignerCore library
It is not used as a public interface, just to share with tests. Do not
install it.

Fixes: QTCREATORBUG-28673
Change-Id: I669ffd468291b8150568d0193a33e5795d58f017
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-07 14:23:02 +00:00
Cristian Adam
d0fae7fa59 Terminal: Fix conpty process creation
When the Project's source directory would be used as a working directory
for the terminal, conpty would fail to start the shell.

Change-Id: I1050ec11c2bb46e17187431114a1319c86dd449c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-07 13:56:59 +00:00
Jarek Kobus
69fa8f3f3c FilePath: Integrate FileStreamerManager for async i-face
Change-Id: I3371471e3c23b86a62b5e4056b343941ab46e191
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-03-07 12:22:40 +00:00
Robert Löhning
0476212e68 SquishTests: Simplify readme file
Change-Id: I0e66960a3d681362addafcce3ca845019061d0fe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-07 11:55:11 +00:00
David Schulz
ae2690e4b1 Debugger: make default number of array elements configurable
Change-Id: Iad7b653d66f9f87d818f8cce612a82a5fc391b23
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-03-07 11:14:54 +00:00
Mats Honkamaa
7e26b106ba Doc: Update icons
Task-number: QDS-9349
Change-Id: I8c388ca6d4d5dc8db8c2211c83be5138d33adace
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-03-07 10:46:26 +00:00
Sivert Krøvel
7375e367b2 McuSupport: Remove status message
The status message notifying that the input.json used to generate
the project tree in an MCU qmlproject is not interesting to most
users, and it is shown several times if using modules. Removing
it gets rid of some clutter in the General Messages output.

QTCREATORBUG-28824

Change-Id: I8b97aeff7b872e52e260f035f7f48144a8caf167
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-07 10:25:21 +00:00
Mahmoud Badri
a77ae66ace QmlDesigner: Implement dragging an image to a material
Fixes: QDS-9269
Change-Id: Ia71d87773e6acce6659a30985d77d848feea0a89
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-07 10:16:35 +00:00
Thomas Hartmann
91e7efa5e0 QmlDesigner: Use StudioQuickWidget in item library
The event filter has to be installed on the actual QQuickWidget.
Using registerPropertyMap instead of global context properties.

Task-number: QDS-9124
Change-Id: I03c71dce228a7b8713bd1a5085541ed06c7ee0bd
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-07 10:09:14 +00:00
Miikka Heikkinen
c78c4817cd QmlDesigner: Fix asset drag to material browser
Drag now correctly accepts only assets that can be used as textures.

"selected_texture_changed" custom notification was used in two
semantically slightly different cases, both to indicate selected
texture had changed and that selection should change, which was little
confusing. Split the two cases to separate custom notifications to
clarify the situation and allow "select_texture" to be handled in
material browser even if it sent it. This fixes the issue of newly
added texture not getting selected after drag, because creation was
done by material browser view.

Similar issue was fixed with "selected_material_changed" as well.

Also fixed a couple of cases of drag not being properly ended.

Change-Id: Ie1cae01ef13b687d9e611ac1c91443688001fe49
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-03-07 09:30:08 +00:00
Christian Stenger
0f1f5435ea Terminal: Fix build before Qt6.4
Change-Id: Idc1138289516eb2cdeffc310cec4b9ba019d1b16
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-07 05:54:58 +00:00
Marcus Tillmanns
66094398fb Terminal: New Terminal opens project folder
Change-Id: I974a3c73363a810a18f9327d8682c2a56a42fee2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-06 22:55:59 +00:00
Marcus Tillmanns
f95f815e98 Terminal: Add support for Cursor shape and blink
Change-Id: I7f71578a714d375bcd4ef8ae431f4127cbc57a55
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-06 22:55:50 +00:00
Christian Kandeler
2ac2c5c07d Copilot: Fix warning
Change-Id: If2c9c8bf6c2af6eb712949ef200935b4d24cc69b
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-06 21:04:00 +00:00
Jarek Kobus
8660ee06db SdkPersistentSettings: Fix build - part 2
Amends c26db7a657

Change-Id: Idf934d4095f29ef413f59b211a292b48957d44b2
Reviewed-by: hjk <hjk@qt.io>
2023-03-06 17:45:49 +00:00
Christian Kandeler
dc1a3f8a8d Fix qbs build
Change-Id: I840fbce750ce354ec99dd2019dea924326319271
Reviewed-by: hjk <hjk@qt.io>
2023-03-06 16:54:15 +00:00
Jarek Kobus
c26db7a657 SdkPersistentSettings: Fix build
Amends bb4d9c92e7

Change-Id: If20b80f30d87b1be8f606cab402c5a220fa68d07
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-06 16:23:46 +00:00
hjk
e38b817fc0 ProjectExplorer: Split Session and ProjectManager files
Still a lot of cross-referencing in the implementations, currently
faciliated by a separate session_p.h that is meant to go away again.

Change-Id: I6e32a62e02f60e790e54637de5de945bfaca36f6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-06 15:41:36 +00:00
Marcus Tillmanns
098c76832a Terminal: Rewrite rendering
The rendering has been rewritten to use cached GlyphRuns instead
of text layouts. The VTerm specific code was moved into
TerminalSurface.

Change-Id: I10caa3db4ee932414987c9ddae2dcb777dc1f6e7
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-06 15:41:29 +00:00
David Schulz
eccdea6a43 Revert "Debugger: Fix write error on terminated GDB process"
This reverts commit 87c00b86db.

Reason for revert: Breaks shutting down the cdbengine and according to the diagram in debuggerplugin.cpp this is an expected transition.

Change-Id: I051ccd315dffcadf60892c33cd7c1f3523b2f8e0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-03-06 15:35:50 +00:00
Leena Miettinen
b8ddbde13b Doc: Add link to Qt Learning
Linking to the Getting Started with Qt Creator course directly
does not seem to work.

Change-Id: I4393749e9c66d66340d094c7cb7dc4f4847b8eba
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-06 14:49:16 +00:00
Christian Kandeler
c9ad7d6cee Update qbs submodule to HEAD of 2.0 branch
Change-Id: Ibc1100fd624e4ad51e5ae297cddd8e20f572b687
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-06 14:17:43 +00:00
Pranta Dastider
632027aa14 QmlDesigner: Update Tooltips for Layer Section
This patch update tooltip text for Layer section fields
in Property editor.

Fixes: QDS-9201
Change-Id: I179f6feba884f2bdc3cd85d7bd3bcbc982114d75
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-06 14:07:10 +00:00
Eike Ziller
18f2b177f7 Bump year in copyright template
Change-Id: I3c43752841bf14759a0ebdf8b82e7a27cb61fa7c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-06 14:00:14 +00:00
hjk
bb4d9c92e7 SdkTool: Fork utils/persistentsettings
And a few helper classes. This allows SdkTool being build
without Creator's Utils, and does not impose restrictions
on the development there.

Change-Id: Id15db9293f343ad2aeee5c09cc819d112ec144e4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-06 13:37:52 +00:00
Christian Kandeler
755d9769d8 CPlusPlus: Add support for coroutines
Also fix some concept-related bugs uncovered by the test case.

Change-Id: Ia67c971026bcd85d9cc252f46cd4f56c2865d432
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-06 13:20:04 +00:00
Eike Ziller
b7a42f5802 Bump version to 10.0.0-rc1
Change-Id: I3aee0fbdd05a3ebc438c4ff62a43dafb6856e7a7
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-06 13:14:30 +00:00
Jarek Kobus
dc8da57e64 tst_QtcProcess: Use snprintf instead of sprintf
This fixes the following warning:

warning: 'sprintf' is deprecated: This function is provided for
compatibility reasons only.  Due to security concerns inherent in
the design of sprintf(3), it is highly recommended that you use
snprintf(3) instead.

Change-Id: Ic8eac91b02cb60122f603506e083dbdf9eca8712
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-06 12:37:41 +00:00
Miikka Heikkinen
9a55bb0fd0 QmlDesigner: Take content library texture metadata file in use
Metadata file texture_bundle.json will be included with bundle icons,
and it contains details about the texture (format, dimensions, and size)
that are useful to know before downloading the texture.

Metadata is used to generate proper tooltip for non-downloaded textures
in content library.

Also removed default suffix from displayed filename in case metadata is
missing, as it was misleading.

Fixes: QDS-9230
Change-Id: Icbe0bbb7f1e663e0adc41d379231b7f41dc79e31
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-06 12:22:54 +00:00
Leena Miettinen
dedc3e81fa Doc: Describe connection sharing for Boot2Qt devices
- Some language fixes.
- Use {} instead of "" for \image alt text

Change-Id: I1772c7e98bf40d8ff828205dcf1fd8749d4434cb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-06 10:56:37 +00:00
Christian Stenger
2ca1a15ead AutoTest: Fix ordering of Qt results
Fixes placing of internal messages like Qt version
information or Qt Test version

Change-Id: I08330451684c2dccb5f260cf7a4751bba47e56a8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-03-06 10:25:05 +00:00
Tim Jenssen
eb16c66552 QmlDesigner: adjust content library paths in .app bundles
Change-Id: I7109b25097d061dbbbc8828273b5d0acfe94bf3c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-06 10:07:41 +00:00
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