Commit Graph

80509 Commits

Author SHA1 Message Date
Jarek Kobus
14a70e1514 Clang: Use multi-arg for strings
Change-Id: Ia0cd1abdb59cd35f1ff276811386a57bcfeefa5f
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-11 11:43:55 +00:00
Jarek Kobus
398b5656b4 Utils: Use multi-arg for strings
Change-Id: I57d87b8f0435c7b304c484ad4d728b59780f212d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-11 11:03:23 +00:00
Henning Gruendl
65567b4717 QmlDesigner: Fix value types in property editor
Currently the value types of e.g. layer.textureSize and layer.sourceRect
are only resolved for QML Item, but not QML Control. This patch
increases the recursion depth while collecting the attributes of values
types in order to be able to set layer.textureSize.width or
layer.sourceRect.x.
It also adds those attributes to be able to read the values.

Change-Id: I61ba1468d1443953f0a5b6ab2241114dc441bb79
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-11 11:01:38 +00:00
Henning Gruendl
6fba34f5a7 QmlDesigner: Fix reflection in ColorEditor
Change-Id: I0d4cced42dd2b1d98f46c9870ca206e83b3aa4db
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-11 10:57:16 +00:00
Jarek Kobus
ed3d75b044 Fix missing include
Amends 887db6b419

Change-Id: Iaea15ce222f07306b48f2fde5e1526689a9d9aff
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 10:38:46 +00:00
David Schulz
fce9583fd3 Autotest: adjust actions tooltip case
Change-Id: Icc788866dc85cc780482d7a08df56b6d762ccad5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-11 10:18:42 +00:00
Jarek Kobus
711584bb3c Make AnalyzeUnit a member of AnalyzeInputData
Get rid of run() arguments.

Change-Id: I744da2a043136e579284eb2697b9b71f476b58a9
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 10:16:04 +00:00
Henning Gruendl
4a897e0395 QmlDesigner: Enable sourceRect property
Enable sourceRect property to Item layer specifics

Change-Id: If2f47c2ad47a083d5c4a30c9154a7631616ea257
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-11 10:15:56 +00:00
Henning Gruendl
f7ef0c31e8 QmlDesigner: Add QRect to node meta value types
Change-Id: I205d30a362dce4df5834dfa99974e63b3b9bf608
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-11 10:15:09 +00:00
Henning Gruendl
9df7a6bdad QmlDesigner: Fix SpinBox dragging
Change-Id: I9d6ef0fa03e7d9a26dea9eb98602238d5dacd28c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-11 10:14:38 +00:00
Jarek Kobus
d4026287d4 DocumentClangToolRunner: Remove unused getDiagnosticConfig()
Change-Id: Ia5895692b806fa7009675f4a0077a97a56a31504
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-11 10:06:49 +00:00
hjk
b87f0519e3 CppEditor: Use FilePath for ProjectPath::m_sourceFiles
... and update using code.

Change-Id: I682727a4b2982dba388e7cc7b9488225748d591f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-11 09:54:25 +00:00
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