Commit Graph

74059 Commits

Author SHA1 Message Date
Eike Ziller
7a94cca007 Merge remote-tracking branch 'origin/6.0'
Change-Id: Ia208fc746333e3d36868c580aa7794da9627c3e0
2022-01-14 10:24:10 +01:00
Christian Stenger
b75cd872f5 Tests: Adapt to qmljs updates
Amends 125d7c0cce.

Change-Id: I4f31af6dbb4e99d612444c4861199afdcdf7240b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-01-14 08:24:12 +00:00
Mats Honkamaa
cbcdf4c2f2 Doc: Update create project docs
Update docs to include new project wizard.

Task-number: QDS-5939
Change-Id: Ic152f5d558c81ae8c5ce536ef26e8c9461a81c34
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tanja Remes <tanja.remes@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-01-14 08:05:57 +00:00
Leena Miettinen
fd6380f935 Doc: Describe deploying apps to embedded Linux devices
- Describe deployment process in the instructions for generic
  remote Linux devices and link to there from the instructions
  for specific devices.
- Update instructions for adding files when using CMake and remove
  the include file.
- Add an example of adding files to deploy when using qmake.

Fixes: QTCREATORBUG-26616
Change-Id: I07cf9169da384dd65adc6935110e4dcbeb3e308b
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-01-14 07:31:34 +00:00
Jarek Kobus
7c91900cfb LinuxDevice: Run test echo command after successful start
After we have started the shell it can happen that
it will finish silently soon due to e.g. ssh server not running.
Before we try to execute any command in the shell we
schedule a test echo command just after successful start
in order to confirm that the shell is running fine.
If waiting for ready read returned false (i.e. the shell
process finished) or if we don't receive the expected
newline character we report a start failure.

Fixes: QTCREATORBUG-26861
Change-Id: I7387b3a366f8e6f4a58745582bb803f5060cfc36
Reviewed-by: hjk <hjk@qt.io>
2022-01-13 14:08:59 +00:00
Jarek Kobus
e7d125ffec ProcessLauncher: stop awaiting for ready read when finished
In case the user called waitForReadyRead() and we have
received the finished signal instead (without receiving
readyRead signals in meantime), we should interrupt
the wait and return false, since there is no point to
wait for future readyRead signals from not running process.

Change-Id: Ib4a770aea6ed562a5bef197eaa51b20c146842f0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-13 14:08:55 +00:00
hjk
0f3e4531c5 Debugger: Add separate display to QStringView dumper
And don't show the plain members anymore, unless explicitly asked.

Change-Id: I9854276c380d417fb9a98ae9c0dbae9356d42086
Done-with: Thiago Macieira
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-01-13 14:05:56 +00:00
Allan Sandfeld Jensen
1421694d17 Avoid starting threads from the wrong hosting thread
This should be safe for QThreadPool, but we are still fixing an
underlying bug, QTBUG-99775, and Qt Creator may just want to avoid
the issue altogether.

Change-Id: I50041cc6f5974d234b1a07be5cb19108fba897c7
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-01-13 13:44:34 +00:00
Mats Honkamaa
009c91aeec Doc: Add snow and rain particle tutorial
Added a tutorial for creating a snow and a rain effect using the particle
system.

Task-number: QDS-5376
Change-Id: I498adbf78c522f7ca8faee7bba1050f970f96eef
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-01-13 13:24:57 +00:00
Christian Stenger
5ffad15367 CPaster: Do not fail to paste after connection check
dpaste allows one request per second, but we perform a connection
check before sending the paste request.
This happens too fast and lets the paste fail for the first time.
Skip the configuration check as the user gets an error message
if it fails.

Fixes: QTCREATORBUG-26717
Change-Id: I5661055c0d3ed0894db170c0570a7501af34214e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-01-13 11:45:30 +00:00
Thomas Hartmann
0b00c15d36 QmlDesigner: Fix crash
Change-Id: I79b9b9ce0ec94027c28d09f49ffe3ebd998f60df
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-13 11:15:05 +00:00
Thomas Hartmann
92c42ef9ff QmlDesigner: Fix content folder location when adding assets
Task-number: QDS-5953
Change-Id: Iaa566d2ad9d528f27288c54c1cf0ff97a850dec6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-01-13 11:14:40 +00:00
Cristian Adam
45e078541e Doc: Update Clang version / URL in README.md
Change-Id: Ic0e1865cf6761436a12d8f36d1af80e462118c2f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-01-13 11:07:49 +00:00
Christian Kandeler
37e9a23bf0 RemoteLinux: Fix qmake build
Amends 20d19aa5bf.

Change-Id: I0e5f6bec596a4a78bd3bfffd16c9a304af582165
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-01-13 10:35:56 +00:00
Christian Stenger
1463c5d09f Wizards: Allow QtQuick tests for Qt6 as well
Change-Id: I476ad3519ed685ada4f1451906b5ba2fdfe8969b
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-01-13 10:06:59 +00:00
Jarek Kobus
12036863c5 Use qint64 instead of quint64 for bytesAvailable
Amends 79ce29b5a1

Change-Id: I922358f793fc40858495ecf5d3e62e75b1f44717
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-01-13 09:31:24 +00:00
Christian Kandeler
b88e9ba9b5 ProjectExplorer: Consider MSVC 2022 as base for clang-cl
Amends 08b6e0239f.

Fixes: QTCREATORBUG-26721
Change-Id: I04d65a39c6d7001081d748ca5f15361e30e2fc50
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-01-13 09:21:46 +00:00
Eike Ziller
816f86635a Add change log for 6.0.2
Change-Id: I02cc0f6d18d6743478703f8859b4a63fd8dc85dd
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-01-13 09:13:34 +00:00
Christian Stenger
5e4ebde703 Sqlite: Fix compile with old Xcode
Change-Id: Idef9562282da784a152af5eddaeea7968c8d2c8c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-01-13 08:54:02 +00:00
Thomas Hartmann
4f96957b91 StudioWelcome: Show the splash screen at least once if the version changes
The version of the last QDS instance launched is stored in
QML/Designer/lastQDSVersion.
Whenever the version does change we show the splash screen.

Change-Id: Idf94e73446f0498203d979b45378d85e70bd4106
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-01-13 08:07:21 +00:00
Thomas Hartmann
1c8baecaf2 StudioWelcome: Add support for version and resolution in description
Change-Id: I6e404907b96b7f7988da8622e37217a756a1ca9f
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-01-13 08:07:06 +00:00
Christiaan Janssen
b3a77eca26 McuSupport: IAR compiler registration
Autodetection of IAR compiler relies on Windows Registry.
On Linux, without registry we can't autodetect it.
This fallback accepts the user-entered compiler path.
The McuSupport plugin already implements a basic check
that the expected compiler binary is in the given path.

Task-number: QTCREATORBUG-26753
Change-Id: I43ce68f4bc075e60a2f4cd0d906f8389dc0fdfd7
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-01-13 07:41:04 +00:00
Jarek Kobus
37718e3874 Refactor SshConnectionManager internals
It makes it easier to manage just one hash of connections
instead of 3 lists.

Change-Id: Id6a3661d8dfdb0bd269e35ece36410bd2477e5c6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-01-12 21:03:31 +00:00
Marco Bubke
146225b94b QmlDesigner: Don't call an empty abort callback
Change-Id: I753aaa1ad693bb9ea5b34f1b50af40e2ef616c30
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-01-12 16:27:20 +00:00
Marco Bubke
68ac61193c QmlDesigner: Refresh preview image every hour
It is to assumed that the preview image will be changed and we don't need
to collect the time stamps of the files.

Task-number: QDS-5924
Change-Id: Icf5540d7bcc9da17a1497641f6189f35eb47f5d2
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-01-12 16:27:08 +00:00
Marco Bubke
7ce13691ff QmlDesigner: Remove generator from AsynchronousImageFactory
The generator was introduced to decouple the generation thread from the
fetch thread. But for the factory you only generate the image so you
can use the factory thread for the collector.

Change-Id: If569defba0c52dd85b19451a78f0daf5043b4d01
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-01-12 16:26:43 +00:00
Marco Bubke
3d0d9e8e0c QmlDesigner: Don't save null image for preview collector
Change-Id: I01ad1c12c25a734107b359461508c037a2f23bb2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-12 16:26:31 +00:00
Thomas Hartmann
0c00f58e8b Register TitilliumWeb-Regular
Change-Id: I0014bb5e315311c84c2fc301e1c3dba67fc64a22
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
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-01-12 16:12:07 +00:00
Christian Stenger
b9fd629731 QmlDesigner: Fix compile with Qt5
Amends 72c3d675a0.

Change-Id: I12b93fc36ba7702f75171409136dc7bfb94c5def
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tapani Mattila <tapani.mattila@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-01-12 14:52:43 +00:00
Christian Kandeler
0326bbdc81 CPlusPlus: Do not needlessly allocate space for a vector
It's not a rare ocurrence that the vector will stay empty, so let's not
reserve memory unconditionally.

Task-number: QTCREATORBUG-26841
Change-Id: I842620cfa1fd0571691829401e4ccc162ab61d7b
Reviewed-by: hjk <hjk@qt.io>
2022-01-12 13:40:24 +00:00
Eike Ziller
9056d708fa Merge remote-tracking branch 'origin/6.0'
Change-Id: I642abb110bb120e20af11a5d55244c03e6c48caa
2022-01-12 13:59:10 +01:00
Henning Gruendl
ad1340cbe6 QmlDesigner: Add 0 value to layer samples control
Change-Id: Iafdbc5a8351c05ce4face948ff046781b6551335
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-01-12 12:31:16 +00:00
Christian Stenger
0614d9ba4d AutoTest: Enhance QtQuick Test wizard
The wizard can now generate setup code as well.

Fixes: QTCREATORBUG-26741
Change-Id: If67ba0556001c5acd9ad6e5d98458771589f2ebd
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-01-12 12:02:46 +00:00
Tuomo Pelkonen
93d48d07c7 Multilanguage: Add utility to get language names consistently
There are multiple places that language codes are converted
to language names each doing it a different way. To make
this consistent, we need to have a single implementation
for it.

Change-Id: I2aeaf5b7c9203e8a41a61420f4c98e1fce491db5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-01-12 11:57:30 +00:00
Henning Gruendl
395b9aa9cf QmlDesigner: Add tool tips to disabled anchors
Add tool tips to disabled anchor buttons to make clear what the reason
for disabling is.

Task-number: QDS-5388
Change-Id: I193ba5ced45a6cb4d90e8475fc992029f58337d3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-12 11:52:05 +00:00
Henning Gruendl
c3334f105a QmlDesigner: Add renderTypeQuality property
* Add renderTypeQuality property in TextExtraSection
* Add renderTypeQuality to bannedProperties in all qul files

Task-number: QDS-5935
Change-Id: Ie22252a7b19704015834a0e413362ad84179b1e3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-01-12 11:51:35 +00:00
Eike Ziller
9091761996 Fix issues with Meson tests
- set temporary directory for launcher
- check for finding meson tool instead of crashing
- use GUILESS_MAIN since it doesn't use gui

Change-Id: I3f8de658d9ccbec3efb260cf2d58e27720e78d47
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-01-12 11:47:02 +00:00
Tapani Mattila
637d1c167b CMake generator: Use qt_add_executable instead of add_executable
Task-number: QDS-5267
Change-Id: I83d82089f1f10ec0a30e7f2c2ed776c31fdcd8b5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-01-12 10:32:13 +00:00
Tapani Mattila
85dab69262 CMake generator: Integrate warnings in confirmation dialog
Task-number: QDS-5856
Change-Id: If95515ee0921598623a024fd7bd8fe8ef3482aa9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-01-12 10:32:00 +00:00
Tapani Mattila
72c3d675a0 CMake generator: Make file picker a treeview
Task-number: QDS-5836
Change-Id: Ib261ac8750baae7ce55d9c990b5dadb26fc6ac03
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-01-12 10:31:45 +00:00
Thomas Hartmann
b9798f35e6 StudioWelcome: Do not show errors/warnings of welcome page
Change-Id: Id089f86f5bec4d5af3eef0e0200f6e8f2a586303
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-12 09:54:00 +00:00
hjk
d4b2f18c5e Docker: Split tryCreateLocalFileAccess() function
... into a parts updating the container access (i.e. shell process)
and the potential local file system access on Linux.

Change-Id: I0d3e7d9e859f15f9e22182fbe7ae1188b0c9ff57
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-01-12 06:51:54 +00:00
Christian Stenger
f6265d706a QmlDesigner: Fix missing dependency
Change-Id: Ie12969d59bd63925f88c973f52de283d410b8c13
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2022-01-12 05:32:10 +00:00
hjk
3342d4477c Docker: Switch Linux file handling to docker --exec by default
Also on Linux, where there's actually a choice.

It's slower, but less fragile when it comes to user ids
and/or file system permissions.

Change-Id: I811612fcff65fad50be18bed21150f6ca7fae93c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-01-11 15:00:08 +00:00
Jarek Kobus
79ce29b5a1 Simplify RemoteLinuxCheckForFreeDiskSpaceService
Use FilePath::bytesAvailable() on remote device instead.

Change-Id: I2431641ea2f4c090439e0380a378e39aa617540a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-01-11 10:15:36 +00:00
David Schulz
28e0a957c5 Editor: avoid duplicated line endings inbetween multiple cursors
Change-Id: Ia1721837efef47d570faa4e393b6b0b372944735
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-01-11 09:16:24 +00:00
Jarek Kobus
eabfc443a7 Use Reader mode for clangbackend
It doesn't look as there would be any write to this process
from Creator side.

Change-Id: I2c16a8ba28d8724d434d3c0f95c7b52616121b4b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-01-11 08:07:31 +00:00
Leena Miettinen
51209b991a Doc: Update Beautifier options screenshot to show correct exe
The current image shows the path to clangbackend.exe instead of
the path to clang-format.exe.

Fixes: QTCREATORBUG-26820
Change-Id: If445f0917ca1bde329e2a5c5410f0e071df566cf
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-01-10 16:47:00 +00:00
Eike Ziller
b028af43ef ToolTip: Guard against nullptr access
screenAt(pos) can be nullptr if pos is outside the current screen
configuration. Seems to be possible when screen configurations change.

Fixes: QTCREATORBUG-26019
Change-Id: I5def200b14247e7fbcf62ad68cda991e8c10c9d7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-01-10 15:18:10 +00:00
Jarek Kobus
403ed474e2 Fix ClientServerOutsideProcessSlowTest
Currently the RestartProcessAfterAliveTimeout test is creating
two instances of echoserver, which is not desired. This
patch fixes it by creating just one instance.

Disconnect from disconnected signal before disconnecting
from server in order to not to receive additional
request for restart.

Amends 4007828820

Change-Id: Iaf4994a9373b39bf0b065484e61627704a37672f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-01-10 15:12:01 +00:00