Commit Graph

74460 Commits

Author SHA1 Message Date
hjk
f507597651 Boot2Qt: Fix crash when manually rebooting
Fixes: QTCREATORBUG-27879
Change-Id: Id88c8246418217dd7fd75cc0fc436cb9e714d744
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-22 13:26:24 +00:00
Thomas Hartmann
63200ff771 QmlDesigner: Prefer autodected kits and use replacment kits only as fallback
In QDS we want to priotize the kits we provide as part of the installation.

Change-Id: I282166bce811b6777088cd0dcde31dd8da785e2b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-07-22 09:32:15 +00:00
Eike Ziller
20e241737e Fix regression with permissions when running app locally
Amends 3efa0f3961

The code path for running locally in some cases modifies the environment
(to support SUDO_ASKPASS), or the command (to support privacy settings
on macOS), but this was overwritten again after the above change.

This lead to e.g. the Qt camera example just crashing on macOS, instead
of the OS asking the user for permission to use the camera & microphone.

Change-Id: I41192bac736e4b07eb3530b37e35ad02a79e20a5
Reviewed-by: hjk <hjk@qt.io>
2022-07-22 09:30:16 +00:00
Mats Honkamaa
87212ba639 Doc: Update Loader3D documentation
Task-number: QDS-6972
Change-Id: I61259f4baef7f7607ab7d1dd9c8124e5ae3274c4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-07-22 07:42:17 +00:00
Thomas Hartmann
89488d1cf1 QmlDesigner: Further reduce the direct dependecy on GradientLine
Change-Id: I1c7d9b87f2b2c16393bd672fe80356aca8b6e2d3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-07-21 10:17:43 +00:00
Thomas Hartmann
33a7de0c88 QmlDesigner: Remove usage of gradientLine in ColorEditor
Using the model instead.
We still have to get rid of gradientLine.currentColor.

Change-Id: I9c7a9e6852e70525a6abddfbd874b6a7cc4d7691
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-07-21 10:17:37 +00:00
Thomas Hartmann
ba6f85f4a7 QmlDesigner: Move GradientModel to ColorEditorPopup
The model is used to handle state and to render the preview in the color
editor. Therefore we need the model outside of the GradientLine.

Change-Id: Ia8c171d0cba6b944a8ac8b557d2f7be4e813b342
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-07-21 10:17:25 +00:00
Thomas Hartmann
1e628d9806 QmlDesigner: Split ColorEditor in ColorEditor and ColorEditorPopup
Ideally the popup is only created on demand. This is the first step into
this direction.

Change-Id: I085ee645f9d35aedd9fd4b61b7749a649b06850f
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-07-21 10:17:16 +00:00
hjk
a38dad883f Qnx: Pass SDP environment to gdb
Change-Id: I96323671176112c3295aa5ecddaf538ea645e92a
(cherry picked from commit a793fe6479)
Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
2022-07-21 07:17:25 +00:00
Thomas Hartmann
f80099b9fd StudioWelcome: Replace qDebug with qWarning
This is a warning.

Change-Id: Ife860f058c719d2245fb2cf7babf34640907bbea
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-21 06:32:14 +00:00
Thomas Hartmann
f4734e4e2b StudioWelcome: Do not deactivate welcomepage
This leads to crashes and is not necessary.

Change-Id: If7450aeb5c9fc8192ba79d0e1b28c76a0edbccac
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-20 17:56:05 +00:00
Oswald Buddenhagen
9841a10f35 GccToolChain: whitelist all -f* and -O* gcc options
there are way too many -f* options to catch all relevant ones.
my particular case was the linux kernel, for which passing
-mcmodel=kernel but not -fno-PIE caused a gcc error.
if any particular option causes trouble, it should be blacklisted
instead.

also handle -O* while at it; -Og comes to mind as a relevant one.

this follows 3b79fafb3 in spirit.

Change-Id: I5de56082b695205409a8e82de2cab0618e2806a8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-20 12:26:48 +00:00
Ivan Komissarov
6fe15c58c9 Update qbs submodule to HEAD of 1.23 branch
Change-Id: Idfc946ef010d843c39da194dffb18333a2dece4e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-20 12:07:25 +00:00
Thomas Hartmann
56b14c9d18 QmlDesigner: Implement support for SignalDeclarationProperty
This allows implementing a signal with a signature.
e.g. signal mySignal(int i)

Task-number: QDS-7319
Change-Id: I23cb000a218d709218322e7f31c86076d3ad949b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-20 11:01:32 +00:00
Eike Ziller
217c66cca8 Bump version to 8.0.1
Change-Id: Iba33ee57cfc650d9a3e741e936b5ce14a4025b6e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-20 10:35:59 +00:00
Thomas Hartmann
e1b0ba2473 QmlProject: Disable or hide qmlproject related actions
Generate CMake Build files is only relevant for .qmlprojects
and should only be enabled for those.

Export as latest Project Format is only relevant for QDS and should be
hidden in Qt Creator.

Task-number: QTCREATORBUG-27935
Change-Id: Iac6ca6927443a92dfb501f76c855fd641aaf10da
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-20 09:50:15 +00:00
Thomas Hartmann
2984934af9 QmlDesigner: Fix warnings
Change-Id: I5e8774223d124f594fc93d83cac1ac37a8bc34e9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2022-07-20 08:02:53 +00:00
Thomas Hartmann
fa29dcb1cd QmlDesigner: Ignore excpetion in special corner case
If users do a ".." import the type name was "...XYZ".
This could be considered technical correct, but is really not
what we want to do in this case. The type is associated with
a QML file anyway in this case.

Change-Id: Icaac5cb237f4ae2a98f6458f119047cbdc87a64b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-19 17:38:45 +00:00
Thomas Hartmann
8ff3c0ac2b QmlDesigner: Ignore Behaviors when sending items to puppet
Change-Id: I86b787ce2502622a43542f60046880f53c2c2698
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-19 17:38:33 +00:00
Jarek Kobus
a91ff34836 ClangdFollowSymbol: Don't leak ClangdFollowSymbol::Private
Change-Id: Ic8486d832084ae700322f0696d7b7321f0daf35f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-07-19 09:05:02 +00:00
Christian Kandeler
5c341854e0 ClangCodeModel: Fix callback handling when following symbols
Make sure emitDone() is atomic with running the callback, so in case the
latter starts an event loop of its own, we won't be overtaken by
incoming signals, deleting the object from under us.

Task-number: QTCREATORBUG-27910
Change-Id: I586d7609974662bf391b12041f416aaa2a973ecb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v8.0.0
2022-07-19 07:44:18 +00:00
Cristian Adam
b2407dbde5 CMakePM: Update conan.cmake to version 0.18.1
This is the latest released version at this moment in time.
It has support for Visual C++ 2022 detection.

Fixes: QTCREATORBUG-27814
Change-Id: Ib4fa288ced1271e1964b2ae0f7d6a6c5e403cf53
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-18 17:16:55 +00:00
Marcus Tillmanns
07cb8876db deviceshell: Fix racecondition and long running tests
When writing to stdout and stderr from two processes, their output could become
interleaved. To work around that, we write stdout and stderr to different files
and later combine them together in the shell script.

Since tst_deviceshell tests could run for a long time if /usr folder
is too big, added a check that first tests the runtime once.

Since we currently only support linux containers, limit the tests to
only run if the container platform is linux as well.

Change-Id: I4b313596cdf9acc839d54d7cc77c66fd53ac23bf
Reviewed-by: hjk <hjk@qt.io>
2022-07-18 08:06:06 +00:00
Cristian Adam
825a3a5e7e GitHub Actions: Update MSVC runner to windows-latest
Also change to MSVC 2022, which is the only MSVC compiler present
on the windows-latest runner.

MSVC 2022 is backwards compatible with MSVC 2019 and should work
fine with our Qt 6.3.1 MSVC 2019 package.

Change-Id: Id9967de33d2fea03f86243f8d54d369095918cfe
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-18 07:50:35 +00:00
Eike Ziller
4c2306798d COIN: Include QtWebEngine in PRECHECK
Though we don't want to ship packages with it, it should still check
compilation.

Change-Id: I2ca018a564cf8164deb6d8ebc3e428c6969991cf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-07-15 11:06:50 +00:00
Leena Miettinen
ff476cd87c Doc: Describe filtering Clang Tidy and Clazy checks
Task-number: QTCREATORBUG-27560
Change-Id: Iafd13201227b026d47f38aecb096c742e18552ca
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-15 06:53:35 +00:00
Leena Miettinen
48ebab7c58 Doc: Fix links in the Glossary topic
- "Target Platforms" has been replaced with separate topics
  for "Embedded Platforms" and "Mobile Platforms"
- Linking within the Glossary did not make sense because
  the whole page fits on the screen, so nothing happens when
  clicking the links

Task-number: QTCREATORBUG-27560
Change-Id: I55fe0b98685f67aab7ad0c9a00d28ac744235a9a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-15 06:49:29 +00:00
Leena Miettinen
cc2a79fb2e Doc: Fix reference to "Locals and Expressions" view
They are now two separate views.

Task-number: QTCREATORBUG-27560
Change-Id: Iab659bd915c213d11db08b3a2b8749ebdbc5e70c
Reviewed-by: hjk <hjk@qt.io>
2022-07-14 13:52:57 +00:00
Leena Miettinen
1e0cd24020 Doc: Update how-tos
- Fix menu paths to preferences
- Refer to existing screenshots of Preference pages
- Add information on setting preferences for
  automatically inserting matching characters
- Update the Completion preferences screenshot to show all options

Task-number: QTCREATORBUG-27560
Change-Id: Ib820c9bd19dc71ce109a4a59d40d6f276eb001ac
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 13:20:03 +00:00
Jarek Kobus
e6001ae2a0 AppOutputPane: Update buttons after stop was initiated
Otherwise it's possible to quicky press the stop button
again before the process actually finishes and this leads
to inconsistent state transition, resulting in assert
being triggered.

Change-Id: I4618a00cb9cea666992bc9ee6b60b3b3a0d9a8b9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-07-14 13:12:56 +00:00
hjk
3007b990e5 Debugger: Load dumpers from the device that runs gdb
... not from the device of the inferior.

Amends 12bc192422.

Change-Id: Ief34d1765d48e87a9098522bafb4b419a857c42e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 12:41:10 +00:00
Leena Miettinen
4ff4d2b6e9 Doc: Fix case in folder name in \quotefromfile command
When building docs on Linux, the folder and file were not
found.

Task-number: QTCREATORBUG-27560
Change-Id: I767703c66edf73221037bd17692d3f469319522d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 12:33:35 +00:00
Cristian Adam
7b0664f4e4 GitHub Actions: Update the docker alpine image used for tests
Also increase timeout to 300s.

Currently only the Linux runner is running the docker test,
and building on Linux is usually the fastest. Should not
affect the overall job time.

Change-Id: Ie7aa72da1ffac987ef732ad0fb8076d473d00185
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-14 12:19:24 +00:00
Eike Ziller
4adf6c833d Android: Don't show message boxes in non-GUI thread
Delay them to the GUI thread.

Task-number: QTCREATORBUG-27369
Change-Id: I2879de69ec1756ad55d3ae3aba8e233138bf3ed1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-14 10:45:41 +00:00
Cristian Adam
5088781693 GitHub Actions: Use software OpenGL driver for tests on Linux
As done for the Windows configuration. macOS comes automagically with
a software renderer.

Change-Id: Ifa64fc80f9ce69b87fb589675e794ac3b537cc48
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 08:54:37 +00:00
Cristian Adam
9c09ade2ed GitHub Actions: Use software OpenGL driver for tests on Windows
Since some tests are failing due to missing OpenGL context, I assume
the GitHub Actions Windows runners do not have OpenGL drivers.

Change-Id: I7951f0906d37bc1d513e77540fdd379a71cbed60
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 08:52:36 +00:00
Leena Miettinen
397ba273cb Doc: Update screenshots for iOS development
Task-number: QTCREATORBUG-27560
Change-Id: Ic5506bb60c2ae268dab09e52bb691e46a66dfa2e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-14 08:23:12 +00:00
Thomas Hartmann
f98ed790a1 QmlDesigner: Start to Use NodeMetaInfo in ReadingContext
We keep the old code path for now and throw an exception
if there is a divergence. The old code path is supposed
to be removed before the 3.6 release.

Change-Id: Id5458cdb452341295c5901caf706d224e57837b0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2022-07-14 07:02:52 +00:00
Thomas Hartmann
aeea22257c QmlDesigner: Add support for Behaviours
A Behavior will be added as a normal ModelNode to the default
property, but we store the property name in behaviorPropertyName.

The value of behaviorPropertyName cannot be changed after the
ModelNode was created, since I do not see any use case and it keeps
things simple.

Change-Id: I69ba1d4d706432cfbbd35b001238f623e6e0b4fd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-07-13 15:33:07 +00:00
Cristian Adam
c505d6a72e ClangTools: Use CtrlC Stub for clang tools on Windows
We got a report that using a clang-tidy would launch llvm-tokenizer,
which would not close when clang-tidy closes.

This resulted in zombie processes which would significantly
affect performance.

Change-Id: I1952be668b6352970cdb70c7fa622df77c2d175e
Reviewed-by: hjk <hjk@qt.io>
2022-07-13 14:47:36 +00:00
Leena Miettinen
86c6d1d09d Doc: Describe new way to access global settings
From project-level To-Do and Clang Tools settings.

Task-number: QTCREATORBUG-27560
Change-Id: If91dfe81a87af3de3f6b52c160b8b1df4789c20b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-13 13:41:07 +00:00
Thomas Hartmann
3cba432750 QmlDesigner: Track MaterialBrowser usage
Change-Id: Idc70434ffaa633353e87b373660df03863db8d95
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-13 13:11:31 +00:00
Thomas Hartmann
1627acd659 QmlDesigner: Track MaterialEditor usage
Change-Id: Ie8daf34bf21d9b12711704be4fdea9b291307f02
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-13 12:42:38 +00:00
Eike Ziller
550a7ecc6e BuildConfiguration: Do not update environment cache in constructor
Updating the environment cache calls into the virtual function
BuildConfiguration::addToEnvironment (via BC::baseEnvironment()), and
that is not working in the constructor yet.

Move the call to updateCacheAndEmitEnvironmentChanged to
BC::doInitialize.

This fixes the build environment for the first CMake run on a newly
created project. CMakeBuildConfiguration::addToEnvironment adds the PATH
to the Ninja installation from the online installer. If that is missing,
CMake will fail with a missing build tool, if Ninja isn't found anywhere
else.

Amends 65e043961e

Task-number: QTCREATORBUG-27495
Change-Id: I7c952db9029ab78e0aa9ea267444af163f5941ac
Reviewed-by: hjk <hjk@qt.io>
2022-07-13 12:32:03 +00:00
Thomas Hartmann
c92216aea5 QmlDesigner: Add QML files from assets_imports
Otherwise they do not show up in the project explorer and
more importantly we do not generate the proper cmakefiles.txt.

Task-number: QDS-7279
Change-Id: Ib6cbd839cee2ec5ded09e57d2097b75f1a1e68e9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-13 11:30:00 +00:00
Thomas Hartmann
e43e08d77d QmlDesigner: Add lookup for alised types in NodeMetaInfo
Aliased types like T.Button require a special code path.
Those lookups are only required for the rewriter and are not used
by application code, since we strip the alias qualification.

Change-Id: Ic74c352655e640b063bb01f03a699182af506de7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-07-13 09:52:03 +00:00
Leena Miettinen
ab10372b09 Doc: Update info on deploying to embedded Linux
- Describe the "Override deployment data from build system" option
- Remove docs for the obsolete "Check for free disk space" deployment
  step
- Move docs for the "Check for a configured device" deployment step to
  QNX topic because it does not appear for other types of devices
- Update screenshots

Task-number: QTCREATORBUG-27560
Change-Id: I3791b8e7021ba2a1e88c2c56d7eb38ef208a9967
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-07-13 08:43:56 +00:00
Leena Miettinen
fda487717f Doc: Update Bare Metal and MCU screenshots
Task-number: QTCREATORBUG-27560
Change-Id: I0848327874055f606b206ca81655c03b919516ae
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-13 07:26:22 +00:00
Leena Miettinen
d6cdce0de5 Doc: Update info about debugging
- Update screenshots
- Fix option names
- Show existing screenshots in more places (where they are
  discussed in text)

Task-number: QTCREATORBUG-27560
Change-Id: I16a45e5e05b8b50932431844e36851f693966201
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-07-13 07:26:07 +00:00
Leena Miettinen
7bb5ea287d Doc: Update screenshots
Task-number: QTCREATORBUG-27560
Change-Id: I6899b4a1206fe2f13ffad0bbd4f14a2bdeef7f82
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-07-13 07:25:50 +00:00