Commit Graph

80529 Commits

Author SHA1 Message Date
David Schulz
f3d620fe79 LanguageClient: add tooltip to reload call hierarchy tool button
Change-Id: I9811bdf39f39175cd53f201b94aaf3dc3a6fae22
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-23 06:17:31 +00:00
Christian Stenger
7a4ef9c1f7 TextEditor: Fix build for real build systems
Amends 6deabc4334.

Change-Id: I237d912041c1db29dabd48ba243731419d8d688c
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-23 05:51:25 +00:00
David Schulz
eb7ccfd889 LanguageClient: add action to open call hierarchy
Fixes: QTCREATORBUG-28839
Fixes: QTCREATORBUG-28842
Change-Id: Icb70412282c0c2c36241559d942a58ffddab5664
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-22 14:40:38 +00:00
Eike Ziller
2880453e38 German translation: ProjectExplorer
Change-Id: Ieb273702f1d2dd470420d4d1ce4376e6d617a1c2
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-22 14:12:00 +00:00
Eike Ziller
9cfc07fae8 German translation: CMake
Change-Id: I874475c627ac398aaf996d6f43c78e719eaf1548
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-22 14:11:38 +00:00
David Schulz
52bc450790 Debugger: Fix error message
Change-Id: Idd6b63c8f814f1fbde31ee6cd5c0d4d3c461c895
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-22 13:53:34 +00:00
hjk
f423db5cb7 Android: Slim down androiddeployqtstep.h
Change-Id: I8a7cf3c33cc1dea6dd79f4c2bf0808f24a3b2369
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-22 13:27:56 +00:00
Eike Ziller
1daf3063ff German translation: CppEditor
Change-Id: I1b87fdc7709ed777fa6486ef692ef53ceb5ad1cf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-22 13:21:27 +00:00
Semih Yavuz
6deabc4334 formattexteditor: fix broken formatting
In case of unicode character, moving cursor relatively can result in
wrong placement of the cursor. Use absolute positions.

Fixes: QTCREATORBUG-28859
Change-Id: Idf68481861fc10c24b1eb330220fba92cadf560a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-22 12:54:11 +00:00
Christian Stenger
7014376aaa Python: Tweak handling of python project files
Improves the handling of the preferred python project
file (*.pyproject) and makes use of the json support.

Change-Id: I24d6e2c1d10899efacec0fc9b03660bb8f25dfe7
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-22 12:18:39 +00:00
Alessandro Portale
6079b7b378 Android: Update SDK manager tree display
Adopt latest naming in Android Studio.

Change-Id: I524adf5858933fddefe496db434b2fdca029d18f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2023-03-22 10:55:47 +00:00
Thomas Hartmann
b63cb2603e QmlDesigner: Always try to open in design mode if qmlproject is opened
If there is no ui.qml file then fallback to .qml.
Change to design mode in any case if a file was opened.

Task-number: QDS-9460
Change-Id: I619292019105f488ff33e6e5ed4294b36eb2627c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-22 10:37:19 +00:00
Marcus Tillmanns
4d6683b2cb Docker: Fix warning
Change-Id: Ia4665c1fcd0f52b5b8180b811e59ad7ba5bc2587
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-22 08:18:01 +00:00
Artem Sokolovskii
5a0ec63895 Core: Refactor disambiguateDisplayNames
- Used FilePath utils for finding common ancestor

Change-Id: I2491a66196128e927bd0da5729ed45eeb0b35646
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-22 08:06:21 +00:00
Christian Kandeler
661eca5968 LanguageClient: Fix off-by-one error in CallHierarchy
Fixes: QTCREATORBUG-28841
Change-Id: I739be37c3de942f5f631ad576a775a441ee8e4cf
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>
2023-03-22 06:53:18 +00:00
Marcus Tillmanns
83d818496c WASM/MCU: Fix includes
Change-Id: I47b547249c15d799bf4567fbede83afd83fcd1bf
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-21 15:23:14 +00:00
Jarek Kobus
97f1333cf7 CppCurrentDocumentFilter: Avoid using internalData
Change-Id: Ic4dc03101f319449ca9835a23c786fbb0528f1c3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-21 15:09:18 +00:00
Marcus Tillmanns
44074accc7 Terminal: Use QtcProcess to start terminal window
Previously DesktopDevice::openTerminal used custom code to open a
terminal window. This patch changes it to use QtcProcess with
TerminalMode::On.

This also removes the need for "openTerminal.py" on macOS.

Change-Id: Iec978bdd19487ff8e59dcd88c35c2d01b0681022
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-21 15:09:15 +00:00
Alessandro Portale
50a214de9e Qbs build system: Add a component for test files groups
Mainly in order to enforce a unified group name across QtC libraries and
plugins.

Change-Id: I6eafe0f9d227ec73d8c9029675866c67063768fb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-21 14:54:08 +00:00
Ulf Hermann
063b1d4b79 Update perfparser submodule to version 10.0
Change-Id: I49d445a4210215b0863f6cb410919a6a41f9fcf3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-21 14:43:52 +00:00
Marco Bubke
c738305989 QmlDesigner: Fix compilation error
There was an unused parameter.

Change-Id: I50e727a2c7152d730660f63a9f2aa43718ae1e4a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-21 14:39:24 +00:00
Eike Ziller
1029cb959b Build: Fix translation targets
Filter out .pro files from the translation sources.
A ProjectExplorer test was added that added files like
`multi-target-project-app.pro` to the target sources.
lupdate then triggers a call for lupdate-pro, which in turn fails.

Also filter .css files, which result in lupdate warnings.

Change-Id: Ib2fa5f0228307bc5850915ed89c14a0956d1d6a8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-21 14:09:49 +00:00
Marcus Tillmanns
97c1bb53a5 Docker: Check Image available
Docker will try to download images from the registry if an image is
not available locally. This takes a while, even if the image is not
available remotely. To circumvent the hangs resulting from this we
first check if the image is available locally and if it is not we do
not try to start it.

Fixes: QTCREATORBUG-28880
Change-Id: I6b9de8601b87e3050ae9ac5f1bbe3fa9701d4cc1
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-21 14:09:33 +00:00
Christian Kandeler
90f2d33767 Update qbs submodule to HEAD of 2.0 branch
Change-Id: I3e86c68b7a4b958c5a5d078400b48a5b4251d044
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-21 14:02:57 +00:00
Christian Kandeler
e788d0e8da ProjectExplorer: Make sure all changes to device settings are applied
The old "editingFinished on macOS" problem hits again.
A cursory glance seems to suggest the required call to
updateDeviceFromUi() was missing already in the original patch
dff0761406.

Change-Id: Id286417962010bfffe98169b55fb42e3480b03f6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-21 14:02:36 +00:00
Christian Kandeler
65814b124c CMakeProjectManager: Add lib and app binaries to project tree
Task-number: QTCREATORBUG-28815
Change-Id: I58ebcd2a6935eb4b6746b5fd58e6ab8b97fdef43
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-21 13:59:46 +00:00
Marcus Tillmanns
80fa3339e0 Utils: Re-add "press enter to continue" to stub
To keep the terminal from closing immediately, ask the user
to press enter after the inferior exited.

Make it configurable as the terminal plugin does not need
this.

Change-Id: I1949895f022a54539a6139be9f92fdc698f6534e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-21 13:50:18 +00:00
Alessandro Portale
20af0711d5 Tracing: Fix category label appearance after manual reordering
The drag item remained visible although the item height was supposedly
set to 0. This fix uses the visibility property in order to show/hide
the drag item.

Fixes: QTCREATORBUG-28930
Change-Id: I2233eed585f94eab5d71e0aa2743b791390c249c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-03-21 13:40:31 +00:00
Marcus Tillmanns
129562ea6f Utils: Test QtcProcess default environment
Change-Id: I62f56bd070ec531462ad3dd4e39cf6708115c7ba
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>
2023-03-21 12:41:04 +00:00
hjk
eb9416b35f RemoteLinux: Move GenericDirectUploadService implementation
... to genericdirectuploadstep.cpp and inline its pimpl.

Change-Id: I50550ee4bbf4266fa191008c9db1696bae3f7f43
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-21 12:35:38 +00:00
Marcus Tillmanns
9ddd1e1d36 Utils: Improve DeviceShell error handling
In case mktemp or mkfifo fails, the device shell script would
incorrectly print both success and failure messages.

Also cleaning State enum, removing unnecessary values.

Fixes possible crash if creation of master process fails.

Fixes: QTCREATORBUG-28928
Change-Id: I75fef54dc791b2b0a403bab19dab6813b62643ac
Reviewed-by: hjk <hjk@qt.io>
2023-03-21 12:31:44 +00:00
Samuel Ghinet
98be6d289f Make Content Library Materials downloadable
Task-number: QDS-9267
Change-Id: Ib4da1871cd1d9f0bf52323793b7d8d1b028ae170
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-21 12:30:31 +00:00
Mahmoud Badri
46b0aaeebe QmlDesigner: Move assignMaterialTo3dModel() to a utils class
In order to avoid dependency of AbstractView on QmlObjectNode. Moreover,
it seems not in the right place anymore since it is not really part of
an abstract code.

Change-Id: I7a64122e6ab0a2e314c593f0f47dadaa07d772e2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-03-21 11:52:59 +00:00
Leena Miettinen
5633533e0d Doc: Update Android docs
Fixes: QTCREATORBUG-28858
Task-number: QTCREATORBUG-28721
Change-Id: Id18a2ad0f88600362a5d10e36b3e3d95e5d19644
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2023-03-21 10:35:39 +00:00
Eike Ziller
8db072d68d CPack: Add a debian-revision and maintainer info
From man deb-version: It is conventional to restart the debian-revision
at '1' each time time the upstream-version is increased.

Not really required, since "no revision" sorts earlier than "some
revision", but seems to be conventional.

Also add a maintainer string, that is shown in the package info and
marks this package to come from the "Qt Project" directly.

Change-Id: I417a8d14d82f9f8ccfbe791e767d4ffed8175604
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-21 10:33:55 +00:00
David Schulz
d6c5cf5934 TextEditor: only paint selections in the first block of a suggestion
Fixes highlighting of matching parentheses or errors of the code model
in every line of the suggestion.

Change-Id: I223cb567ee8ce95badd91c4819417310a0e28cff
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-21 10:24:51 +00:00
Jarek Kobus
31d6990ab8 HelpIndexFilter: Simplify internals
Implement properly prepareSearch() instead of scheduling
a blocked call to caller thread from matchesFor() thread.

Change-Id: Id417235b19da36675afb13cf9a6f35759fe9d66d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-03-21 09:53:58 +00:00
Marco Bubke
cb0fc5fd1f QmlDesigner: Project Storage Watcher updates only some directories
Updates only the entries for the given source context (directory) ids
and skips everything else. It is enabling partial updates
for directories in a project.

[&, &ids = ids] the strange capture clause steams from a C++ issue.

Tak-number: QDS-9456
Change-Id: Id3abcd39ac429ba4483124f334d50c2999f5e6a8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-21 09:48:31 +00:00
Marco Bubke
4c3530f5ee UnitTests: Simplify project storage watcher
Use the real path cache. It makes the test some 100ms slower because the
database has to be created for every test but makes the test simpler.
Renames some variables too for better readability.

Task-number: QDS-9456
Change-Id: I3246a1859eae7b26b9e13a9d88d3c717748de43e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-21 09:48:27 +00:00
Marco Bubke
2d5062918a QmlDesigner: Project storage watcher watches unchanged files
The Qml documents and Qmltypes files cannot added or removed if the
project data is parsed. So the can simply been added to the watched
files.

Task-number: QDS-9178
Change-Id: Iaa30425241ac7ad3c2434b9c6c5955e894ec6049
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-21 09:48:21 +00:00
Leena Miettinen
cf1854a2d7 Doc: Update docs for Docker devices
Task-number: QTCREATORBUG-28721
Change-Id: Ie00e736a0a7d8d3d7c6238ce74e1d516bb5dca1a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-21 09:41:16 +00:00
Haowei Hsu
14292e74d2 l10n(zh_TW): Fix translations of 'Repository'
* Repository: 主目錄, 代碼倉函式庫 -> 儲存庫

Change-Id: Idc23f518583510977da9f344568c1c338f93e199
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yi-Jyun Pan <pan93412@gmail.com>
Reviewed-by: Franklin Weng <franklin@kde.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-03-21 09:02:32 +00:00
Haowei Hsu
1adc2a7988 l10n(zh_TW): Fix translations of 'Code Style'
* Code Style: 代碼風格, 源碼樣式 -> 程式碼樣式

Change-Id: I744b139cfca43532a61e9a8495fcbb0c66c959e7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yi-Jyun Pan <pan93412@gmail.com>
Reviewed-by: Franklin Weng <franklin@kde.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-03-21 09:01:58 +00:00
Haowei Hsu
d027cb3245 l10n(zh_TW): Fix translations of 'Configure'
* Configuration: 設置/設定 -> 組態
* Configure: 設置/設定 -> 組態

Fixes: QTCREATORBUG-28911
Change-Id: I827335325b3ef49c1f006cf1f540b2fcb8b05c84
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yi-Jyun Pan <pan93412@gmail.com>
Reviewed-by: Franklin Weng <franklin@kde.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-03-21 08:32:27 +00:00
David Schulz
8e9b893325 LanguageClient: Introduce ClientRequestTask
This class is going to be used inside TaskTree.

Change-Id: Ia227a8f41e4557b45053cb018497a7eca8f8ac6a
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>
2023-03-21 06:40:21 +00:00
David Schulz
6dcc1771e3 LanguageClient: fix show message box
Add a default close button and connect all language server defined
buttons to accepted, so the message box gets closed when the user
presses a button.

Change-Id: I846eadf5953e75441bdc7910c2587a2fa098a388
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-21 06:20:44 +00:00
David Schulz
7d4f123842 Python: add create venv action
The action can be triggered from the interpreter chooser of the editor
toolbar.

Change-Id: Ie23b68a3790525ea02883ef359b357a0d317b2f5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-21 05:39:48 +00:00
Christian Stenger
5256f08b6d AutoTest: Remove unused code
Change-Id: Ib2388e7566eaaac05a358c605418d9cb58825c39
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-21 05:30:58 +00:00
Haowei Hsu
0eaf35f400 l10n(zh_TW): Fix translations of 'Generator'
* Generator: 建立器 -> 產生器

Fixes: QTCREATORBUG-28912
Change-Id: Iab696ac7db6d4997d95fc0eaee13dafe4afebf0e
Reviewed-by: Yi-Jyun Pan <pan93412@gmail.com>
Reviewed-by: Franklin Weng <franklin@kde.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-03-21 04:49:52 +00:00
Mahmoud Badri
c036735fc5 QmlDesigner: Fix drag-n-drop a material only affects base state
Fixes: QDS-9477
Change-Id: Ic925e2ddfdeb4f75b12331a7e70c9aae8732a8d2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-20 14:44:41 +00:00