Commit Graph

90845 Commits

Author SHA1 Message Date
Tim Jenssen
3c6fdcbba8 Merge remote-tracking branch 'origin/qds/dev'
Change-Id: If6812125747b4e090063536215f0d6b79dde27e4
2024-10-22 12:50:25 +02:00
David Schulz
0a7b608ca9 LSP: Add Diagnostic.CodeDescription to the protocol implementation
see https://microsoft.github.io/language-server-protocol/specifications/
lsp/3.17/specification/#codeDescription

Change-Id: Id2f92f1aea73928306be413afda636dcec978cf7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-10-22 09:07:51 +00:00
David Schulz
3fc9d4f862 ProjectExplorer: Allow to open external URLs from tasks
Change-Id: I33e94b8d3ddfae7323544c7d834a9ca8bb625478
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-10-22 09:07:45 +00:00
Marco Bubke
81f846ce1c QmlDesigner: Remove rewriter usage
The rewriter is only exported for internal purposes.

Change-Id: Idf2d2851cae53786dfde6bd1a28a5547d7c12b3e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-10-21 18:59:08 +00:00
David Schulz
0bc70fdac1 ProjectExplorer: Fix offset calculation of links inside tasks
Change-Id: Id17c5855c1d674045d778778868abbe872b427aa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-10-21 14:43:28 +00:00
David Schulz
5f8a31628b ProjectExplorer: add icon setter to task
Change-Id: Idbd9973a8a854fefe1259c8763bb414d9056e9d1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-10-21 14:43:23 +00:00
Miikka Heikkinen
52679bbc21 EffectComposer: Adjust "Set Custom Image" button positioning
Change-Id: I9da9cc267d7bf6a32c62e1b6e36797c0e4e6096a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-10-21 14:12:57 +00:00
Marco Bubke
bb047b04bd UnitTests: There is no data directory to copy
Change-Id: I3dbbcf94e03c21d1d075f726eee87cdd0cf41cbe
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-10-21 12:18:32 +00:00
Andrii Semkiv
1e4a744398 Debugger: tl::expected and Utils::Result dumpers
Added dumpers for `tl::expected` and `Utils::Result` utility classes.
Added a basic test.
Useless `enum` prefix from CDB enum types (e.g. `enum MyEnum`)
will be discarded in tests (credits to @hjk).

Note that the include path for the newly added test executable
is based on `__FILE__` macro value so it might easily break
if the sources are reorganized.
Also creating a test for `Utils::Result` is practically
impossible within current setup as it is not a header only class,
so the test binary must actually link against the correct version
of Utils library target.

Fixes: QTCREATORBUG-31795
Change-Id: I7f9ccb92d0c59333a2dca4ba928ac991f1e5238b
Reviewed-by: hjk <hjk@qt.io>
2024-10-18 15:27:43 +00:00
Eike Ziller
6f6754fbd3 Merge remote-tracking branch 'origin/15.0'
Change-Id: I104f49ed8ca58eda4d96de461be5a1a518dc4096
2024-10-18 14:22:34 +02:00
Toni Saario
0656e1d3ab Coin: Adjust repo cloning
Change-Id: I91cd5755208afcdf4a8d599fd2333249d6b50a11
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-10-18 12:07:13 +00:00
Christian Stenger
f8c4697543 Utils: Fix build before Qt6.6
Amends 5ced0731f0.

Change-Id: I9c6dd2dd137b67ff3a77163a7d6a517203cabf1d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-10-18 11:48:30 +00:00
Robert Löhning
efbf1cc8f8 SquishTests: Stabilize tst_APTW03
Enabling and disabling QML debugging in a qmake-based project causes
parsing of the project. Should issues be found during parsing, those
will overwrite previously found issues.

Wait for this parsing to finish so the expected issues found during
the following build will not be overwritten by a still ongoing parse.

Change-Id: I4a41059554c10fc194674b4a529fed8ea7bdf9a6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-10-18 11:36:23 +00:00
Robert Löhning
3dd8798d84 SquishTests: Fix waiting for project parsing
The run button isn't being disabled after changes to the project
anymore. Replaced this condition with waiting for progress bars
in the only place where that mattered.

Change-Id: Ib73c2ec67479af9c7d45d30dcfdd4ed81c792b9b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-10-18 11:35:26 +00:00
Eike Ziller
987dcd0805 Merge remote-tracking branch 'origin/15.0'
Change-Id: I3e3ad9c06f09bae1b5155afa439d68edd446ff89
2024-10-18 13:22:30 +02:00
Assam Boudjelthia
112e3f4cba Android: place host abis first in AVD creation wizard
Avoids less switching and it's more practical.

Change-Id: Icdc48cee1d3c5a47e054136596732c584bb58a7c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-10-18 11:10:21 +00:00
Assam Boudjelthia
bf7db9af43 Android: optionally add a default system image for an AVD
Find out the highest API level that Qt versions are using,
and add a Google Play Store Emulator image to the list of
packages to install only if there are missing essential
packages. This can practically work as an optional package
so that it be most suitable for users doing first time setup
but if the essential packages are all installed, then don't
invalidate the settings.

Fixes: QTCREATORBUG-24754
Task-number: QTCREATORBUG-31837
Change-Id: Ia1911637a846eb2963d69db6d33346dc04dc16b6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-10-18 11:09:55 +00:00
hjk
99a4184761 ProjectExplorer: Expose less direct use of activeTarget etc
The decision should be made closer to the UI triggering it.

Change-Id: Iaed8154dd7daffaae128ec825c6ed1ae7c4c32f5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-10-18 10:53:54 +00:00
Christian Kandeler
eccd569562 Update qbs submodule to HEAD of 2.5 branch
Change-Id: Idd454a61ca3bd0de771f8c3ec678b3d8402c0cce
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-10-18 10:28:03 +00:00
Jarek Kobus
4632b86d45 Android: Hide some AvdDialog functions in private section
Change-Id: Ie79a20f9169cf04dceb00ffa6912f425e1d05f33
Reviewed-by: hjk <hjk@qt.io>
2024-10-18 10:20:31 +00:00
Christian Stenger
985ad0ecd9 QmlJSEditor: Fix running QML/JS checks
For non-CMake based projects with enabled qmlls the checks
just do nothing as the qmllint target does not get created
elsewhere and an early return prevents the fallback in such
case.
Limit the usage of qmllint to cmake based projects to be able
to use the fallback for other build systems.
Regression introduced with 1b57e95c14.

Change-Id: Ie22765aecea2816560488d21b2d355ba96ff3589
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-10-18 10:07:14 +00:00
Miikka Heikkinen
84ca365985 EffectComposer: Allow user to choose custom preview image
The current preview image selection and any custom image path is stored
in the .qep file on effect save. When a custom image outside of project
is chosen, the image is imported into the project into the default
image assets folder.

Fixes: QDS-13438
Change-Id: If15049612bbca9a744a383c49716cb3648a52af3
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-10-18 09:57:09 +00:00
Marcus Tillmanns
e3209d3b60 Wizards: Simplify checking for plugins
Change-Id: Ifc63d075462562a2efef5208e37458a16ac640ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-10-18 09:43:16 +00:00
Marcus Tillmanns
506ef4d21f Utils: Add MarkdownBrowser to Layouting
And bind it to Lua.

Change-Id: I9841a2f7ee5dd5b89f8c19231f9e116b71ae355d
Reviewed-by: Artur Twardy <atw@spyro-soft.com>
Reviewed-by: hjk <hjk@qt.io>
2024-10-18 08:59:02 +00:00
Ali Kianian
5285ff2bc9 EffectComposer: Use default shaders if they don't exist in QEP file
* If a shader does not exist in QEP file, default shader will be used
* If a user clears the shader code, an empty array would be inserted
into the QEP file as the shader. This prevents using default shaders
when the user clears the code deliberately.
* QQEM effect files are not supported
* `tool` property is added to the root of QEP

Fixes: QDS-13857
Change-Id: I85bf6cdd9fe318afbc4c2e943b2d4faaccedbdeb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-10-18 08:13:22 +00:00
Alessandro Portale
669cfaa04b Themes: Tweak a few colors of the new themes
This changes the highlight, current line numbers and text selectin
background.

Fixes: QTCREATORBUG-31853
Change-Id: I097fa899b4303984c277de94cf0b9d9847dd1579
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-10-18 07:25:35 +00:00
Alessandro Portale
5ced0731f0 Themes: Make QPalette::Accent overridable by themes
QPalette::Accent was added in Qt 6, and missing in Qt Creator's support
for palette overriding. This change adds the respective theme roles and
lets the new themes set them with Token_Accent/_Subtle.

Change-Id: Ieefc8369b3f7050e5d96c1922ad753bcbbfd719e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-10-18 07:25:14 +00:00
Marcus Tillmanns
4fd0f1cf23 Wizards: Fix Kit selection for Qt 6.5 cmake projects
Fixes: QTCREATORBUG-31852
Change-Id: I60076435ced9febb92b29ccbb57c65602f9284e4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-10-18 07:22:21 +00:00
Marcus Tillmanns
3f7e8f43b7 Lua: Add test scripts
Change-Id: I03cb69289151f44db6836ad0be6d2091d9c853bc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-10-18 07:22:02 +00:00
Marcus Tillmanns
ed609dbb45 Utils: Add ScrollArea
Change-Id: I772f1d7dbc1c24d16ddcb54c3d66a89d9c238bf7
Reviewed-by: hjk <hjk@qt.io>
2024-10-18 07:11:08 +00:00
Marcus Tillmanns
e78a193513 Utils: Make remote image loading optional
Change-Id: Ib90c9b8bb54e0c56da322d4034894f2e34d802c9
Reviewed-by: hjk <hjk@qt.io>
2024-10-18 07:10:36 +00:00
hjk
7c23409e2a Qbs/Qmake: Centralize build step variable chooser creation
This is nothing individual steps should worry about anymore.

Similar to what RunConfiguration::createConfigurationWidget() did
already.

Change-Id: I5e29e7ceff5b6761952a0a123d9198a0d381cf4f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-10-18 06:45:09 +00:00
Marcus Tillmanns
3d5e7a9f66 Revert "Utils: Expand FilePaths per part, not as a full string"
This reverts commit e8855f97d5.

Reason for revert: Since no one remembers what potential side effects
there may have been, and the commit in general makes "expand" worse.

The problem with e8855f97d5 is when
"fileNameWithVariables" contains something like "%{ProjectDirectory}",
which expands to e.g. `docker://image/some/path`, we cannot rely on
"fromParts" to do the right thing. It will write everything into the
corresponding slot of a FilePath no matter what the content is, so the
"docker://" wil become part of the path, and not be recognized as the
scheme.

Change-Id: I72aeba0ed6c4a6c9a9e5ecb52b3e8e4043ae5669
Reviewed-by: hjk <hjk@qt.io>
2024-10-18 06:44:58 +00:00
hjk
9b6bbc181b ProjectExplorer: Display build configuration specific variables again
Continues d308b86847.

Task-number: QTCREATORBUG-31614
Change-Id: I408d96ccd6854b7bb62e13252c00ed3a29788b4c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-10-18 06:44:39 +00:00
Assam Boudjelthia
c522831cb3 Android: use colors for logcat
adb supports color formatting, so we can use that to get colored
log lines. At the same time use brief format to reduce the amount
of the text we receive. Also, to make the logs shorter get rid of
the repeating pid section.

Change-Id: I67a8f64504470322ab3e25a74fbc7111ece9222b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-10-17 16:35:02 +00:00
Jarek Kobus
90d4f84f5d Android: Don't show Android SDK Changes dialog with 0 packages
Fixes: QTCREATORBUG-31812
Change-Id: I5a9fdb1e0ae20360707f26a392d542b9a78122dc
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-10-17 14:15:51 +00:00
Jarek Kobus
678c60d0ab Android: Reorder items in Create new AVD dialog
Move "Device definition" down, as it's not really very important
setting. Rename it to "Skin definition" for clarity.

Change-Id: I3f3cdc55ad86eb64ad9dfe354360d1889488c91c
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-10-17 14:11:02 +00:00
Assam Boudjelthia
acb9bf4dc4 Android: add emulator to default list of pacakges
So users won't have to still install it manually.

Task-number: QTCREATORBUG-31837
Change-Id: Ib20ed496ca68fdb9b9bd043045ca4b827dedc850
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-10-17 14:07:50 +00:00
Alessandro Portale
61601e5590 Core: Register plugin id in addition to name to pluginFeatures
The new lower-case plugin id should be checked for in wizard.json files.
Add the id in addition to the name (aka "old id") into the
pluginFeatures.

Change-Id: I8db5c9ac2e4d56b507d056786fce68eeea0903f7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-10-17 13:54:02 +00:00
Ali Kianian
eea998da9a EffectComposer: Save composition's root shaders to the qep file
Shaders of the root are saved as `vertexCode` and `fragmentCode`
into the root of the qep file.

Task-number: QDS-13852
Fixes: QDS-13832
Change-Id: I71ff4d21400d01be999463d1ac5da13eb70c5f69
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-10-17 13:51:05 +00:00
Jarek Kobus
e7759968a9 TaskTree: Add withAccept() decorator
It's similar to withCancel(). Prolongs the task tree execution
until the accept signal is emitted. Triggering the accept signal
finishes the task tree successfully.

Add tests for withCancel() and withAccept().

This addresses the 39th point in the jira ticket below.

Task-number: QTCREATORBUG-28741
Change-Id: I9c3a38290a546aac338e259189fb46aecbb22942
Reviewed-by: hjk <hjk@qt.io>
2024-10-17 12:26:49 +00:00
Jarek Kobus
9bb79d088a TaskTree: Simplify withCancel() implementation
Don't use nested group, use conjunction instead.

Change-Id: Ifd4a6d89d17b3fc6d90f8dff60e2f997759ed5a5
Reviewed-by: hjk <hjk@qt.io>
2024-10-17 12:26:29 +00:00
Artem Sokolovskii
43cc297cc6 Debugger: Fix not hitting some breakpoints in multithreading lldb
It fixes that issue on Linux but not on Mac.

Task-number: QTCREATORBUG-22789
Change-Id: Ibe3223e29f683483761115907522df28fa91ae1c
Reviewed-by: hjk <hjk@qt.io>
2024-10-17 12:24:38 +00:00
Assam Boudjelthia
f021fb74eb Android: use runner scripts to run tests
Currently Qt Creator's Qt Test plugin doesn't support running tests
on Android. The autotest plugin expects to use the BuildTargetInfo's
targetFilePath to run the test, this doesn't work for Android, since
it needs special packaging, deployment and use of androidtestrunner
tool.

From Qt 6.9 with a905d26f14da1cf86b8490331c0cc41c2a45b283, Qt for
Android uses helper scripts to run apps and tests directly from terminal
allowing to mimic the behavior of running the Qt app/test on the host,
while it takes care of the behind the scenes.

Under the autotest plugin, if the kit's device type is Android, try to
run those scripts which allows running tests without explicitly adding
logic to handle androidtestrunner which can be a more involved task.

This expects only one device/emulator to be connected or running during
the test run, as it doesn't have all the facilities to start or choose
a test device.

Task-number: QTBUG-129889
Change-Id: I96fc69843dbbe6fbc6f5a2040e435e33537cb256
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-10-17 12:09:55 +00:00
Leena Miettinen
cdb92f101e Doc: Update info on creating Qt Quick Application and UI Prototypes
Task-number: QTCREATORBUG-31510
Change-Id: I3aff33a77a824d0a689e07800a42c3c715914061
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-10-17 09:33:16 +00:00
Alessandro Portale
4ea7cb35f1 Plugins: Restore more original plugin names
Extisting plugins/wizards might depend on the original name.

Change-Id: Ic0626e05a9fd9f045d1a105a144ebe2a906d2eb0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-10-17 09:21:31 +00:00
Leena Miettinen
17a578bfd6 Doc: Describe changing compiler explorer URL
Task-number: QTCREATORBUG-31510
Change-Id: I8cd6277ec101cc750998f3ec66808d6e44da2c5e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-10-17 07:25:52 +00:00
The Qt Project
53698ca3e1 Merge "Merge remote-tracking branch 'origin/15.0'" 2024-10-17 07:16:26 +00:00
Christian Stenger
43d9420aff SquishTests: Exclude added wizard template
Change-Id: Ic523e10f2cac908ba3fda0757ecaf94b22a61ebd
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-10-17 04:19:53 +00:00
Christian Stenger
f81b31ed7e SquishTests: Adapt to changed display
The sha nowadays has an additional trailing blank.

Change-Id: Idad6d0219fa1a3b23ccaf7d874b8c557ec4bf639
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-10-17 04:19:39 +00:00