Commit Graph

85691 Commits

Author SHA1 Message Date
hjk
4d89183268 BookMarks: Hide some BookMarkManager implementation details
Change-Id: Icfc2ca62fb66ff6be6f1f07bbe3e99b35b4c146b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-04 13:13:44 +00:00
hjk
c655c1733b Clean up some navigation factory implementation
Change-Id: Ibbff643daf88200d50fb0343dd40b03803074081
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-04 13:13:28 +00:00
Christian Kandeler
6847d69008 CppEditor: Consider comments when extracting a new function
That is, do not place the newly created function in between the function
and its comment.

Fixes: QTCREATORBUG-6934
Change-Id: I79f564a90c7e3c45188f5d694cbde47029651324
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-04 12:45:23 +00:00
Christian Kandeler
429da62c1a CppEditor: Consider parameter comments in "apply changes to decl/def"
That is, when a function parameter name is changed in the declaration,
apply the renaming also to the function comments at the definition and
vice versa.

Task-number: QTCREATORBUG-12051
Task-number: QTCREATORBUG-15425
Change-Id: I9104512ef8cdca8c37e4f8ac87117476f850117a
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-04 12:44:20 +00:00
David Schulz
4ee863060a Qmlls: only update latest qmlls if the setting is enabled
Change-Id: I0adb24db3a944c6a400cfd84e10974f9bdc0d560
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-04 12:29:26 +00:00
hjk
2e5805d4b0 TextEditor: Hide part of OutlineFactory implementation
Change-Id: Ifb1c743ba53e2e55605b78336b57c993c12ead3e
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-04 12:13:05 +00:00
Amr Essam
23a61ca926 QmlDesigner: Add syntax highlighter data for shader tags
Task-number: QDS-10499
Change-Id: Idbf99f1a86055085c53adaaed15af6058e39b39c
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-04 12:08:22 +00:00
Christian Kandeler
817d72df7f ClangTools: Always print stderr output
E.g. clang-tidy prints error messages for invalid config files, but then
continues to run and finishes with exit code zero.

Fixes: QTCREATORBUG-29298
Change-Id: Idbfb7998994ac8197cd863f4bbb2c64ac1bd5525
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-04 12:08:16 +00:00
Marcus Tillmanns
705232c737 TextEditor: Allow overwriting undo handling
In preparation for CompilerExplorer undo / redo handling.

Change-Id: Iefad5cc497c8e439f626e375fe8862526b52a36e
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-04 12:04:14 +00:00
hjk
37022ff0df CppEditor: Remove an unused member
Change-Id: I6bf26bbd2f1c8542ae2d645f7db9e2eba3f7a33f
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-04 11:26:46 +00:00
Sami Shalayel
79cc12ab8c qmljseditordocument: fix quickfix shortkey
QtC shows qmlls's warnings, but does not apply quick fixes to it when
using the quickfix shortkey. In quickFixAssistProvider, use the base
class implementation to detect running language clients and apply their
quickfixes, and fallback to the builtin qml code model quickfix if no
language client is running.

Fixes: QTCREATORBUG-29557
Change-Id: I75262d13ab229f8d3b4069fc0003574d41cabab0
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-04 11:08:07 +00:00
Amr Essam
eb28d9e5dc QmlDesigner: Add shader variables and constants conversion
Task-number: QDS-10499
Change-Id: I675f920a17415f618318337ea4ca3fa0c8c011f5
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-04 10:52:39 +00:00
Brook Cronin
a8c5dbfe0d QmlDesigner: Add missing views to All Views Workspace
Change-Id: I87dae8096e0a270e0ac16372998b2069d64593a9
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tanja Remes <tanja.remes@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-04 10:27:04 +00:00
hjk
fbd243e82e CppEditor: Hide part of CppTypeHierarchy implementation
Change-Id: I5635f320e7d746702e6e86bd5f4e8cc749c804f5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-04 09:36:16 +00:00
hjk
68cdbd9cd0 Core: Hide part of OpenEditors implementation
Change-Id: I4c7a2a62e9395450b44b96a5333135fbed773992
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-04 09:35:58 +00:00
Miikka Heikkinen
4e0c1e0b82 QmlDesigner: Fix issues in 3D view when parent node has transform
1. Hiding the selection box resets the parent transform we calculate
   during selection box geometry generation. Worked around this issue
   by hiding the boxes by using null material instead of visible
   property.

2. Aligning cameras to views and vice versa didn't consider the
   possibility that the camera might be a child node with a parent node
   that has transform.

Fixes: QDS-10502
Change-Id: Ibf4af71424b8b673a42042dbc1840754967799c5
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-04 08:17:04 +00:00
Amr Essam
5302567fca QmlDesigner: Add shaders pre-compilation support functionality
Task-number: QDS-10499
Change-Id: Idc2722b5b9fea7e2914bae5a67ce289a27c236ae
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-04 07:47:43 +00:00
Leena Miettinen
50b14b5046 Doc: Replace "Advanced Use" with "Reference"
Will move some topics to how-to topics in a follow-up change.

Task-number: QTCREATORBUG-29361
Change-Id: I7a7475844faafa9dfae9f2f4e3f6940959022c54
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-04 07:14:31 +00:00
hjk
2480189c5b Squish: De-Q_OBJECT-ify SquishNavigationWidgetFactory
Change-Id: I9c86ce75855a45f32f3752016acb1c8cc8c2d8ee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-04 06:20:44 +00:00
Thomas Hartmann
5907e480a0 QmlDesigner: Fix QML for bindings/properties
* Ensure a "node" is added to the model if missing, for e.g. Singletons
* Expose targetNode of property

Change-Id: Ifbb131c1d6efaaceb15a6e630ce56023ace63311
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-01 16:31:46 +00:00
Cristian Adam
16c12f71ff Android: Speed up startup by using existing Qt6 Information
This will use the available information from modules/Core.json
and determine the abi version from the "compiler_target" used to build
Qt.

This is only available with Qt6. Qt 6.4 and 6.5 have this information.

Otherwise the "android-clang" qmake mkspec will be parsed and evalauted
to get the Qt ABIs.

Change-Id: Ia0c73f5c87983f44a156b54335dc8b36698c15b2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-01 15:43:00 +00:00
Thomas Hartmann
a2d801ac0e QmlDesigner: Add support for else statements
Change-Id: Idbb35555919cf90219c8da5ddf20a1799856f568
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-01 14:37:51 +00:00
hjk
ff274be0b2 Utils: improve path correction
Change-Id: I1479bd7e7d2d2cf12eb6858bf92269bd454115a1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-01 14:13:29 +00:00
hjk
67212a31ee Utils: Cache theme icon access
These trigger over 120k file exist check on my machine on startup,
just for a handful icons.

Change-Id: Ic73f0783142ed329c2f8c8b852f622e69fc306da
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-01 14:03:33 +00:00
Henning Gruendl
f4466ed7b6 QmlDesigner: Apply theming to transient scrollbars
Change-Id: Iea76d981447f2367615ce624da399ecb984cb662
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-01 13:57:43 +00:00
Henning Gruendl
b2ee8acafa QmlDesigner: Add QML views transient scrollbars
* Add transient scrollbars to all QML based views
* Remove version from QtQuick imports
* Fix missing AssetsLibraryBackend reference in AssetsDelegate

Task-number: QDS-9549
Change-Id: I7ab2e52106efae07caa37763b5b0592cfbf57c2e
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-01 13:54:14 +00:00
Christian Kandeler
3b11d2605f Update qbs submodule to HEAD of 2.1 branch
Change-Id: I10e4448d6edffb3f7bdea3ca8a9a7fd4078e21d8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-01 13:01:23 +00:00
hjk
c2a69683cf QmlProfiler: Merge qmlprofileractions into qmlprofilertool
Change-Id: I9e43964de230ccb9549c976953d734eb355f667a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-01 12:32:24 +00:00
David Schulz
f2a93943f5 ProjectExplorer: filepathify gcc toolchain detection
Change-Id: I4114229033e2e9ba93d628d2014e224e3b1d5c1e
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 12:24:52 +00:00
Jarek Kobus
6f50addc1c TaskTree: Add a test for Storage input/output
StorageIO struct serves for an input/output interface to the recipe.
This makes the recipe even more universal and reusable.

Change-Id: Ifbd27452d2838e890eadb5e72e7e7c934c4ba840
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 12:12:52 +00:00
Jarek Kobus
b8bd57adb7 TaskTree test: Remove unused static variable
Change-Id: Idaf2e4bc07d439f2de5a353929f7df8bd08da67f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 12:12:46 +00:00
Jarek Kobus
8eed7c126a TaskTree: Adapt docs for onStorage{Setup,Done} handlers
Change-Id: I3dcd6dce573b23914952c30b935e6ddaa59d9c19
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 12:12:33 +00:00
Jarek Kobus
10430d36ff TaskTree: Add static asserts to onStorage{Setup,Done} handlers
Require const reference for onStorageDone() handler.

Change-Id: Iad333c04a78962a3361635900027bd4d41abc319
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 12:12:26 +00:00
Artem Sokolovskii
aac9990180 DAP: Add info bar install debugpy
Change-Id: Ib1e8ffc445a4bda18d011101b3c84447a2e4f89e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-01 12:09:40 +00:00
Artem Sokolovskii
05fac26dc9 DAP: Set last chosen preset
Set last activated item in ModelChooser when the debugging is ended.
It sets the last chosen preset in debuger menu. It is needed for DAP
debugger because it has several presets.

Note:
Logic should be improved or DAP debugger presets should be combined in
one.

Change-Id: I043d2fe17ec847db287ee246e1fb4455b3b6d727
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 12:09:26 +00:00
Leena Miettinen
3beaa29e29 Doc: Mark "Integrating Wizards into Builds" as developer info
- Users should place their custom wizards in the local user's
  settings directory, whereas developers should add them to the
  sources to include them in builds.
- Remove information about qmake because building Qt Creator with
  qmake is no longer supported.

Change-Id: I5e65ce8128dea0d35a21eee08a1548a3060c5e9c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-01 12:06:42 +00:00
Christian Kandeler
0a058bb657 CppEditor: Consider symbol occurrences in comments
... when renaming.
For local renaming, we consider only function parameters.

Task-number: QTCREATORBUG-12051
Change-Id: I7948d69f11b97663c9bd747ae6241a82dd9bdd82
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-01 11:42:17 +00:00
Christian Kandeler
164cb389dc Utils: Add a convenience function to TextFileFormat
All these output parameters make for awful code on the calling site.

Change-Id: Ie13294959cc011bc8220bab084e1685f85d8e06b
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-01 11:41:34 +00:00
Leena Miettinen
495c826c55 Doc: Rename "Adding Custom Wizards" and move it to "Reference"
- Create an "Add wizards" how-to topic

Task-number: QTCREATORBUG-29361
Change-Id: I37b1f39ba78fd1c39f4b111051f5eef1acee4caf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-01 11:23:38 +00:00
Andreas Loth
5f02cadeab Axivion: Begin to use QNetworkAccessManager instead of curl for HTTP
Change-Id: I2fd7ba2a72e749bdc5407d222057cb66ff341b04
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 11:07:39 +00:00
David Schulz
4cd48c84ae CppEditor: improve quickfix after local renaming
Always update the local usages of the symbol under cursor even if we are
currently renaming a local symbol. Otherwise the semantic info is
classified as not up to date, which in turns limits the quick fix
operation to the ones coming from clangd.

As a next step we could make sure the semantic info is valid and up to
date before creating the code assist interface by calling a synchronous
CppUseSelectionsUpdater::update. But as this will potentially block the
ui, it will require some extra handling.

Change-Id: Icb9f523a5a21e65a2853e3b98a17c2f45c637825
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-01 10:38:33 +00:00
hjk
9679412a23 Replace QFile::exists by QFileInfo::exists
QFile::exists only calls QFileInfo::exists, so this saves one
function call per invocation.

Change-Id: I41cb407345654eeead14455a4955b8b9b015aedc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-01 10:24:31 +00:00
hjk
3d028125df QtSupport: Don't rely on QObject parents on late destruction
Change-Id: Ibdb91c80d4932a5f0dced9843dfd01641577a88d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-01 09:55:39 +00:00
Vikas Pachdha
b30337e04c QmlDesigner: Process add/remove imports actions together
Task-number: QDS-10529
Change-Id: Icd4efdb4c289f686b2e6eaed67432b662ba2ad29
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-01 09:31:42 +00:00
Artem Sokolovskii
53718bcf1d DAP: Add locals lazy loading
Change-Id: I49c6d9fce8c6f45f1ec4cb3b6c1733d93202bc0f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-01 09:05:28 +00:00
Henning Gruendl
1710254b98 QmlDesigner: Cleanup ConnectionsEditor list views
Change-Id: Ib8f51d9e5640c768e6d6e815fd6c494e46743b65
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-01 08:51:36 +00:00
Amr Essam
cec9e6493e QmlDesigner: Add Effect Maker shader error propagation
In case of manual edit of shaders, this simple system detects common
errors that might be found in a shader.

Task-number: QDS-10499
Change-Id: I0c70ac85ef519880dcd98642c5927f037f113f94
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-01 08:34:33 +00:00
Leena Miettinen
be6b83ec4a Doc: Split up the "Adding Libraries to Projects" topic
- Turn the topic into a how-to topic
- Turn the example into a tutorial
- Mark the information as qmake-specific
- Add links to CMake information

Task-number: QTCREATORBUG-29361
Change-Id: I42befbf15ad8a0eba7e26a0a69e6d1963d2ce5be
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-09-01 07:39:47 +00:00
Jarek Kobus
197a45b9b9 TaskTree: Change the signature of storage handlers
The handlers for TaskTree::onStorage{Setup,Done}(...)
took a pointer to the storage struct. Take a reference instead.
This is in line with tasks setup/done/error handlers.

Change-Id: I8ff18c250f0fbbcd8210ec304e34232e842831fc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-01 07:33:54 +00:00
Jarek Kobus
7730a329a3 TaskTree demo: Simplify task creation
Fix workflow policy.
Fix const correctness.
Rename treeRoot into recipe.

Change-Id: Ib0457691001dbb88135027f8c7a34ba671b0b082
Reviewed-by: hjk <hjk@qt.io>
2023-09-01 07:33:44 +00:00