Commit Graph

81484 Commits

Author SHA1 Message Date
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
Artem Sokolovskii
b4874b6ce5 DAP: Add thread list
Change-Id: Ide9305e246f4e0dbe687e37a96b20e99b197ea3f
Reviewed-by: hjk <hjk@qt.io>
2023-06-21 10:37:48 +00:00
Artem Sokolovskii
9ad37a3c43 DAP: Add stepIn and stepOut and stepOver
Change-Id: I7d2bb573c4fc359a4d07b4cff8867a47f9691392
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-21 10:37:20 +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
The Qt Project
d61f53e3c1 Merge "Merge remote-tracking branch 'origin/11.0'" 2023-06-21 08:01:29 +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
f84d75402a Core: Fix compile
Amends 3e074a52c1.

Change-Id: I229a6db53d973168150f063edb7417117ed0dcee
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-20 11:49:20 +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
Eike Ziller
0f9b118776 Merge remote-tracking branch 'origin/11.0'
Change-Id: Ib798dc9922c01b7667388ca03d3a248610f73028
2023-06-20 10:36:06 +02: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
Jarek Kobus
3e074a52c1 PluginInstallWizard: Reuse TaskTree
Change-Id: I0e139627a9d4c3401bcf7727ef1e51b2de858b77
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-20 07:19:21 +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
Marcus Tillmanns
8aff1dfd85 Copilot: Add Tooltip to links
Change-Id: I24a74272e58658fa607779e73baa7ada56bf085e
Reviewed-by: hjk <hjk@qt.io>
2023-06-20 05:57:03 +00:00
David Schulz
2ad12b5b2c ClangTools: optimize generating diagnostic text marks
If we already know the document for a TextMark we are saving a
potentially expensive lookup.

Change-Id: Ib42b9ab5f36492a94846ef819c84c69a5aecf2e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-20 05:41:44 +00:00
David Schulz
c7b8ed520d Debugger: avoid recursive pointer type lookup
the std::nullptr_t gets reported as a pointer type with std::nullptr_t
as the target type. In order to avoid a recursive lookup check whether
the target type name is identical to the pointer type name.

Fixes: QTCREATORBUG-29291
Change-Id: I25373bf56b5538b9e5c14c34b9a5e501b5803fea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-19 17:18:18 +00:00
hjk
1193473f46 Copilot: Make some settings help text mouse-selectable
Change-Id: Ibb855bf94aeb5f83220da049b32e26400dacc0e8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-19 15:40:48 +00:00
Tim Jenssen
910e12a2a3 tests: remove manuel uisplit tests
They were using Quick Controls 1

Change-Id: Idc60e648d65445538defaa1c3f4e28d67581b902
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-06-19 15:37:57 +00:00
Marcus Tillmanns
7a210c41b4 Debugger: Add support for newest libcxx std::string
Fixes: QTCREATORBUG-29230
Change-Id: Ie3e0d0d56a1b07767ea702a03b2390b42a478376
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-19 12:32:14 +00:00
Leena Miettinen
0814677b4c Autotest: Fix UI text capitalization and punctuation
Change-Id: I7ca8adec90ad93c9724126b170dcea895266e38c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-19 12:31:08 +00:00
Leena Miettinen
b21f0c779b MCU: Fine-tune UI text
Change-Id: Ia03f10891a6bc6af96d8a6165dd6bbe989131e4f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-19 12:10:11 +00:00