Commit Graph

68765 Commits

Author SHA1 Message Date
hjk
8d84ae37e9 Debugger: Fix some Qt dev deprecation warnings
Change-Id: I3a35b7d30b749a7139a54097aa73681a0b870e29
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-22 11:17:50 +00:00
Eike Ziller
6479785c20 Merge remote-tracking branch 'origin/11.0'
Change-Id: Icb3ed8a1aaf31e8201a61d04221bfcb23a78562a
2023-06-22 13:09:00 +02:00
Marco Bubke
dfe7789506 Googletest: Use add_qtc_library
add_qtc_library makes the code much more readable.

Change-Id: I60b397f3dc19de6911263c0818a25b41ab5a4209
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-06-22 10:19:57 +00:00
Marco Bubke
44565bc39b GoogleTest: Hard wire google tests
There were problems with older google test versions which were found
instead. Now the google test version is always the same and there cannot
be "strange" compile bugs.

Change-Id: Ib3dc74d1abbe369fb37a4ee5616011d8e3696c01
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-22 10:19:50 +00:00
Christian Kandeler
87861cf7ee Wizards: Format generated code according to current style
Needs ClangFormat to be enabled.

Task-number: QTCREATORBUG-25065
Change-Id: I127da0f9ac55af7f19dead19b28470a9b72c4ee5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-22 09:20:21 +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
Marcus Tillmanns
68b750d83d RemoteLinux: Use FilePath to create directories
Change-Id: I90986632fd601b588f7ca0459b5eb62ac2379d97
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-22 08:47:27 +00:00
Miikka Heikkinen
aef755bc16 QmlDesigner: Make import button default in 3d asset import dialog
Fixes: QDS-10120
Change-Id: I65c7ec53ef7b8e74e7851aee301e5a95e25115b9
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-06-22 08:35:03 +00:00
Marcus Tillmanns
39837d9c26 Utils: ensureWritableDir returns expected_str
Allows calling code to get better feedback to user.

Change-Id: I6d11787d314921dc052e87a8348683b221a17425
Reviewed-by: hjk <hjk@qt.io>
2023-06-22 08:23:33 +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
Miikka Heikkinen
f68fe887f0 QmlDesigner: Align camera buttons work on any camera on scene
It's no longer necessary to select camera to be able to align it.
Targeted camera is selected according to this priority list:
- Selected camera
- Previously selected camera
- Camera explicitly set as the camera for View3D of the scene
- Any camera

Fixes: QDS-10045
Change-Id: I3eedc92b7523e77ed5bc52f116ef83b4fe599b35
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-06-22 08:21:11 +00:00
Miikka Heikkinen
d066a848fb QmlDesigner: Make particle seeker slider follow action enable state
Slider widget for particle seeker is recreated whenever slider changes
between being shown on the toolbar and being moved behind the extension
button. However, the widget shown in the extension menu didn't follow
action's enabled state.

Fixed by making the slider's enabled state explicitly follow the
associated action's enabled state.

Fixes: QDS-10057
Change-Id: Ie5f14d0072bab0a1c0b396c0589d39758990acef
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-22 08:20:46 +00:00
Thomas Hartmann
bc3a8201ad QmlDesigner: Fix build
Change-Id: I8ae0671c43b0ea2662513b714e5343e6a29d248e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-06-22 08:18:02 +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
Thomas Hartmann
31895b55c8 QmlDesigner: Remove unused reference parameter
Change-Id: I28b835c9c2e0c687a9f2a8549a7ded4ddcaa5257
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-06-22 08:05:14 +00:00
Thomas Hartmann
cfafb36fbd QmlDesigner: Move isArray to MetaInfo API
Change-Id: I7e011d2529e0f940295845c4e259234b05690536
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-06-22 08:04:49 +00:00
Thomas Hartmann
c5117d0de1 QmlDesigner: Rename QmlDesigner::Utils to QmlDesigner::ModelUtils
Change-Id: Ie586482c49e84660cb725f4581fd9413e42f80a8
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>
2023-06-22 08:04:18 +00:00
Thomas Hartmann
fc4138d491 QmlDesigner: Add metaInfo to modelutils.h
This simplifies the API to retrieve a PropertyMetaInfo.

Change-Id: I937485a573c2149c7bd514cc0317c2b6014eba81
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-22 08:04:07 +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
hjk
0bc14bfd7d Core: Remove some unneeded semicolons
Change-Id: Iba7cbd09a879e4ae904fab2abd8acf74715c5b4d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-22 07:18:09 +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
Miikka Heikkinen
6fcbc7dd96 QmlDesigner: Fix QT_NO_SSL build
Change-Id: I313231142115acd00e9076df1e551c65490f8c48
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-22 06:52:52 +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
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
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
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
Knud Dollereder
9021558bcc Fix policy warnings in project templates
When compiling default created projects with Qt 6.5 and cmake
warnings about Qt policy QTP0001 where issued. This is now
fixed for the project templates. A second patch for the
qtquick-components repo will be provided to get rid of the
remaining policy warnings

Change-Id: Ia701a0cc7e030c9cb1459dc48e5ed2a91a6c6c0e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-06-20 13:44:08 +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