Commit Graph

90796 Commits

Author SHA1 Message Date
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
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
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
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
Alessandro Portale
5b74c918e0 Themes: Fix Notification_* tokens that were swapped
My copy paste skills failed me.

Amends: 7ea99e184d

Task-number: QTCREATORBUG-31829
Change-Id: I68b260f79a1a232b5904de4fed5b840f6996a849
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
v15.0.0-beta1
2024-10-16 16:12:41 +00:00
Andrii Semkiv
8f3a0ebabb Debugger: enable disable breakpoint by clicking
Disabled breakpoints can be enabled by just clicking on them.
Clicking an enabled breakpoint deletes it (just as before).

Change-Id: I651fb0f333d717db245ae0d06fcdfa6888cf8e7d
Reviewed-by: hjk <hjk@qt.io>
2024-10-16 14:53:43 +00:00
Eike Ziller
80fe40a5e7 Revert "Plugins: Improve display names of plugins"
This reverts commit 8e5fab2d17.

Reason for revert: We still have too many places where the name is
used as an "id", like the wizards, which are now mostly disabled.
Sorting that out will take time.

Change-Id: Ic76baa7f8f272d5f4fac00cbc08e9ffec337773f
Reviewed-by: hjk <hjk@qt.io>
2024-10-16 14:38:23 +00:00
Christian Kandeler
dd5a1021ff CppEditor: Fix quickfix tests
Amends 8e5fab2d17.

Change-Id: I577e1879f18bedac5bf4741ff6e9ac3244fbd21a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-10-16 13:39:54 +00:00
Leena Miettinen
fcbff686a0 Changelog: Move a QML fix from C++ to QML
Change-Id: Ic398656c246341c511c3b002e3a06cb06bbe3734
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-10-16 13:12:20 +00:00
Eike Ziller
337a840d98 Merge remote-tracking branch 'origin/15.0'
Conflicts:
	src/libs/utils/layoutbuilder.cpp
	src/plugins/lua/bindings/gui.cpp

Change-Id: Ifeb2c30f9d17a6093368e8ca5ce1f4b8d81cfc4f
2024-10-16 14:13:30 +02:00
Marcus Tillmanns
b7ea26d510 RemoteLinux: Fix filesystemaccess tests
Change-Id: Ib31ed5bb54b85b0524f35dfdd2a776b67777e422
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-10-16 11:52:24 +00:00
Alessandro Portale
7ea99e184d Theme: Add new variations notification color tokens
The color tokens

 - Notification_Alert
 - Notification_Success
 - Notification_Neutral
 - Notification_Danger

...each get variations:

 - default
 - muted
 - subtle

The existing usages of Notification_* are mapped to
Notification_*_Default

Fixes: QTCREATORBUG-31829
Change-Id: Id202e692c74ce30b32fb59c17717ecf6e174eb2a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-10-16 11:30:01 +00:00
David Schulz
c8eea5506e TextEditor: fix TextEditorWidget::replace early return check
Change-Id: Iaf1f6e4eb78c713a9ea91f0fa9829323b9190f8e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-10-16 10:41:17 +00:00
Artur Twardy
4197224556 Lua: Add spinner
Change-Id: Ief6b269979b6e10abfd2b55e79e82cf7e0d97556
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-10-16 10:38:57 +00:00
Alessandro Portale
8e5fab2d17 Plugins: Improve display names of plugins
Fixes: QTCREATORBUG-31761
Change-Id: I62b33248c77bf35907d66a38ac18eb0ecf1f323d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-10-16 10:28:30 +00:00