Commit Graph

80147 Commits

Author SHA1 Message Date
David Schulz
887db6b419 LSP: implement call hierarchy
Fixes: QTCREATORBUG-11660
Change-Id: I006872ba598a807f1f9f16d134fe9ce4fe5dd09d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-11 09:49:01 +00:00
hjk
ac5db86129 iOS: use dedicated classes to create run workers
Change-Id: I3ba7b75edf69b9cf88726132f154de5c4cc7ca7b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-11 09:39:36 +00:00
David Schulz
91b5274276 ClangCodeModel: do not highlight tokens as Text
Fixes: QTCREATORBUG-28639
Fixes: QTCREATORBUG-28637
Change-Id: Idfcfc6c61db9d5449ab14eda566ce704160bac54
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:29:27 +00:00
Jarek Kobus
c6471341f6 VcsPlugins: Use multi-arg for strings
Change-Id: I8c1c62e3d2f98781ff1468b44ad11640b873695d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-11 09:19:53 +00:00
Christian Stenger
db28ee6ec5 Squish: Fix logging output
Change-Id: Id69253ce282ccb01b7b8b93127ddb3b266da8534
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:16:25 +00:00
Christian Stenger
b4cd975b08 Squish: Allow retrieval of suite name from SuiteConf
Change-Id: I8c468dc7f69f72745685251293bba228bcde2b38
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:16:11 +00:00
Jarek Kobus
017ceef3b0 ClangToolRunner: Make overlayFilePath a member of AnalyzeInputData
Get rid of setVFSOverlay().

Change-Id: I0f406994f78523c40a5d2f2262f25c9b2c5a5442
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:15:38 +00:00
Christian Stenger
511dc801b5 Squish: Move some enums to a more central place
Change-Id: I86d57675fb92b650f3d3ab52c990b4b87f1790d5
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:15:36 +00:00
Jarek Kobus
c7b60e7d6b ClangToolRunner: Flatten the class hierarchy
Instead of creating subclasses of ClangToolRunner configure
the base class according to the tool specifics.

Change-Id: I51b611b2375571453c7f9690499d744582f035c1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:15:28 +00:00
Jarek Kobus
0139690c29 ClangSettingsWidget: Reuse ClangToolType enum
Change-Id: I702b3b1e67d53a2f4f08c22f674aedd9761e9a64
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:15:17 +00:00
Christian Stenger
1ac69b69fc Squish: Extract server into separate class
Change-Id: Iff370cd3571598ee32774e02f4f883d07e4c4685
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:15:12 +00:00
Jarek Kobus
c4882a5a7a ClangToolsUtils: Reuse ClangToolType enum
Change-Id: Iee95a014d634a99c6e10582f8e942a12ebf1bd74
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:15:05 +00:00
Jarek Kobus
0ba3dbf1be ClangToolsSettings: Reuse ClangToolType enum
Change-Id: I24d7bde71ccf3fc3ea33b78e0ed629fa0ce90c04
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-11 09:14:31 +00:00
Jarek Kobus
7ef8d8313d ClangDiagnosticConfig: Introduce ClangToolType enum
And reuse it where applicable.

Change-Id: If75f849ac936ef2c67b35c6a78d5bb055fc172d2
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 09:14:17 +00:00
David Schulz
c4f6fd5dd2 Python: Remove wizard for dynamically loaded ui projects
The dialog and main window variant of this wizard was broken since ever.
Generally two widget ui templates are generally confusing for the user,
so remove the broken wizard that promotes the not recommended way of
using ui files. Also we support the automatic conversion from ui to py
files nowadays via the PySide6 project tool.

Fixes: QTCREATORBUG-25807
Change-Id: I3ec6000a6c3fb076e3a54c70f3cccdd12df28701
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-11 08:42:17 +00:00
Marcus Tillmanns
c4e9616d27 Core: Support Env variables for "f" locator
Fixes: QTCREATORBUG-242
Change-Id: Iebcb88be482a3f8f7500629032ee63180997dd0d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-11 07:59:52 +00:00
Marcus Tillmanns
b16c6495a0 Docker: Make sure temporary paths don't duplicate
Change-Id: I980f2a02c0a521d2d142573d94eb8850c26f0999
Reviewed-by: hjk <hjk@qt.io>
2023-01-11 07:59:22 +00:00
Marcus Tillmanns
b39010af79 Utils: Allow FilePath::onDevice for local paths
Change-Id: I1ae62e077382abddbb32327897e87331cfc02476
Reviewed-by: hjk <hjk@qt.io>
2023-01-11 07:59:06 +00:00
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