Commit Graph

68765 Commits

Author SHA1 Message Date
Artem Sokolovskii
74f77f6407 ClangFormat: Add caching of current style
Previously, ClangFormat was getting the style for a file
every time styleForFile was called, which could cause
unnecessary delays and impact performance. This commit
adds caching of the current style with a timeout of 1s,
so that ClangFormat can quickly access the cached style
instead of recalculating it each time.

Change-Id: I33c114d51d6ce1acd0b6d9d2a28e2b6712e149dd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-12 09:30:55 +00:00
Vikas Pachdha
c9e5a7dba9 Fix QDS crash on calling property count
Change-Id: Ibd3492751ac7b01101060e30f385562a6dfe5ba3
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-06-12 09:20:35 +00:00
Miikka Heikkinen
6652996503 QmlDesigner: Fix puppet build after quick3d private API changes
Change-Id: I3668853886306fe00d5da916aa458559964a9af0
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 9817df63fb)
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-12 08:39:41 +00:00
Marcus Tillmanns
dd28fb438f Debugger: Pass runAsRoot to terminal applications
Fixes: QTCREATORBUG-27519
Change-Id: I66478b5e68aee55c929fe2b7785973b8e7167fbf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-12 08:09:23 +00:00
Marcus Tillmanns
11ec14ebf4 Utils: Dont auto add sudo to all processes
Terminal processes need to add to the stub and not the target app,
so sudo is only automatically added for default processes.

The terminal interface is changed such that sudo is added to the stub.

Task-number: QTCREATORBUG-27519
Change-Id: Ife11e937644c4e946401a5b079e90fa64aee2c52
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-12 08:09:04 +00:00
Jarek Kobus
52fba04af5 TaskTree: Replace usages of Async with ConcurrentCall
The ConcurrentCall is more appropriate, since it's
a part of the Tasking solution.

Change-Id: I1a993a6afa552a7a6a26a450d4f23c15443fdfde
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-12 07:50:52 +00:00
Jarek Kobus
814fbd1c4f TaskTree: Some docs / string fixes
Change-Id: Ia87c519c7ab75b0bef86081c77c9408aa2694712
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-12 07:50:43 +00:00
Yasser Grimes
febfa73d29 McuSupport: Add an empty MCU project template
In addition to the descriptive Qmlproject base template containing
hints about most possible configurations, this template is intended
to be as blank as possible for a cleaner project configuration for the
case where the properties already known by the developer.

Task-number: QTCREATORBUG-29192
Change-Id: I670bc502ba30d5297668c77004ddfdf756764809
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-12 07:30:39 +00:00
hjk
dde5f1aab0 Utils: Fix compilation with namespaced Qt
Amends 5644fa1b9c.

Change-Id: I4e9ce4a637672fece8884d88c87fc8aaee7d9cc3
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-12 07:26:55 +00:00
Miikka Heikkinen
5de0bd268f QmlDesigner: Delete puppet rhi pipeline cache every now and then
Unused pipelines are never removed from the cache, so if we don't
delete it ourselves, the cache file will keep growing indefinitely.

We now keep count of how many times we have stored the cache and
remove it after set number of times to avoid bloat.

Fixes: QDS-10075
Change-Id: I5a4d25a7e40c8ff761c6c523cb80cda3f721528f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-06-12 07:16:51 +00:00
hjk
c13cf76249 Utils: Fix a Qt deprecation warning about pixmap and devicePixelRatio
Change-Id: I7a47054fcf68bc59263182fd1a7213354a07e31d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-12 07:10:52 +00:00
hjk
2fa78c7b9f ClangFormat: Proliferate FilePath use
Change-Id: I82ea75be92a7b247bad9717bf167cda8bb72cae7
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-12 07:10:32 +00:00
Christian Stenger
c377794c35 QmlJSEditor: Change way of writing settings for static analyzer
Instead of writing out a binary blob use a string list when
reading or writing the settings.
The setting is introduced with QC11 the first time, so this
should not harm too much - therefore no transition of old
settings have been added.

Change-Id: Ica4654f49b71478cb07434dff9d42fd9562be87b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-12 07:05:12 +00:00
Eike Ziller
fafd24a616 Change log: Add links to the bugreports
And prevent that the internal log viewer replaces the bug items with
links if they are already within a link.

Change-Id: I115fd9be59d0394a91b3bcd3157083e30d44c6b5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-12 06:10:03 +00:00
Thomas Hartmann
b6050d6f0d QmlDesigner: Use StudioQuickWidget in StatesEditor
The context property canAddNewStates is moved to the
statesEditorModel.

The statesEditorModel is moved to the backend singleton
under the namespace StatesEditorBackend.

Imports for StatesEditorBackend added.
StatesEditorBackend used to qualify statesEditorModel.

Change-Id: I1d4493751ac7b01101060e30f385562a6dfe58c3
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-06-09 15:29:49 +00:00
hjk
14d8f1573d Beautifier: Proliferate FilePath in uncrustify
Change-Id: I1790a96c50d7ac419a6f33ba9d0c42619ba4fd2e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-09 13:14:37 +00:00
hjk
37095e0f96 ProjectExplorer: Handle more Qt deprecation warnings
Change-Id: I6b6c24e17fce369324749a47ae2aa8a1ab4afb31
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-09 12:24:05 +00:00
hjk
a1bf748e95 Beautifier: Proliferate FilePath use in settings
Change-Id: Ia3b5c3cdde6f95d763269038a5df3930effaf7b1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-09 12:22:58 +00:00
Christian Kandeler
d12cfaaf7a Update qbs submodule to HEAD of 2.1 branch
Change-Id: I82c5e3fc6850647e30a557552adfeb29934f0633
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-09 12:09:24 +00:00
Alessandro Portale
50c386b53a Translations: Call Tr::tr() where it should
Change-Id: Ibf2be8a9aabd0a4e8e763a96901feaaa6eda2f3e
Reviewed-by: hjk <hjk@qt.io>
2023-06-09 12:04:26 +00:00
hjk
005a26d0ae QmlDesigner: Inline richtexteditor.ui
Change-Id: Ifc0c621485fb8fff4ce03e41bb9eb15bc3cc75eb
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-06-09 12:01:30 +00:00
David Schulz
1916f42690 Python: allow remote browsing for python interpreter
Change-Id: I4d8c92d4fa63b90b95bea454198d33839485868e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-06-09 11:37:34 +00:00
David Schulz
8d733f95e6 Python: simplify project file saving
use QJsonDocument to save the new style project files. This improves the
formatting and prevents replacing the newly introduced qml import path
field. Also used FilePath::fileContents/writeFileContents to support
remote projects.

Fixes: QTCREATORBUG-28541
Change-Id: Ie614726b6775dad2361437dc5d410438c7d01141
Reviewed-by: hjk <hjk@qt.io>
2023-06-09 11:37:26 +00:00
David Schulz
45acf2d49e Python: Use FilePath for absolute paths to project files
Change-Id: Ied4db237fe6a3b9532fced7c575a8a3717b405fc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-06-09 11:37:20 +00:00
David Schulz
d548c973cf Python: use the system environment of the project dir
to expand variables in the python project files.

Change-Id: Iff8d2445bad9a7ae15e720b65ac5c894c8efdb02
Reviewed-by: hjk <hjk@qt.io>
2023-06-09 11:37:12 +00:00
David Schulz
4fa65c4a34 Python: unify reading project files
Also support remote file paths for old style project files and do not
change order of files in the new project file.

Change-Id: I49b0781b26ca33b605aef674a04ee676f1848986
Reviewed-by: hjk <hjk@qt.io>
2023-06-09 11:37:06 +00:00
David Schulz
6eca1f5dc8 LanguageClient: improve inspector layout
Replace the list widget to switch between servers with a combo box on
top of the inspector to gain horizontal space for the actual
information.

Change-Id: Ic50d5dd6a44eeea43caa3d3f9cee621b58d44306
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-09 11:17:09 +00:00
hjk
790cabade1 Incredibuild: Fix quoting of additional command line args
Change-Id: I215c330e79b4df6a2b65f774a4e8d7d1a7157973
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-09 10:20:47 +00:00
Christian Stenger
59fe58a60a PE: Fix build step layout
Change-Id: I3c3ddc6a20d3233a85499a946bf21f284531f8df
Reviewed-by: hjk <hjk@qt.io>
2023-06-09 10:18:52 +00:00
hjk
35c60cd7b4 Incredibuild: Auto-register aspects in build steps
Change-Id: Ic36ac230c92df4b18649aa19a57f7a424a593db3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-09 10:15:30 +00:00
Christian Kandeler
0f3a92b45a Update qbs submodule to HEAD of 2.0 branch
Change-Id: I65d713ee07c4b7c74623b39cd77367e7eb72b623
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-09 09:42:44 +00:00
hjk
37d2240dfc Some more Qt deprecation
s/type/typeId/

Change-Id: I403af524146f0582709c1264e7517d8769dd723b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-09 09:38:20 +00:00
Marcus Tillmanns
d7a26911e4 Debugger: Use the pathUsage parameter
Previously the "Path:" option for breakpoints was ignored
by the lldb engine.

Change-Id: I3878ff7b50da994b26b9c42483e4640adc5c60cc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-09 09:29:39 +00:00
Eike Ziller
375db16ac4 Merge remote-tracking branch 'origin/11.0'
Change-Id: I87b22a73427cf9fc1b96075dc0db769ed3d3621c
2023-06-09 11:24:29 +02:00
hjk
45abf54a61 Handle Qt deprecation warning for shortcut setup
Change-Id: If13b353111611bd2419ec17d7795836da2ec00fe
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-06-09 09:01:27 +00:00
hjk
e98c523b3f QmlDesigner: Fix a few more Qt deprecation related warnings
Change-Id: I245693e0aa58454f631b9150cd86f3034c5cfbe6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-09 07:57:24 +00:00
Jarek Kobus
804ad5a7f6 AndroidSdkDownloader: Reuse TaskTree
Use it for downloading and unarchiving chain of tasks.

Change-Id: I28d4c07a49933665158452ec836a4a6b2c5e23b0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-09 07:28:42 +00:00
Jarek Kobus
a4b60e5f13 Utils: Introduce UnarchiverTask
Transform the Archive class into Unarchiver class.
The Unarchiver class is prepared to work with TaskTree.
The Unarchiver is going to replace the Archive class.
Provide the task tree adapter for the Unarchiver class.
Register the task inside the Tasking namespace under
the UnarchiverTask name.

Change-Id: Ib8f95a80c411d5afd18aa0e2ca428914430641ad
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-09 07:28:22 +00:00
Jarek Kobus
d93d1743fd DiffEditor: Use nested using namespace declarations
Change-Id: Iaf695a7c95f4267b5480036dedfa0485b841ca6e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-06-09 07:27:38 +00:00
Jarek Kobus
2caf4efbb2 DiffEditor: Refactor DiffEditorController
Replace requestChunkActions() and chunkActionsRequested()
with a virtual method addExtraActions().
Implement it in GitBaseDiffEditorController.

Task-number: QTCREATORBUG-23242
Change-Id: I5da166b35d1146b9fd439e748803531d982ad2a8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-06-09 07:27:32 +00:00
Eike Ziller
7f2ad8079d MIME preferences: Add globs and current handler name to filter
It is most useful if a user can type a file extension in the filter to find
the corresponding MIME type(s).

Also fix resetting the filter model when reopening the preferences.

Change-Id: I583e021dcdd2791288f913bc64d2be07e06ebfd3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-09 07:20:48 +00:00
Eike Ziller
c72c2cbf19 UpdateInfo: Start maintenancetool with low priority
Reflect that it is supposed to be a background activity.

Fixes: QTIFW-3024
Change-Id: I799552016c96e896992dd505cbfd86fa744c9502
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-09 06:51:58 +00:00
hjk
ebb2b9b73a QmakeProjectManager: Avoid endless loop on self-referencing mkspec links
Change-Id: I2b8fda49931c2f133f96c6e1c8001757d926af9e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-09 06:49:41 +00:00
Alessandro Portale
c1b7d23e56 Terminal: Fix string typo
send -> sent

Change-Id: I7a4658f316023206f716b856027f93414013d6b8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-09 06:39:23 +00:00
Marcus Tillmanns
1647968b92 Terminal: Don't always open default terminals
If a "Run in Terminal" app is started, or the user
selects "Open Terminal here" we don't want to
open another terminal when the pane becomes visible.
So we move the check after we added the terminal.

Change-Id: Idd90d6e9dbba513dd020d91ffebb594fd90d688a
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-09 06:16:43 +00:00
Orgad Shaneh
4c90e09553 Find: Remove "Filtering" placeholder text
Added by mistake in f48a6bb826.

Change-Id: I843c39a1cec3cd25ef1c6e52784f82d1e5ab68cf
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-08 20:24:49 +00:00
Marco Bubke
42173761c0 QmlDesigner: Fix crash
Change-Id: I429bb8d2935e0bc94297fab623b92578d5889287
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-06-08 18:28:36 +00:00
Jarek Kobus
39a419c801 DiffEditor: Move some methods into protected section
They are used only in subclasses.

Task-number: QTCREATORBUG-23242
Change-Id: I0aa037c7499a9a552e351fbd36885ce9b736656b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-08 16:38:58 +00:00
Tim Jenssen
66263782ec Merge remote-tracking branch 'origin/11.0' into qds/dev
Conflicts:
  src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp
  src/plugins/qmldesigner/components/stateseditornew/stateseditorview.cpp
  src/plugins/qmldesigner/designercore/model/qmltextgenerator.cpp
  src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp

Change-Id: I4c8a33736b25c3bb24241224d0a1e7358bb7fd94
2023-06-08 16:35:56 +02:00
Alessandro Portale
fb724ec38b Terminal: New keyboard lock icon
Change-Id: Ie3964d599fb15def190c51dd33351fa0224cacfc
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-08 14:15:20 +00:00