Commit Graph

74059 Commits

Author SHA1 Message Date
hjk
fc7634d730 Debugger: Remove DebuggerRunTool::setInferiorDevice()
Handled by the device implicit in FilePath nowadays.

Change-Id: I45b0e1b03de486df678e239143e2bdd995bee380
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-05-30 10:17:10 +00:00
Jarek Kobus
7d848364ff Move FileTransfer into ProjectExplorer plugin
Make it ready for providing implementations for other devices.

Change-Id: I14eaf167a7b2c1189f4d23f2e9f556204295b9b3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-30 10:10:33 +00:00
Artem Sokolovskii
48e2f79e8b SdkTool: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464
Change-Id: I231597f60c7ddad00f7166e7d09c1c5b2ff48657
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-30 10:04:46 +00:00
Cristian Adam
ea47190ed6 Debugger: Use arm64 cdb only on Arm64 host
Otherwise on x86/x64 there will be a machine type mismatch warning
displayed.

Amends 21ed15fcc9

Change-Id: I7faee1a6f9eaa7abdabcd92a26de763b27a0e085
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-30 09:40:56 +00:00
Knud Dollereder
4b0f20f777 Make timeline animations visible in the navigator
The timeline and timeline-animation is now visible in
the Navigator regardless of the "Show only visible" filter
setting.
Also assigned icons to timeline, timeline-animation,
keyframe and keyframe-group

Fixes: QDS-6965
Change-Id: I85a735a3a1811dd783c98422358492fd4b71f61f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-30 09:39:39 +00:00
Knud Dollereder
bf69c6c3a9 Do not update animation range from inactive timelines
In a scene with multiple states and timelines it occasionally happend
that the curve editor was updated from an inactive timeline.
This is now fixed.

Fixes: QDS-6948
Change-Id: I586593452e69cebe7bb2571e301230bf0ace8631
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-30 09:39:18 +00:00
Jarek Kobus
faa9ddbcfd Hide RemoteLinuxKillAppService
There is not need to export this class as it's not used
outside. Rename RemoteLinuxKillAppStep into KillAppStep,
as the "RemoteLinux" prefix is redundant inside RemoteLinux
plugin.

Change-Id: I46800c84fd326bb0631b77e48243443d79bc2fb2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-30 09:20:18 +00:00
Jarek Kobus
49ab0e0dda Get rid of AbstractUploadAndInstallPackageService
We had only one class derived from it
(UploadAndInstallTarPackageService), so glue both classes
together. Don't export UploadAndInstallTarPackageService class,
as it's not used outside. Move the implementation into cpp file.

Change-Id: I1521d1badb559e510e11337ace309a867196b251
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-30 09:15:38 +00:00
Jarek Kobus
adecdb4f2a AbstractRemoteLinuxDeployService: Remove SettingUpDevice phase
No subclass was using it currently, so simply internals.

Change-Id: Ie9574fdb2d6a26d089f3059acca407d65c59b2cc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-30 09:11:26 +00:00
Jarek Kobus
576f49df24 FileTransfer: Don't crash when used for non-linux device
Don't crash when start() was called for non-linux device.

Change-Id: I1722ea420ed0fe74418c1c9a6f8702ae079b7bd7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-30 09:08:14 +00:00
Jarek Kobus
c0333b2b68 FileToTransfer: Hide transferDirection from public API
Change-Id: I3df5a7f7d156385b8a6ba1cf0c9b4a216508dc20
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-30 09:05:18 +00:00
Jarek Kobus
08350cb8ae SshSharedConnection: Get rid of connectionOptions()
Change-Id: Ieb7da550183aa57db3dd6d0b714c1e66e46d38e6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-30 09:03:17 +00:00
Jarek Kobus
6b07b84bcd FileTransfer: Handle shared ssh connection
Change-Id: I251bdc4e8c9e8dd47fca24ecdb80239315d9e854
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-30 09:00:54 +00:00
Jarek Kobus
78d8dd8997 LinuxDevice: Fix starting a shell with SSH_ASKPASS
Change-Id: I11a8a477a1f9796ceb021037b781da2ca8d87f43
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-30 08:53:01 +00:00
Christian Kandeler
c6c919e671 ClangCodeModel: Properly parse function types for outline
Fixes: QTCREATORBUG-27587
Change-Id: Icf663e386fa90c209aa998d2d7ab7ae0fcb40792
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-30 08:38:20 +00:00
hjk
603ea1c679 ProjectExplorer: Introduce DeviceKitAspect::deviceFilePath()
A convenience method redirecting to IDevice::filePath.

Change-Id: I1bd4a6500fa051641873020244d97e307f579e72
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-30 08:31:32 +00:00
Cristian Adam
e3af694ad9 ProjectExplorer: Fix Windows Arm64 MSVC compilers detection
Microsoft offers cross-compilers for the Arm64 architecture.

Windows 11 Arm64 can emulate the x86 and x64 architecture so the
binaries that can be run should be taken into consideration.

Change-Id: I330c15a2c543eada9f7c939887ce13a1dd7559fd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-30 07:59:50 +00:00
Cristian Adam
53a8160034 Utils: Report arm64 as 64bit Windows version
Change-Id: Ied30bde01d269a0f0299a7b849b2deaf4c009ab5
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-30 07:59:27 +00:00
Thomas Hartmann
1eb741395c QmlDesigner: Remove reference to emulation layer
This removes the reference to emulation layer in error messages.

Task-number: QDS-7019
Change-Id: I120647266c007ce41481c4980a705d57b5a3e544
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-27 14:35:10 +00:00
Mahmoud Badri
0b51afe21d QmlDesigner: Implement "duplicate material" feature
Fixes: QDS-7013
Change-Id: I28a11dbd9d6586631c0edcf8003e551917eaac98
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-27 11:20:48 +00:00
Thomas Hartmann
e2f20ddcd5 QmlDesigner.Wizards: Extend version combobox
This patch allows to distinguish between 6.2 and 6.3.

Change-Id: I9ba4c9984673e9e9e6f7d50a1ea35704f7e00211
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-27 09:14:18 +00:00
Miikka Heikkinen
d92bdcce40 QmlDesigner: Show form editor preview for 3D material root nodes
Fixes: QDS-6561
Change-Id: I62a06eb6c83b0a4813a1b20f91b09e17b04a1332
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-27 08:49:14 +00:00
Artem Sokolovskii
323ba720db ClangFormat: Remove format while typing feature
Change-Id: I6737c429694218d39fc06c9ef3ce502228e26a2a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-25 17:51:32 +00:00
Ihor Ivlev
6f7e7980d2 Display parent functions in the Find Usages menu
To display the parent function, first we find it in displayResults and
store the information to SearchResultItem, then
SearchResultTreeItemDelegate gets the information and renders it.

Similar approach is applied to ClangdClient, in addSearchResultsForFile.

This change also adds default style for containing function highlight in
the search.
Default foreground and background colors are same as usual text colors.

Task-number: QTCREATORBUG-27550
Change-Id: Id1251afa192f8d1232524742b7c211770bcb83fb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-25 15:05:25 +00:00
hjk
5da36104ab Utils: Make ProcessHandle comparisons hidden friends
Change-Id: I54f97f19c35596de732d57894a9146d2e517e316
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-05-25 13:17:17 +00:00
Christian Stenger
1ff1d132f3 QmlProjectManager: Fix build
Amends f55fc5276b.

Change-Id: I5a6119c85639e1c0c240041fa36679063db72402
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-25 13:01:08 +00:00
hjk
d663986ef1 Debugger: Remove one use of Runnable::device
Change-Id: I46a004b9536e3b32f3fd620b86e39722c7ddcb6d
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-25 12:15:17 +00:00
hjk
807251f57f ProjectExplorer: Replace too generous #include
Change-Id: Ica9cc5214275eabd789038dbb452eb5e84de35fd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-05-25 11:20:29 +00:00
Christian Stenger
e0efc4faf3 ScxmlEditor: Fix build with Qt5.15
Amends 8b444f88eb.

Change-Id: Ide1da6a6c26f3a72388b2f9642ae25ce3cf62171
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-05-25 11:18:18 +00:00
Christian Stenger
f97bb1de4e Utils: Fix build on Windows
Partially reverts 9508ee134.

Change-Id: I5b6f865a4b404ce8e510bc678ec1ce84ccb9e013
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-05-25 11:18:05 +00:00
hjk
06624422c2 Debugger: Avoid another use of Runnable::device
Change-Id: If89aafd4d81efb2e0d7ec3dfcaf6a204a4b17159
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-25 10:33:44 +00:00
hjk
3330337a03 Valgrind: Avoid a use of Runnable::device
Change-Id: If7b5a9d4be7f4f9238f00406d8145db1222cf659
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-25 10:33:35 +00:00
hjk
5a5aa167f2 ProjectExplorer: Drop explicit device setting for custom executable
Not needed anymore.

Change-Id: I8f67de7518aa90ac38c37dc64ab563ef46f53c33
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-05-25 10:33:19 +00:00
hjk
f79a71df7b ProjectExplorer: Reduce use of Runnable in SimpleTargetRunner
Runnable functionality is nowadays mostly accessed more directly
in QtcProcess and its setup functions.

Change-Id: I2a2b5433aef1d464dc58d5a35069376dee051d57
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-05-25 10:32:23 +00:00
hjk
ae42604904 Utils: Add CommandLine::prependArgs convenience functions
For clearer code on the user side.

Change-Id: I3adf2e96628f4e59293cd2f0966fb30989e0da9f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-05-25 10:26:46 +00:00
Christian Stenger
743dd442d7 GitLab: Introduce minimal GitLab plugin
So far only adding global settings and project settings.
Global settings allow to specify configurations used later
inside the project settings or when accessing GitLab
server instances.
Project settings already can "link" to GitLab projects,
which will allow to fetch notifications for the project
later on.
Real functionality is added in the follow ups.

Change-Id: I8a0f978001c58c6dc9e07917c183891abec9a3d0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-25 09:54:09 +00:00
Cristian Adam
28497d928b Scripts: Do not deploy libclang anymore
Since libclang is no longer needed, we don't need to deploy the
library anymore.

Change-Id: Ia7bdb7e089ec95b8252efbfa1c607d03082a99e6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-25 09:45:10 +00:00
The Qt Project
6310b84594 Merge "Merge remote-tracking branch 'origin/7.0'" 2022-05-25 09:42:43 +00:00
Eike Ziller
82ee8baad8 Merge remote-tracking branch 'origin/7.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri

Change-Id: I254066f8be63cb5b15650ef2a470206db56de026
2022-05-25 11:42:13 +02:00
Tapani Mattila
f55fc5276b QmlProjectManager: Add theming support to QDS landing page
Task-number: QDS-6897
Change-Id: I2e1cea556d906d59664cb72612ea1d67ef495f4f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-25 09:18:09 +00:00
Christian Kandeler
5ae128f634 ClangCodeModel: Fix test crash
Amends 509600da99.

Change-Id: Ia07a65e509414b41f279f50c02893d1733fd1022
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-25 09:06:16 +00:00
Artem Sokolovskii
8b444f88eb ScXMLEditor: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464
Change-Id: Ic439470b7c23022fee6acbf0cdaba7760309edb0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-05-25 08:52:57 +00:00
Christian Kandeler
509600da99 Core: Auto-suspend documents more aggressively by default
This is basically just needed to keep clangd's memory consumption under
control, but as we don't expect it to cause any harm elsewhere, we do it
on this general level, rather than introducing an additional document
management layer.

Task-number: QTCREATORBUG-26673
Change-Id: Ib4e8d191022db269546f0a9822702a2a1cb97419
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-25 07:51:56 +00:00
Jarek Kobus
a043b1676f Icon: Aggregate QVector instead of deriving from it
In this way we hide the public interface of QVector for Icon.

Change-Id: I7722779b3b6781ff2cbcab0e2e9894dbd0435218
Reviewed-by: hjk <hjk@qt.io>
2022-05-25 07:49:50 +00:00
Jarek Kobus
ed40753ed1 Utils: Drop unused headers [I-Z]
Round 2 - focus on sources.
For classes with initial in range [I-Z].
Try to keep the same separators between different kind of headers.

Change-Id: I8a7ab99bab8120ee72cda6433ee3dc6f260a4d76
Reviewed-by: hjk <hjk@qt.io>
2022-05-25 07:49:25 +00:00
Jarek Kobus
4b9545fe7f Utils: Drop unused headers [A-H]
Round 2 - focus on sources.
For classes with initial in range [A-H].
Try to keep the same separators between different kind of headers.

Change-Id: I838a8324ddd5b4d8d5a51b8f30605f783c663813
Reviewed-by: hjk <hjk@qt.io>
2022-05-25 07:47:09 +00:00
Jarek Kobus
f3957d383f Utils: More forward declarations / drop unused headers [T-Z]
Round 1 - focus on headers.
For classes with initial in range [T-Z].

Replace QT_FORWARD_DECLARE_CLASS with QT_BEGIN_NAMESPACE and
QT_END_NAMESPACE and forward declare inside.

Change-Id: I4ac3a8391e6167aa2db3973a9f94a45ac3c8ebd1
Reviewed-by: hjk <hjk@qt.io>
2022-05-25 07:40:47 +00:00
Cristian Adam
d76eab7d2f ProjectExplorer: Do not hardcode X86 architecture for Windows
On Windows Arm64 the aarch64 architecture would be overridden
by X86 and all the kits would be marked as invalid, removing
the ability to create / configure projects.

Change-Id: I3940479792aa5440e9b0ee4a63e868c01738cd90
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-25 07:31:43 +00:00
Jarek Kobus
a67aee30a6 Utils: More forward declarations / drop unused headers [S]
Round 1 - focus on headers.
For classes with initial in range [S].
Try to keep the same separators between different kind of headers.

SmallString[xxx] classes skipped for now.

Change-Id: Ie5c8edcb028e33eb8f9619e646afc462b91dca73
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2022-05-25 07:19:00 +00:00
Jarek Kobus
304ab10642 Utils: More forward declarations / drop unused headers [P-R]
Round 1 - focus on headers.
For classes with initial in range [P-R].
Try to keep the same separators between different kind of headers.

Change-Id: I01fb80b93164a7fe4c0bd2cd8f9e4f27523efefa
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>
2022-05-25 07:18:44 +00:00