Commit Graph

80509 Commits

Author SHA1 Message Date
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
Mahmoud Badri
4b8df9996f QmlDesigner: End drag when dragging an asset to a material
Fixes: QDS-9474
Change-Id: Iaed7c6a3a2308e895f7d945abc3aaa49eacfc98a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-20 13:59:12 +00:00
Mahmoud Badri
b8a78d6cea QmlDesigner: Fix qml warning in the states view
Happens when dragging an invalid item on a state. The item is null
but the check check for undefined. Better approach is to always use the
! operator.

Change-Id: I036e0f2d5231b0b0eb67a8400551c93fa0654ecb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-20 13:46:44 +00:00
hjk
3868711995 RemoteLinux: Merge SshProcessInterface and LinuxProcessInterface
Change-Id: I961f65551a4c3146e8bab220b7c37a76c3f9fb38
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-20 13:06:30 +00:00
Jarek Kobus
af84305f12 DocumentLocatorFilter: Make it more self-contained
Hide public DocumentLocatorFilter::updateCurrentClient()
method and remove
ClangdCurrentDocumentFilter::updateCurrentClient().
Connect DocumentLocatorFilter internally into a new
LanguageClientManager::clientInitialized() signal instead.

Change-Id: Ie74a112bda811525b7d226da1377e5624130e9ed
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-20 12:35:01 +00:00
hjk
bff2e12120 ProjectExplorer: Also encode unusual ports in SshParameters::userAndHost()
Needed when e.g. using an SSH tunnel to a device.

Should be mostly invisible to conventional use cases.

Change-Id: I8d975b018e5c3e315b5e62996e819d9941a268e2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-20 11:56:11 +00:00
Christian Kandeler
521ce41c09 QmakeProjectManager: Add lib and app binaries to project tree
Task-number: QTCREATORBUG-28815
Change-Id: I4a3bbab54ce4f5cf6553d61f50b047f63b88cfa3
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-20 10:18:22 +00:00
Marcus Tillmanns
0870f2583b Terminal: Enable TerminalProcessInterface
Adds a new helper app "process_stub" that replaces the previous.
"process_stub_unix/win". The purpose was and is to allow processes
to be "injected" into other hosts apps like terminals while still
being able to control and debug them.

A new base class called "TerminalInterface" is used for both the new
Terminal plugin and the legacy TerminalProcess implementation.

Fixes: QTCREATORBUG-16364
Change-Id: If21273fe53ad545d1a768c17c83db4bf2fd85395
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-03-20 10:03:23 +00:00
Eike Ziller
098426b563 German translation: Core
Change-Id: Id32bdc1ad994666d6b26f986e30c2349aa18ff89
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-20 09:46:29 +00:00
Marcus Tillmanns
2d2eef1c2c Terminal: Fix "Enter does not work after copy"
Change-Id: Ic541ba15f52084bcd9b955af718efc3defc64539
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-20 09:45:23 +00:00
Mats Honkamaa
f35637c19f Doc: Update images for timeline docs
Task-number: QDS-9395
Change-Id: I6d2b394acb3a530bfac60cc2e363d89abec49bb3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-03-20 09:12:27 +00:00
Thomas Hartmann
21ab41313b QmlDesigner: Set the object name on the QQuickWidget
Change-Id: Ib9471414924f2ce65f90c75fa542c05770a696c3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-20 09:12:13 +00:00
Eike Ziller
b4caf23b56 German translation: UpdateInfo and Utils
Change-Id: I876fc4972ca0544bb2870edb0ffa8671e527f0bb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-03-20 08:55:36 +00:00
Marcus Tillmanns
5972452484 Terminal: Support clipboard selection
Change-Id: Ief59f9e21782e0dd0292f3625e35c1742cf9b3bc
Reviewed-by: hjk <hjk@qt.io>
2023-03-18 13:03:17 +00:00
Cristian Adam
4d82246ab5 auto-setup: Add support for conan 2.0
Fixes: QTCREATORBUG-28865
Change-Id: Ifb801a458b4b18de218dee6604f0555cab13ec75
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-17 16:25:19 +00:00
Thomas Hartmann
d61830f91f QmlDesigner: Fix TopLevelComboBoxes
The combobox will break bindings on current index. Therefore
we cannot use a binding on the instances.

Change-Id: I5b4ede02b8b945429b37efa4fc3e1acc15b3fbe7
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-17 14:56:29 +00:00
Jarek Kobus
81bd8e3bd8 FilePath: Remove overloads for async tasks that don't take context
Passing mandatory context object clearly suggests a special
care should be taken for assuring the passed function
may still run when the task finishes in the future.

Fix FileStreamManager so that it deletes the streamer
even when context object was deleted in meantime.

Fix 2 usages of asyncCopy so that we pass a context object now.

Side note: passing nullptr as a context object is still
possible and should work, but it's not recommended.

Change-Id: I464438db42ed9292c2f89ecb9d5dde7c78f77640
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-03-17 14:30:59 +00:00
Christian Stenger
13bf47c875 Tests: Add another environment test
Test appending and prepending PATH.

Change-Id: If2ff84b24a8f961af0a3bb64ed77aaf37fe247fd
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-17 14:21:24 +00:00
hjk
024897521c RemoteLinux: Disable sourcing /etc/profile and ~/.profile by default
[ChangeLog][RemoteLinux] Target-side shell profiles are not sourced by
default anymore.

Change-Id: Ide5029d02a0d149c4e532ee523f1dd49e7080c7b
Reviewed-by: hjk <hjk@qt.io>
2023-03-17 14:18:09 +00:00
Mahmoud Badri
020d38db1a QmlDesigner: Remove some helper widgets warnings on QDS shut down
Change-Id: I843124f2f0644f846faa7a6e6d8e8a9bb6792764
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-03-17 13:37:01 +00:00
Eike Ziller
a50f2620ec Bump version to 10.0.0
Change-Id: I396d3d42deb825e3cd34728e38989a6ad4f09006
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-17 12:23:19 +00:00