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>
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>
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>
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>
The decision should be made closer to the UI triggering it.
Change-Id: Iaed8154dd7daffaae128ec825c6ed1ae7c4c32f5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
It fixes that issue on Linux but not on Mac.
Task-number: QTCREATORBUG-22789
Change-Id: Ibe3223e29f683483761115907522df28fa91ae1c
Reviewed-by: hjk <hjk@qt.io>
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>
Extisting plugins/wizards might depend on the original name.
Change-Id: Ic0626e05a9fd9f045d1a105a144ebe2a906d2eb0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
The sha nowadays has an additional trailing blank.
Change-Id: Idad6d0219fa1a3b23ccaf7d874b8c557ec4bf639
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
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>
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>