Commit Graph

80529 Commits

Author SHA1 Message Date
Eike Ziller
647287ee0c German translation: Debugger
Change-Id: I37f8f54b498d21e9c84fe5b795a2fe4eb5df6864
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-01-11 07:36:36 +00:00
hjk
8ee6b14f00 ProjectExplorer: Fix compilation with Qt 6.6
appoutputpane.cpp:272:12: error: cannot convert ‘const QList<ProjectExplorer::Internal::AppOutputPane::RunControlTab>::iterator’ to ‘ProjectExplorer::Internal::AppOutputPane::RunControlTab*’ in return

Caused by "QList: deprecate iterator<->pointer implicit conversions"
0220484329029fc7598dfe11ba35ea10c3126477
b6cbd9c43afc7e005c1f78e1d0f700524930ed71

Change-Id: I596ead9deafca1154b5a79495e707137b61a14d5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-11 07:32:30 +00:00
Samuel Ghinet
ff9c170053 QmlDesigner: Show metadata of assets when being hovered on
This change does not affect font files.
For all other assets, the file type is now also shown in tooltips
For image assets, the image size is also displayed.

Task-number: QDS-8177
Change-Id: Iceb93a0ffe1cb284a87cc93f1da2060f6f4f1529
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-10 19:10:02 +00:00
The Qt Project
b02b60800e Merge "Merge remote-tracking branch 'origin/9.0' into qds/dev" into qds/dev 2023-01-10 17:49:33 +00:00
Tim Jenssen
9eb2a7bc5b Merge remote-tracking branch 'origin/9.0' into qds/dev
Change-Id: Ic60cb293d07e7e25716adfbaa2f35e9d25ca148b
2023-01-10 17:48:42 +00:00
hjk
2c65bfa0ea Utils: Fix FilePath::withTildeHomePath()
Or rather, re-instate previous behavior.

Amends c9023e85108.

Change-Id: I1be0dd8c42db8430323b8368a8164b1623d5ced5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-10 15:27:59 +00:00
Miikka Heikkinen
91998cd80a QmlDesigner: When changing material type, copy base color
All material types have a so called base color that determines the
diffuse color of the material, though the property is named differently
in different material types:

  DefaultMaterial: diffuseColor
  PrincipledMaterial: baseColor
  SpecularGlossyMaterial: albedoColor

When changing a material type in material editor, if the base color
or the corresponding base map properties have been set, the values
are copied to the corresponding property in the new type.

Fixes: QDS-8738
Change-Id: Ia8e767ebf9b2d9026ff107e4245b37a788fd98d4
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-10 15:22:03 +00:00
Pranta Dastider
03eb5daf8d QmlDesigner: Update Tooltips for 2D Geometry Section
This patch update tooltip text for 2D Geometry Section fields.

Fixes: QDS-8722
Change-Id: Id2db204057778fd141bbe17204e200d59070db8a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-10 15:13:03 +00:00
Eike Ziller
0dfa542bee Merge remote-tracking branch 'origin/9.0'
Conflicts:
	src/plugins/cppeditor/cppcodestylesettingspage.h

Change-Id: I1aa4e2f9efc6d9cf9f284aef1abf148be9b93a60
2023-01-10 15:44:55 +01:00
hjk
67733f1edd Qnx: use dedicated classes to create run worker
Change-Id: I43178d543509dcb561fffb25741b0e3dd8d95cb1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-10 13:05:23 +00:00
Alessandro Portale
2bb029c7e3 QtSupport: Fix build
Change-Id: I7cba09b1dc901c4062e082dd4f959be5101ae791
Reviewed-by: hjk <hjk@qt.io>
2023-01-10 12:36:57 +00:00
Miikka Heikkinen
1c48089979 QmlDesigner: Fix rotation block property name in puppet
Property name was changed on creator side when aux property handling
was refactored, but corresponding change was not done in puppet.

Change-Id: Iba21661908d6c46d7f586c18f0d34fcece597c9a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-10 12:21:51 +00:00
Miikka Heikkinen
f673d3d0b0 QmlDesigner: Update child nodes in navigator when lock state changes
Child nodes of a locked node should also appear locked, so they need
to be updated whenever locked state changes on a ancestor node.

Fixes: QDS-8732
Change-Id: I5675e129fb60c5ad8c0fdbc7e0a0a7fef410747a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-10 12:20:05 +00:00
hjk
82c1a3a934 WebAssembly: use a dedicated class to create EmrunRunWorker
Change-Id: Idbeece82d8b59f02148207b0459a76aae162bb51
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-10 12:18:12 +00:00
hjk
57adf73a89 BareMetal: Use a derived class for debug support factory
Change-Id: I58ef72b6b7b74a0d83d8e6fbe5bd7538b5363f99
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-10 12:15:41 +00:00
hjk
4ddd28ae22 Utils: Rename QtcProcess::readAllStandard* to readAllRawStandard*
... and re-use the old QtcProcess::readAllStandard* names for
a QString-returning 'decoded' version.

For now, only use that in 'full Utf8' cases, to stay bug-compatible,
the plan is, however, to employ the QTextCodecs we have already
in the channel buffers. That will be one-by-one, though.

Change-Id: Id209e0671920d4ea4197918e872f441254112d52
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-10 12:08:53 +00:00
Robert Loehning
c2788b0f05 Debugger: Add missing space
Change-Id: Ibb8623392c1b0e759df198fab87a6059558236e9
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-10 12:07:05 +00:00
hjk
f08b5727dc ProjectExplorer: Introduce and use convenience factory class
... to create SimpleTargetRunner runners for a single run config.

Change-Id: I8af3d7cdcaf54f0584af948aa6e0fa015d1a3077
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-10 12:02:51 +00:00
hjk
c7884a2b17 Qmake: Enhance remote parsing
When parsing remote .pro files the parsers needs to pretend it runs
on the remote device.

All internal data are now "local on the remote", so that string
manipulation in .pro files "just works", and a 'device root'
string is passed around to relevant functions which then use
it to construct FilePath::toFSPathString()-style paths that
our custom FSEngineImpl can then map to the real device.

Remote $$system() calls are intercepted by the local parser and
redirected using the usual QtcProcess mechanims.

Quite a bit of the ProParser needed adjustments, so there's some
potential for regression.

Task-number: QTCREATORBUG-28242
Task-number: QTCREATORBUG-28161
Task-number: QTCREATORBUG-28355
Change-Id: I6100e7aca4e1db35f5e9689004110aab57e2c595
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-10 12:02:23 +00:00
hjk
0a0dd9ea31 CppCheck: Tr::tr and code cosmetics
Change-Id: I5e6583984f7dc94e998df3c20840f2ba2e801ab8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-10 10:20:03 +00:00
Christian Stenger
677fd6ba9a Utils: Fix compile with MinGW
Amends fbb8d94e55.

Change-Id: Ib62733031bfed435592da57d7f52e10473953669
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-10 10:12:44 +00:00
hjk
f5dce50dae Conan: Convert to Tr::tr
Change-Id: Ibeb29c39923db0f1c95e0db41dd7b2a1f8d670db
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-10 10:11:40 +00:00
Jarek Kobus
f73e787bd1 ExecutableInfo: Share getClangIncludeDirAndVersion's cache
Share the common cache with ClangToolRunControl and
DocumentClangToolRunner.

Change-Id: I47c6a1844459e80e9ea0336b5aa72db0265d3a30
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-10 10:07:39 +00:00
Christian Stenger
7684571e10 AutoTest: Fix handling of data tags with spaces
Change-Id: Ie725d8bf67b6a143f52c84b902b69a077a55a2bc
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-10 09:49:40 +00:00
Christian Stenger
6e7c257a8c AutoTest: Fix checked state for QtTest
Data functions and special functions may get handled as normal test
functions which obviously fails when executing tests.

Change-Id: I630fedcdbcc7577c1896f8cccbe77008a623900f
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-10 09:49:34 +00:00
Eike Ziller
8d6c168631 Fix build of Designer plugin
Qt 6 has Qt(6)::DesignerComponentsPrivate instead of DesignerComponents

Amends 55fa109b59

Change-Id: I96e152dd1e69095ca23784a5ac92f214b39fa608
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-10 09:44:45 +00:00
David Schulz
a298e11e0c ClangCodeModel: map compile commands json path to server
Change-Id: I0129bb0688980f986012445f418d07f1e4cea6ae
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-01-10 09:08:13 +00:00
hjk
66c08a824d Utils: Rename most FilePath::{from,to}Variant uses to {from,to}Settings
Specifies the main purpose more clearly. The remaining ones a "true"
(internal) variants in models and as action data.

Change-Id: I8dd3c846e419f29d88283c2f48268ef6685b19fe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-10 09:00:30 +00:00
Christian Kandeler
ca4af940b1 CMakeProjectManager: Provide generators
Task-number: QTCREATORBUG-28149
Change-Id: Iaebc04d729ccb3ec14496ae74ca6aa3d9aca8bac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-10 08:47:10 +00:00
hjk
68b7276f86 CMakeProjectManager: Keep using Tr::tr
Amends ac2ca7244.

Change-Id: I2373767d842c18f68c141a7dce3eab641dd5061d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-10 08:27:56 +00:00
Kai Köhne
4e9c1d126c Replace GPL-3.0 with GPL-3.0-only
GPL-3.0 is deprecated by SPDX.

Change done by

 find . -type f -exec perl -pi -e 's/LicenseRef-Qt-Commercial OR GPL-3.0(?!-)/LicenseRef-Qt-Commercial OR GPL-3.0-only/g' {} \;

Change-Id: If316a498e3f27d2030b86d4e7743b3237ce09939
Reviewed-by: Lucie Gerard <lucie.gerard@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-10 08:05:04 +00:00
Marcus Tillmanns
aee7afd50b ProjectExplorer: Improve error reporting
Previously anytime a FilePath operation tried to access a device that
does not have a DeviceFileAccess an error message would be thrown.

This patch makes it possible to differentiate between the device not
being found, and the device just not having a DeviceFileAccess
interface.

Also the error message in DeviceFileAccess::exists() was removed as
its not an error to ask if something exists even if it does not.

Change-Id: Ib8c2e08132159d0d97bcd049b59436eb17bdbacd
Reviewed-by: hjk <hjk@qt.io>
2023-01-10 07:12:39 +00:00
hjk
ad2013eee5 Utils: Enforce use of semicolon after QTC_ASSERT_EXPECTED
Change-Id: I2fe6b60434f251e4abf7a13a535844a10f99c6a3
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-01-10 07:03:43 +00:00
Marcus Tillmanns
bf9e2110e6 LSP: Use localSource
This change allows the LSP to find a local version of a source
file even if the server is running on a remote device.

Change-Id: I274cb327ad958ac3c4486859da666702758b7d42
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-10 07:03:13 +00:00
Marcus Tillmanns
a9c1beed7a iOS: Cache xcrun location
runSimCtlCommand() is called quite often when the
user is in the settings. Trying to start a command without
a full path makes QtcProcess search for the file in all PATH
directories every time.

Change-Id: I7eac4226a74c78269ae66ab8d2a2af3589a98e36
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-10 06:38:41 +00:00
Christian Kandeler
b6bd59fc57 CppEditor: Add soft assert for unexpected semantic highlighter state
Task-number: QTCREATORBUG-28507
Change-Id: I322c9b806c85d2a013c4014c80f4ca11ca117752
Reviewed-by: hjk <hjk@qt.io>
2023-01-09 16:03:06 +00:00
hjk
f5e4b7bd9f Android: Remove unused function lldbServerArch
Change-Id: I2482d85b553dc394d689b823a2abea46fedb852a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-09 15:36:09 +00:00
hjk
538a906912 CppEditor: Add missing include
Change-Id: I559e07115eabf9c8bd22543422e59dbd3a574d06
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-01-09 15:23:19 +00:00
Eike Ziller
4e3eb5ab51 Merge remote-tracking branch 'origin/9.0'
Change-Id: Ia0277bbf54a46fa2ada16ef982aa11c448998293
2023-01-09 15:20:35 +01:00
Eike Ziller
ef798ae4eb GitHub: Use Qt 6.4.2
Change-Id: I79d570bbddd8498b26fff57fca1c90e99c06f540
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-09 14:19:34 +00:00
David Schulz
d62d39642e LanguageClient: Add action to restart client to editor toolbar
Change-Id: Ib2fb0f6d9a5b3baeac937f298670887fa704ddce
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-09 14:12:22 +00:00
Pranta Dastider
20cbf4d34b QmlDesigner: Update Tooltips for Component Section
This patch update tooltip text for Componemt Section fields.

Fixes: QDS-8724
Change-Id: Id3fed9163c4ad6e61b762a5760cd5f2d7c079183
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-09 13:45:34 +00:00
Artem Sokolovskii
e193d02a72 ClangFormat: Fix no style for a new project
Fixes: QTCREATORBUG-28655
Change-Id: I44794125cfb0e4f24dc9a573fa0f9bb29f4c2e2b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-09 13:25:56 +00:00
Jarek Kobus
13fa4d5c02 GenericDirectUploadService: Use ParallelLimit
Instead of subgrouping parallel tasks into groups of
MaxConcurrentStatCalls size and running these groups sequentially.
The advantage is that now the next task will run just after
some task has ended. Before, the next group was run when
all tasks in the previous group have finished.

Reuses new ParallelLimit functionality introduced here:
b6208ab34a

Amends f2d50ba6ff

Change-Id: I422c86184d62aefc92d94adb58cdb7b1e38232f2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-09 13:05:46 +00:00
Jarek Kobus
fb477d6567 CppIndexingSupport: Get rid of createSymbolSearcher()
Create SymbolSearcher directly instead.

Change-Id: I48b054654038a8f3033e858324666c649295e2d4
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>
2023-01-09 12:25:11 +00:00
Jarek Kobus
c3e0c387f5 SymbolSearcher: Flatten class hierarchy
Don't make SymbolSearcher a pure virtual class as there is
only one subclass.

Change-Id: I85a9d0fd3574e29620c1e6bfdb3b3421e19a4f76
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>
2023-01-09 12:20:47 +00:00
Jarek Kobus
63783f22c3 CppIndexingSupport: Flatten class hierarchy
Don't make CppIndexingSupport a pure virtual class as there is
only one subclass.

Change-Id: I9f216a2f1f5d04f601d07b9507a4e9cf27ff7c46
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-09 12:17:35 +00:00
Jarek Kobus
0c1077425f ClangToolRunner: Move some methods into protected section
As they are used only from subclasses.

Change-Id: Ic16ffe3af8417b74af8a0ad3ea7ed1219f1f3a01
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-09 12:14:35 +00:00
Jarek Kobus
bf864ff371 ClangTools: Get rid of OutputFileFormat enum
This enum contains only one value now, so it's no-op.

Amends 9fc2fda07e

Change-Id: Ifa144dafb6155db93c06e3faecc40e38e464dac0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-01-09 12:14:28 +00:00
Eike Ziller
b7731b58a8 MacroExpander: Generalize registration of project variables
We provide global macros for ActiveProject and CurrentDocument:Project,
but these were completely separate, and the CurrentDocument:Project one
comparatively incomplete. Unifiy them.

Change-Id: I2622012f2c760e9f5b328766eca9d64c0bf9c5b1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-09 12:05:47 +00:00