Commit Graph

76686 Commits

Author SHA1 Message Date
David Schulz
8174dabe57 LanguageClient: fix leak on restarting crashed client
Change-Id: I3107d0afc81e1511c5ca643919d074226f221170
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-20 11:24:00 +00:00
Artem Sokolovskii
7450bcb2b9 Valgrind: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464
Change-Id: Ia507fb7aab405226a954b6059ef326e999a8171a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-20 10:13:59 +00:00
Jarek Kobus
c31285d317 GenericLinuxDeviceTester: Use FileTransfer for sftp and rsync
Make ProcessArgs::prepareCommand() return false in case
when executable is a relative path and it can't be found.

Amends 13067a7d9c

Change-Id: I0c4cf1580be34894df01245eb2411cdd7a122651
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-20 09:19:59 +00:00
Jarek Kobus
79cacd354d FileTransfer: Make it possible to call stop() from done() handler
Don't delete the TransferInterface directly from stop().
Disconnect from it and delete it later.

Fix emitting done() signal when error occurred.

Fix passing the proper enum to RsyncTransferImpl.

Set proper parent for TransferInterface.

Change-Id: I430f0bf2507de8a9b7fb610641ca86e37ccd80d9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-20 09:19:42 +00:00
Henning Gruendl
5294c3a23b QmlDesigner: Fix FilterComboBox same value submit
* Fix issue when same URL gets submitted twice in a row
* Fix selection of model item when submitting a custom URL that aligns
  with an item in the model

Change-Id: Ica8819f72a1f2dc0c239eb2ced25a11a1355d81f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-20 08:32:28 +00:00
Jarek Kobus
8fb4d058ec ProcessResult: Get rid of outdated enum values
Change-Id: Ifd7b7db313ebb0ada2d90318145a1ce969a2beff
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-20 08:19:18 +00:00
Jarek Kobus
0675fe05b9 QtcProcess: Guard emission of done() signal
Add a missing guard for emitting done signal. It was overlooked
during QtcProcess devirtualization.

Amends a717ff71f4

Change-Id: I62c38d2ba9f3e437b5ef088b8362e97d16e576e4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2022-05-20 08:18:55 +00:00
Eike Ziller
94e38f2348 CMakePM: Use QML debugging and profiling option for initial parameters
Before this, if you set "QML debugging and profiling" to "Enable" and
then triggered "Re-configure with initial parameters", it would at first
not have QML debugging enabled, and only at some later point if you want
to re-run CMake with the additional options.

Change-Id: I5e8de7ebadbcb5a44b507ab9b953d4cbd8a3d063
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-05-20 07:28:09 +00:00
hjk
54db0fc5da ProjectExplorer: Remove some unneeded #include
Change-Id: Id52f17dae88f681b46da88bbeec154aa325f1422
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-20 07:06:25 +00:00
hjk
8dacb123e0 Utils: Pass MacroExpander to ArgumentsAspect constructor
In the past we wanted to keep the aspect constructor simple but
it turned out that exceptions were needed and accumulating, so those
are likely here to stay.

By passing also the MacroExpander to the ArgumentsAspect constructor
allows other single-purpose warts like the ProjectConfiguration::doPostInit()
machinery can be removed.

Change-Id: I148b0ca1ab0740270eecd0d3134620de65a86d4f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-05-20 07:06:10 +00:00
David Schulz
a493970e05 LanguageServerProtocol: remove IContent
Do not pretend to support multiple message types, while no other
messages are actually implemented by us or even known to exist in the
wild.

Change-Id: I49ee2118b2e10f265ac641c195df8a9e5c97951c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-20 06:35:47 +00:00
Thomas Hartmann
e10b3bc98b QmlDesigner: Use single function trackWidgetFocusTime to track view usage
This is simpler and not all widgets get focus events.

Change-Id: I91769abee7ee73017ba57811c124ddc509cac3fe
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-19 19:48:13 +00:00
Henning Gruendl
21710b3bed QmlDesigner: Remove selection clear while dragging
Remove clearing of all selected nodes when dragging an asset across
the Form Editor.

Change-Id: Ibc67b6ff01955d0af0a3510b03c89d03b2c3db93
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-05-19 18:44:15 +00:00
Thomas Hartmann
c977dee6fe QmlDesigner: Track time spend in design mode
Change-Id: Iabe982dcf2fc8c4ef3d10cf3d3df5b9e9b826548
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-19 18:40:52 +00:00
Alessandro Portale
6511bcdd72 ProjectExplorer: Introduce type-aliases for a "recent projects" entries
The code base has too many repetitions of "QPair<QString, QString>" and
for QLists of that. Also we might want to change one QString to
FilePath, at some point.

Change-Id: I4bd3ebe0f81aa77a6a380a96986d27f64522b4c5
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-19 18:21:31 +00:00
Jarek Kobus
0a8dbaf153 Utils lib: Remove unneeded includes from cpp files
It's a result of a team work consisting of yellow triangle and me.

Change-Id: I8b4812766da70e0785ae71bf0cb71357379e2514
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-05-19 12:37:20 +00:00
Artem Sokolovskii
0b6fca2293 ClangFormat: Add disable option
- Added a possibility to disable ClangFormat plugin
- Removed unneeded properties from clangformatsettings

Change-Id: If71f46670e4fd3d2dac6d18c97df5a811504ed5e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-19 11:58:45 +00:00
Christian Kandeler
10dd3706fa ClangCodeModel: Use dedicated TU for code related to the clangd AST
The clangdclient.cpp file is rather large, and the AST stuff is a nicely
self-contained chunk of code to move out.
No functional changes.

Change-Id: I0240413f561f5c67ca5ee310b5c4253ffa62fdae
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-19 11:25:59 +00:00
Thomas Hartmann
72b6673069 QmlDesigner: Collect usage time for more views
This collects the time for:

property editor
states editor
item library
asset library
text editor

Change-Id: I07cb5a75f1e007555f0d03d2518246a27e60f305
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-05-19 10:00:21 +00:00
Tapani Mattila
6b6bdd52a7 QmlDesigner: Move CMake generator to QmlProjectManager
Task-number: QDS-6898
Change-Id: Ib1ca2ff4cd17a1ee6c203878a963bf44bac6969b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-19 09:59:50 +00:00
Christian Kandeler
70ec0cfff1 ClangCodeModel: Make use of clangd's "switchSourceHeader" extension
This allows us to switch between headers and sources with different base
names and/or locations, using symbol matching heuristics.

Task-number: QTCREATORBUG-16385
Change-Id: I2d9c07f412d70b75322ed65d491982d78674483d
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-19 09:54:34 +00:00
David Schulz
0422233af4 LanguageClient: Move the interface out of the gui thread
Change-Id: Iec34f5a0ca3f7f8e2306d3c8a50c2155b5b96807
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-19 09:49:42 +00:00
Thomas Hartmann
816a9d6228 StudioWelcome: Forward download progress to QML
Changing the order.

First we create the widget,
then we connect and then we start the download.

Change-Id: I8acfe3d19010f16056dcb5e746acfb029b8a602d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-05-19 09:42:09 +00:00
Thomas Hartmann
a1882c1caa StudioWelcome: Add option to force download
[QML]
Designer\ForceWelcomePageDownload=true

Change-Id: Iad31e03367ed83336e9e1c461f4fa99abfe09158
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-05-19 09:41:57 +00:00
Thomas Hartmann
ab9d0294da StudioWelcome: Add progress to data download
Change-Id: Iffda006ac96858ad9c6490c7d0b33565249d6809
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-05-19 09:41:36 +00:00
Thomas Hartmann
43700fa621 QmlDesigner: Fix crash on shutdown
Change-Id: I47e20e14fe22dcad77a65b031cf65bc80bad3490
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-05-19 09:39:49 +00:00
Thomas Hartmann
bf96cd2496 QmlDesigner: Fix crash on shutdown
Change-Id: I95c37a33d7ad346b9d5d031bbfe022527c70e253
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-19 09:39:39 +00:00
hjk
296edb321a Debugger: Add dumper for QAnyStringView
Change-Id: Ic7cd577559ae7e73a74daa93784b6f2e1c8abccd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-19 09:15:58 +00:00
David Schulz
f67a778d2e Macro: fix saving macros
QMap::count returnes a size_type with Qt 6 in contrast to an int with
Qt 5. Convert this value always to an int to be backwards compatible.

Fixes: QTCREATORBUG-27543
Change-Id: Ibd37ede40e5eb4cd5e5172529455196242a97666
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-19 08:57:49 +00:00
David Schulz
36872d0ee4 Coco: beautify the start coco dialog
Increase the default horizontal space and add a spacer between the
controls and the button box

Change-Id: Id6ce9b923b8270947f315cfce36728e71942f8dc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-05-19 08:13:25 +00:00
Jarek Kobus
f58a25b60a CMakeProcess: Delete the watcher prior to finishing the future
Delete the watcher from the handleProcessDone() handler
in order to avoid a circular call to the handler in case the
handler canceled the task.

Delete the watcher also from destructor, prior to canceling
the task.

Fixes: QTCREATORBUG-27564
Change-Id: Ic5859ea159f66106602ed1bf1fc32e439edf28d9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-05-19 07:58:07 +00:00
Eike Ziller
64fc40c3a5 COIN: Use Qt 6.3.0
Which we also use for packages

Change-Id: I6c3a413149586e3aac47ab7ba5166fc51b2dadb8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-19 07:51:47 +00:00
Eike Ziller
b6dcca00c9 FakeVim: Fix compiler warning
Remove unused lambda capture

Change-Id: I973a5a6be6e2c27450ab80bbb87c9077f0ecd3e9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2022-05-19 07:51:16 +00:00
Eike Ziller
5e9d34793c BinEditor: Fix compiler warning
Unused lambda capture

Change-Id: Ic4d633b794a36d663644c761a0c2d024deee2dd9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-19 07:51:07 +00:00
Artem Sokolovskii
66f132dd9b TextEditor: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464
Change-Id: Ie9594bf661dbeecf22589c1580648252f0bfb7fb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-19 07:33:27 +00:00
Orgad Shaneh
a2797ec80e VCS: Append newlines to system messages in output pane
Change-Id: I3ca2d2e90ea0a97dd75feb7d1f8220564a138fb5
Reviewed-by: hjk <hjk@qt.io>
2022-05-19 06:15:44 +00:00
Thomas Hartmann
757b6554d8 QmlProject: Fix typo
Change-Id: Ie376933f2a83b0d5ceb22ad1b0e335d052c08135
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-18 19:42:34 +00:00
Thomas Hartmann
c91dba1d21 StudioWelcome: Fix readme path
Change-Id: I3173a10a9944c9247fbded170ade979b4bb45afe
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-18 16:14:42 +00:00
Miikka Heikkinen
6df6475ccd QmlDesigner: Fix initial form editor scroll/zoom for 3D previews
Preview item was initialized to zero size rect and form editor view
scroll/zoom was not updated when size was corrected later as preview
image was received. Since we use fixed size preview images, we can
initialize the preview item to that size to fix the issue.

Change-Id: I8198af1b830498f6540a783d770abdfb8a8860f4
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-05-18 14:17:36 +00:00
Miikka Heikkinen
6dda55a8cd QmlDesigner: Show id-less scenes properly in 3D edit view
Fixes: QDS-6942
Change-Id: I5b7fa966bf9d7321b1735ef0ea7cb904b82f542d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-05-18 13:30:49 +00:00
The Qt Project
995a464f46 Merge "Merge remote-tracking branch 'origin/7.0'" 2022-05-18 13:19:44 +00:00
Alessandro Portale
db7ba4ad6f QmlProjectManager: Fix CMake build with absent Qt5::QuickWidgets
Change-Id: Ic6c211a629bc4e5f215abad0bd80c6edb64f5c5d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-05-18 12:33:29 +00:00
Christian Kandeler
5d615e916f LanguageClient: Improve refactoring markers
Clicking the lightbulb should bring up a menu if and only if there is
more than one possible action for this location.
Amends 089e1edcbf.

Change-Id: I45348ed4fbf9b3f32e19bbe17f0c2c030ecd24ed
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-18 11:39:00 +00:00
Eike Ziller
6a296ab68a Merge remote-tracking branch 'origin/7.0'
Conflicts:
	src/plugins/qmlprojectmanager/qmlprojectplugin.cpp

Change-Id: I14030f58303839e706af892dd12a67566e3bed68
2022-05-18 13:35:47 +02:00
Cristian Adam
e608243ee5 GitHub Actions / Coin: Update LLVM/Clang to 14.0.3
To be in sync with the official packaging.

Change-Id: I28712ad1e8234d4911b2afcce949e1e919bf8e92
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-18 10:59:27 +00:00
Artem Sokolovskii
54d4c4db62 QmlJsEditor: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464
Change-Id: I77741a639d8585d1e0ad04d7c5e6588852202e4a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-18 10:40:48 +00:00
Christian Kandeler
840263eb9a CppEditor: Switch off "extract function" quickfix with clangd
There is a clangd tweak that does the same, but better.

Fixes: QTCREATORBUG-13240
Fixes: QTCREATORBUG-18607
Change-Id: I59822c725ccb38d995fd8ac03861b1931b81f74c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-18 10:23:50 +00:00
David Schulz
8a64d7229e LanguageClient: Use correct tree view for messages in inspector
Change-Id: I547584826de48d5db6cf55d9871521385ee1a04a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-05-18 10:06:00 +00:00
hjk
72a2083cd1 ProjectExplorer: Shift full FilePath creation into Executable aspect
Less need for correction: When a target is given, the executable
produced by the aspect will be on the target device.

Change-Id: I86c38e9f9fa5b4d4fe9b2ef7f21a0b3aa5b28670
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-18 09:50:40 +00:00
hjk
8737dfd962 Valgrind: Start fully qualified FilePath earlier
Change-Id: Ib768e02033267d07278b7279a8172d237ebaa59d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-05-18 09:50:22 +00:00