Commit Graph

81362 Commits

Author SHA1 Message Date
David Schulz
9452c433a2 ClangTools: fix warning text mark color
Change-Id: I37e45990a3bcb23b16ccdeee5886c5d80f55cc43
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-23 05:45:49 +00:00
David Schulz
e2f957b184 ClangTools: lower priority of warning marks
In order to not overwrite errors reported by clangd lower the priority
of clang tool marks if they only contain a warning.

Change-Id: Ida1c39ab11aaeb0c70f674c53762fa2707bec766
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-23 04:52:23 +00:00
hjk
e419dbbb78 Meson: Emit parsing finished when done
Also, trigger build button re-check the hard way

This should not really be necessary, but the code paths on the
core side are still quite twisted. The extra notification here
is harmless in price, and removes the showstopper of not getting
a buildbutton.

Change-Id: If4bec892b4ebea533a95033629df60fa564985f3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-22 16:38:03 +00:00
Christian Kandeler
c3fd118c62 ProjectExplorer: Bring back auto-detection of ccache toolchains
... and other special toolchains not in PATH.
Amends cacc4aeede.

Change-Id: I300f7d719c9e101c24e3750dd7afd54dd338b58d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-06-22 12:37:43 +00:00
Leena Miettinen
596be71a89 Doc: Rewrite known issue about Ctrl+Shift+U on Linux
Change-Id: Ia14c89097b06f25649bc155c0c31734fd612b603
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-06-22 12:28:31 +00:00
Eike Ziller
3ff21fe3e1 Bump version to 11.0.0-rc1
Change-Id: I7b6fa9105858996a82584a417520d8e241c9c1e8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-22 12:04:56 +00:00
Marcus Tillmanns
f29b54d8a1 Autotest: Use FilePath::searchInDirectories
FilePath::searchInDirectories handles absolute paths on devices
better unlike Environment::searchInPath() which requires
a QString argument.

Previously the device:// part was dropped when trying to run
remote tests.

Fixes: QTCREATORBUG-29183
Change-Id: Idd04cdb8798d04abf88ab6cb4b68eb73d890a482
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-22 11:31:51 +00:00
hjk
67ec9bbce0 QmlProjectManager: Compile fix after Qt source compatibility break
error: operands to '?:' have different types 'QStringBuilder<const QString&, QString>' and 'QStringBuilder<QString, QString>'

Caused by af8f9a2a6e3dbc8.

Change-Id: Ia3dfca2cb5f1cb1855f25d178f63898eb6745c46
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-22 11:28:15 +00:00
hjk
369cba84bb ProjectExplorer: Robustify KitModel access
This is not a proper fix but prevents a crash and is otherwise
harmless.

Some tree traversal seems to be able to hit non-leaf KitNodes
that don't have m_kit set.

Change-Id: I4328069ba9b82bb66dfa2c1e0d148a717d594a4b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-22 09:04:05 +00:00
Jarek Kobus
c28f40fff1 Spinner: Add some docs
Change-Id: Ia8717ac93c92e03d27fc4b8c93a32b7785ccc3e9
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-22 08:22:09 +00:00
Jarek Kobus
cb91f85be0 TaskTree: Add documentation for custom tasks
Change-Id: I737390ed23bea7cd32df08623e95df6bb472642e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-22 08:15:33 +00:00
Eike Ziller
f909a21af1 Scripts: Make codesigning available more directly
Codesigning is done implicitly when using e.g. build.py
but sometimes doing it explicitly is convenient.
Add a main() to common.py and add arguments for triggering
codesigning:

python3 common.py codesign -s identity app_bundle

Change-Id: I8b0f766cfae0ea9d8173f331792a14964993d705
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-22 07:59:02 +00:00
hjk
6b5276220e Utils: Move bool aspect to second column in forms by default
Also let the user opt out if necessary.

Change-Id: Ia7483a3b3de1ce0c119e00594b722e38fa2d0bb2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-22 07:53:58 +00:00
hjk
fff258638f Copilot: Keep urls outside translatable strings
Change-Id: Idf81efda39a2dcaa4c20e698f109fda5555537be
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-22 07:18:22 +00:00
Jarek Kobus
434d677b3e TaskTree: Hide some parts of the API in protected/private sections
They are meant to be used from subclasses only.
For the private virtual TaskInterface::start() -
it's meant to be implemented from subclasses only,
but not to be called from them.

Change-Id: I526c40766c204c868b4b3c857a382b2b61bbadd0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-06-22 07:15:16 +00:00
hjk
1e7f68e296 Debugger: Fix Gdb CLI dumper output
Patch from hunk #2 in the report, hunk #1 was handled by 76260f8038.

Fixes: QTCREATORBUG-28659
Change-Id: I674b742869f8b834d039fbbfc599a3261d76b054
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-22 06:16:10 +00:00
Christian Stenger
80de04d21c Do not let Squish's DYLD_* paths interfere with QC
Add some crude hack to make QC work correctly when started from
Squish.
Squish explicitly sets DYLD_* paths but preserves the original
content in separate variables.
The modification is necessary from Squish's side to be able to
hook into QC, but these modifications interfere e.g. when
executing qmake from a different Qt version.
Use the preserved values and set them internally if needed to
get a corrected run environment.

Change-Id: I2c1c8aa79ad37463e0b974ec3ce18ff32d8e12a9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-21 13:14:05 +00:00
hjk
de6fe3a63f Docker: Add a test container setup for Fedora 37
Task-number: QTCREATORBUG-28659
Change-Id: Ib8306525de186c51d8bcb53d466a6ac6dffb1c16
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-21 12:00:56 +00:00
Jarek Kobus
664d409489 TaskTree: Rename TaskAction into SetupResult
It's only used as a return value from group's or task's
setup handler. It instructs the running task tree on
how to proceed further.

It addresses the 21th point in the bugreport below.

Task-number: QTCREATORBUG-28741
Change-Id: I25802c76b9e7bc044c6a38197935798d2da9ad02
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-06-21 10:24:10 +00:00
Jarek Kobus
52badc2fa6 TaskTree: Fix calling the right group end handler
Make non-Continue TaskAction returned by group's start
handler take precedence over group's workflow policy.

Call the group's done handler when group's setup returns
StopWithDone and the workflow policy is FinishAddAndError.

Call the group's error handler when group's setup returns
StopWithError and the workflow policy is FinishAddAndDone.

Add tests for these cases.

Change-Id: I98210a5d522daabc0986200e65b25986a8c0c440
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-21 10:24:03 +00:00
David Schulz
a41577f8bd Copilot: add shortcuts to cycle through suggestions
Change-Id: Id626c386f3b986ba0d1493387d542539b3d3005d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-21 10:01:58 +00:00
Alessandro Portale
c4619ca9de QtSupport: Make qmlcachegen/qmlsc/qmllint issues clickable
Various qml-related issues end up in the issues view since recently.
This change parses the output a bit more and makes the issues
"clickable".

Fixes: QTCREATORBUG-27762
Change-Id: Id6d2a0db8c49336125428488b75e96677f783342
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-21 09:33:52 +00:00
Christian Kandeler
6a9f9358c5 Issues pane: Prevent unneeded scroll bar due to rounding errors
Fixes: QTCREATORBUG-29210
Change-Id: Idb4dbbf4697b0ae25cdf8a1731b419b09e2b95da
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-21 09:03:42 +00:00
Leena Miettinen
500fb94011 Android: Add full stops to end of messages
Change-Id: I19df9219408030bbfe3f414d7d89f2c1abddbc06
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-21 08:50:59 +00:00
Yasser Grimes
af2542f6b2 McuSupport: Add workaround for CodeModel/SymanticsChecker race condition
Currently it can happen that some qml files will not be picked in the
CodeModel Snapshot when the Semantic Checks are performed resulting in
wrong errors in the code editor QTCREATORBUG-29269
Triggering QmlJS ResetModel fix the errors.

This change will make triggering the Reset automatic.

Fixes: QTCREATORBUG-29155
Fixes: QTCREATORBUG-26655
Change-Id: I8a7fb4d3bca336fde9029fe3e7fb54e9281c44f4
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-21 08:25:11 +00:00
Leena Miettinen
ff856ed030 Doc: Describe changes in enabling mixed C++/QML debugging
The check boxes are now combo boxes with several options.

Task-number: QTCREATORBUG-28996
Change-Id: Ib3ba3abb5c307b4fecffd267084bb2bd4057add9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-21 07:03:10 +00:00
Christian Stenger
933d9223c9 Solutions: Fix linking against spinner
Amends 2d5a825280.

Change-Id: Ic4eed23262738fd46fc2ae41a0f54d36d1fb273a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-21 06:03:19 +00:00
Jarek Kobus
c17c696c1a Spinner: Add an example
Change-Id: Ie10fcc1aa6e31c663296610391d5453792c46a6f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
v11.0.0-beta2
2023-06-20 18:48:28 +00:00
Jarek Kobus
2d5a825280 Solutions: Add a Spinner solution
It's a bit modified Utils::ProgressIndicator class,
used e.g. in tasking demo.

The Spinner is a QObject based class, which may be
attached to any widget instance.

Change-Id: I95fba52fe67e7eb7ee2ff3549847ce0ad97991d4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-20 18:48:24 +00:00
Eike Ziller
73c20f19bb Add more change log for 11.0
Change-Id: I4846177104436e2ffaccd2b4fc5fa6dfff946154
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-20 13:50:28 +00:00
Christian Stenger
2d650a624d AutoTest: Fix quoting for boost tests
Especially needed for templated boost tests to avoid
handling angle brackets as redirection.

Change-Id: If8c4ec87c542b6e5ba750d38e00fd6bcf0d3d952
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-20 13:43:12 +00:00
Christian Stenger
17c8a6bfe2 AutoTest: Fix special handling for gtest exit
Similar to what has been done for boost test - there is special
handling when the test applications process exits.
This was no more executed since moving over to use the task tree.

Change-Id: I982b7e4dfe6de4bbbe75c8d3ec0f62d0c3037f4a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-20 13:42:54 +00:00
Marcus Tillmanns
e0bdec5fcf Utils: Fix remote ensureWritableDirectory
Previously ensureWritableDirectory would return true even if the
directory existed but was not writable. This patch fixes that.

Change-Id: I3c97ecb22eae7d77bf1d44b13b22d81ba2529062
Reviewed-by: hjk <hjk@qt.io>
2023-06-20 13:01:24 +00:00
Alessandro Portale
2387e9e37a CMakeProjectManager: Deselect "Stage for installation" for Android/iOS
The "Stage for installation" option in the CMake build step, which is
introduced with Qt Creator 11, relies on the presence of an "install"
CMake target.

The build systems of Qt for Android and Qt for iOS do not create an
"install" CMake target. Therefore, a pre-selected "Stage for
installation" option in the CMake build step would cause a build
failure.

This change deselects the option if the kit's run device is of type
Android or iOS.

Fixes: QTCREATORBUG-29293
Change-Id: I9755dea1564fbc2696f8bdd416f637c5b28e3761
Reviewed-by: hjk <hjk@qt.io>
2023-06-20 12:26:04 +00:00
Christian Stenger
5010f041cb Axivion: Let issues count view appear nicer
Small overhaul of the layout and replace the former
text-only placeholder.

Change-Id: I0cee393f6aa7449b10b07f3daffa37f0b697d0af
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-20 11:41:43 +00:00
Christian Stenger
972aaccde1 Axivion: Display analysis version timestamp
..and finetune the layout of the issues count panel.

Change-Id: Id8efdb7047fadc999d3fd4c2736600d135d7b224
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-20 11:41:22 +00:00
Christian Stenger
ca8066251e QmlJS: Fix compile with Qt6.2
Change-Id: I3f386e1a51f821f55a0eb6df929ebdd7ee3fa9f7
Reviewed-by: hjk <hjk@qt.io>
2023-06-20 11:41:08 +00:00
Christian Stenger
b6961c38b6 AutoTest: Fix special handling for boost exit
...especially for the case where the test output is suppressed.

Change-Id: I7294af9e941d800b8aae65f7c2c6f898f2ac4e46
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-20 11:40:53 +00:00
Christian Stenger
32c864951c AutoTest: Fix some ui text punctuation
Change-Id: I9d028d6649d5093f599629e99cef0fdcbeb66db9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-20 11:40:43 +00:00
Marcus Tillmanns
9f5a0e3834 Utils: Fix CommandLine macro expansion
Moves macro expansion before assembling the command line
to correctly quote the resulting arguments on windows.

Change-Id: I62eded9376977ec6095e8648296cd2af53eb8e82
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-06-20 08:49:44 +00:00
Marcus Tillmanns
067c2096d4 Copilot: Make auth code selectable
Change-Id: I7dca66718e91bf048c98a9df910de0706f4286d7
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-20 08:43:48 +00:00
Marcus Tillmanns
3b6da21eec LanguageClient: Fix showMessageBox
ClientPrivate::showMessageBox did not create new buttons for
each possible action.

Clicking "Close" would result in a crash as the box had
WA_DeleteOnClose set and we tried to call box->clickedButton()
after exec().

Fixes: QTCREATORBUG-29253
Change-Id: Icc5fff99686fbef928b8ef14449de646ff773b17
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-20 08:43:38 +00:00
David Schulz
deaef7da33 ClangTools: make parsing diagnostics cancelable
Change-Id: Ia5b4bd6f5fbb9a81888b1eaf11b956617e4b740c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-20 08:26:14 +00:00
Eike Ziller
f97d9e51c0 CMake: Use QtC temporary dir for staging directory for local builds
For builds on the local host, use the Qt Creator temporary directory as
the default "staging" directory. This is a "nicer" directory on Windows
and is also cleared automatically (at Qt Creator shutdown), which is not
true for "/tmp".

Amends 4753b658bb

Change-Id: Ia6dc0d76fb2d97eb7ec931981df057ec83553e69
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-06-20 08:23:09 +00:00
The Qt Project
875bd3bf96 Merge "Merge remote-tracking branch 'origin/10.0' into 11.0" into 11.0 2023-06-20 08:22:21 +00:00
Christian Kandeler
7b8117ba2f TextEditor: Add dedicated text style for C++ concepts
Fixes: QTCREATORBUG-29286
Change-Id: Ifc89bad0b84dfdbcac0720fc59799edd461c00bb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-20 08:15:50 +00:00
Eike Ziller
3a57a1a291 Merge remote-tracking branch 'origin/10.0' into 11.0
Change-Id: I909bf27bd6d43eb74ae61b15a61467a4a7e0558e
2023-06-20 10:12:59 +02:00
hjk
125e345e2e Utils: Make a lot of labels mouse-selectable
Change-Id: I2c17cfeeab9fb9e15d15902ecd1f6c8921dc1464
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-20 08:01:50 +00:00
Eike Ziller
694dec5b0f Build/translations: Fix if build dir contains regex characters
We need to escape all regex relevant characters before using the build
directory as part of a regex.

Amends fc236d4534

Change-Id: Idfb9e5a1733e153943781888976de97aac4fb8cb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-06-20 06:54:10 +00:00
Marcus Tillmanns
6c34e1937c Utils: Fix operator escaping
Stops CommandLine / ProcessArgs from escaping
operators '&&', '||' and ';'.

Fixes: QTCREATORBUG-29280
Change-Id: Idf4f429fec0d96b67266761297eea851c283ac4c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-06-20 06:23:37 +00:00