Commit Graph

69993 Commits

Author SHA1 Message Date
hjk
7a6c099c08 Nim: Use remote device when searching compilers there
Change-Id: Iab1cb1dbaaf789d2ad328ab70c3dec8839d4ffcc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-06 07:35:56 +00:00
hjk
10ca1c711e Docker: Partially split out kit item autodetection
Most of it is independent of the docker device as such, this should be
centralized somehow. This here is a first step.

Change-Id: If32063559a4c7c6c3cecf1973e1ef1f634e5f8f4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-06 06:46:13 +00:00
David Schulz
5d33982513 LSP: reload semantic token if we encounter corrupted data
Change-Id: I73185b0b7be57d348fc1a461b1db0383313d7208
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-07-06 04:58:50 +00:00
Tim Jenssen
e4376e6b3d QmlDesigner: QtTest is a better check
QtQuick.2 was moved to QtQuick in Qt6

Task-number: QDS-4661
Change-Id: I514fcb51c2b46dbef5cc9af79672abc3e86ebbbc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-07-05 19:40:50 +00:00
hjk
1e11f3eade ProjectExplorer: Introduce DeviceManager::defaultDesktopDevice()
Just syntactic sugar to make doing the right thing less painful.

Change-Id: Ia51cda20e5395925215f226b9a379af66fddfd8b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-07-05 16:00:47 +00:00
Christian Kandeler
2e9604c092 Utils: Do not save file upon PersistentSettingsWriter destruction
The m_savedData member is set on two occasions: Once directly after
reading the same file that is going to be written, and once directly
after a successful file save. In neither case do we have to write it out
again.

Fixes: QTCREATORBUG-25921
Change-Id: Ie369e280f4189aefb6b2ad291426ee9e6f1ed16d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-07-05 15:46:06 +00:00
Christian Kandeler
8cc4bbe4d8 ClangFormat: Prepend a space character to our inserted line comment
Otherwise, we could introduce unwanted syntactical constructs, for
instance if the previous character is an asterisk.

Fixes: QTCREATORBUG-25966
Change-Id: Ic0b535861bc1cb4f5f93d06bb11d0f3c7c583893
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-07-05 15:44:51 +00:00
Orgad Shaneh
dcf692d3ff CMake build: Purge copying settings from Nokia directory
It is not used, and not supported in the other build systems.

Change-Id: I38049e145595490058e255b94cdb8dd13c3f6fb2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-07-05 14:36:25 +00:00
Eike Ziller
dbb5ab932c CMake build: Don't re-link libraries unnecessarily
If a library changes its implementation only, don't relink all
libraries that depend on it. This is usually not necessary since the
API stayed the same.

Fixes: QTCREATORBUG-25962
Change-Id: I0221b09afd92463c3dad40bd0107ba0d5668ac79
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-07-05 13:23:01 +00:00
Tim Jenssen
2eef40bb85 qmldesigner: fix error output at puppet crashes
Change-Id: I6c2a8d655e996e6f935d069a97a45e64ad0ef5b9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2021-07-05 13:05:02 +00:00
hjk
fd71cbf135 Docker: Properly map back DockerDevice::directoryEntries() result
Even though the file is accessible in the local path, not mapping
back loses its relation do the docker container used for further
decisions like FilePath::needsDevice().

Change-Id: I7c693d604364b9e42bf7310c072be0f33d149626
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-05 13:00:16 +00:00
Leena Miettinen
100c5f5c26 Doc: Update screenshot of text editor color schemes
The code elements for which users can define colors are not
listed in the docs, but the updated screenshot shows the new
parameters setting.

Task-number: QTCREATORBUG-25642
Change-Id: I5cd640b85f16d3bcd8be9c4b61f93c0da80c3d98
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-05 11:28:55 +00:00
Christian Kandeler
de2c26f7f5 ClangFormat: Prevent adding/removing lines when indenting
In indentation-only mode, any edit that adds or removes newlines is
wrong by definition.

Change-Id: Ida6e729f4d5e8dcd7893fb2bb9407e596661f942
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-05 11:26:20 +00:00
Christian Kandeler
f248d0a737 ClangFormat: Add xfailing unit test
Task-number: QTCREATORBUG-25966
Change-Id: If8f28bd5195f2681cca209b41bcc93fad0695541
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-05 11:26:09 +00:00
Robert Löhning
770182653c Squish: Add parentheses around all print statements
Required by Python 3.

Change-Id: Ia28491882a844d3642da38145b1ebfcfbd5883b3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-05 10:31:19 +00:00
Robert Löhning
c8b176c9a7 Squish: Stabilize tst_HELP02
On Windows, the shortcut gets lost when
clicking "Stop Recording" too quickly.

Change-Id: Ieb89b7f59ded0792bf09fbad0b4b44a78d369c0f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-05 09:25:31 +00:00
Eike Ziller
21115ae511 Keep "Build All Projects" the first item
like it was before the re-arrangement.

Amends 3bd490acdb

Fixes: QTCREATORBUG-25948
Change-Id: Ia4bd97c95d2976cd52bfcbd40389f6c7360c8109
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-07-05 08:55:00 +00:00
Eike Ziller
e3b639047f Don't update extra compilers individually after project load
Each call of CppModelManager::updateSourceFiles detaches the current
snapshot.
The extra compilers where set up and triggered individually, and
resulted in individual updateSourceFiles calls with the single result
file of the extra compiler. For Qt Creator this would lead to 200
calls in quick succession after project load, potentially leading to a
freeze of multiple seconds.

Instead of updating the result files of the extra compilers individually
after project load, integrate the update into the regular project source
file update. So we end up with only a single call of updateSourceFiles.
For this the project updater needs to trigger the extra compilers, and
wait for all to finish as well as the regular project part update,
before
triggering the parser.

Task-number: QTCREATORBUG-25783
Change-Id: I34f6df0fc0f96bcb42ee65019bee39cf49176c1f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-07-05 08:16:25 +00:00
Christian Kandeler
68846a7729 ClangCodeModel: Provide highlighting via clangd
Note that we lose the highlighting for virtual function calls. We need
to amend clangd to add the respective information to its semantic tokens
message.
Also, Qt properties are no longer highlighted as class members. We'll
investigate how to best restore this feature.

Change-Id: I403712aada3d7a8e1c7b7c1277f43f7f64f8450b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-05 07:39:06 +00:00
Leena Miettinen
db053c49ad Python: Fix UI text
Task-number: QTCREATORBUG-25915
Change-Id: I4f317e9bf091bd68fc6d76ded9e5db4d989c71cb
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-05 06:35:44 +00:00
Leena Miettinen
0727bc5c79 Text Editor: Fix UI text
Task-number: QTCREATORBUG-25915
Change-Id: Ibc760268640ee77d8c2f95f92fee46f46408f75d
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-05 06:35:31 +00:00
Leena Miettinen
c9e89d4844 MCU: Fix UI text
Task-number: QTCREATORBUG-25915
Change-Id: Ia6505f1ec0fd8ebb879ca21e1b3bf140db9e9538
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
2021-07-05 06:35:12 +00:00
hjk
9a82846de4 ClangTools: Use FilePath in ClangToolRunner::init()
One .path().path() less.

Change-Id: Ibf1b25acefafc1bb5359d839ebf272c3d1fb08d6
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-05 06:06:45 +00:00
hjk
579e643f71 Debugger: Increase the default string display limit to 300
This helps especially with paths that often exceed 100 characters
nowadays.

Change-Id: I0a4cd62803178a129e8ced723e5422bf9eb21a08
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-05 05:31:05 +00:00
Cristian Adam
3a503a7eb0 QmlPuppet: Builds fix for Qt5
Amends 7c0652b7ac

Change-Id: I55792a5468b5cf7e9eedb6a105abe468c48ecd2d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-07-02 18:44:22 +00:00
Henning Gruendl
0f77cf9077 QmlDesigner: Update states editor error message
Task-number: QTCREATORBUG-25630
Change-Id: I255666a3ed4f162af0a579a6f7daa9e28487dd1d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-07-02 15:39:36 +00:00
Alessandro Portale
f43ac65ccb Don't call qt_add_qml_module with inexistent TARGET
If the passed TARGET does not exist (because it had been disabled in the
CMake configuration), qt_add_qml_module will create it for the user.
That created target is by itself incomplete and breaks the build.

So, don't call qt_add_qml_module with inexistent TARGET.

Fixes: QTCREATORBUG-25960
Change-Id: I646eb2176befb0fd5fe06e184ebd0cee32e18ab2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-07-02 15:35:24 +00:00
Leena Miettinen
baf222af3f Doc: Describe creating QRC and RCC files
Fixes: QDS-4566
Change-Id: I1a1e95e64f5196776d2205d66d59120e8d3412d7
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2021-07-02 14:18:11 +00:00
Mahmoud Badri
ca23fa4359 QmlDesigner: Remove space at the top of the assets lib
Now hidden section header doesn't occupy space.

Change-Id: Ied4e9ee3c7601c291383f73337e98cb7ffd77f54
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-07-02 14:15:43 +00:00
Leena Miettinen
271ddaa510 Doc: Describe "Force logging to console" Debugger option
Task-number: QTCREATORBUG-25642
Change-Id: Iee1ad389294aadd372720bd3ddc8b4ebd07e7404
Reviewed-by: hjk <hjk@qt.io>
2021-07-02 13:52:43 +00:00
Leena Miettinen
ffd94f1138 QML Designer: Fix UI text in Properties view
- Check capitalization of UI text (titles, headings and captions
  should use title case; labels should use sentence case)
- Fix some label text
- Fix some tooltips

Task-number: QTCREATORBUG-25915
Change-Id: Ifaffe77fa5ad3f9f310bd470ef59b021c1cf6456
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2021-07-02 13:52:08 +00:00
Leena Miettinen
3b8340b3cf Qt Quick Designer: Fix UI text in views
- Fix punctuation
- Fix capitalization

Task-number: QTCREATORBUG-25915
Change-Id: Iff2c0a852c3a41c65205cc85000a86fc78eabd88
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2021-07-02 13:51:51 +00:00
Leena Miettinen
a4b4be312f CDB: Fix UI text
Task-number: QTCREATORBUG-25915
Change-Id: I2f0e905ddcab8c8988cb84fbfb201ab089f087ff
Reviewed-by: hjk <hjk@qt.io>
2021-07-02 13:51:37 +00:00
Leena Miettinen
67ac04bdce Docker: Fix UI text
Task-number: QTCREATORBUG-25915
Change-Id: I8f0b368f77af39a586963765a63e1618a0ee9bd6
Reviewed-by: hjk <hjk@qt.io>
2021-07-02 13:51:25 +00:00
Leena Miettinen
32f67f6c83 Doc: Describe "Use target extended-remote to connect" option
Task-number: QTCREATORBUG-25642
Change-Id: I6b40f0f900db5eb8a80ed21710a7ce57df2a9eda
Reviewed-by: hjk <hjk@qt.io>
2021-07-02 13:51:12 +00:00
Miikka Heikkinen
7c0652b7ac QmlPuppet: Small optimization to rendering 2D content in 3D scene
There is no need to read back the texture into image when rendering
2D content for embedding into 3D scene, so don't do that.

Change-Id: If84619bdc20e6997733effc4745a496fab69e5b8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-07-02 13:37:54 +00:00
Christian Kandeler
01a6e40377 Unit test: Fix qbs build with internal gtest
Change-Id: Ied99b436ae234e7be3944e71d0f6d13fc5f7b2f3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-02 13:29:02 +00:00
Johanna Vanhatapio
518b25063d Doc: Fix a typo
Change-Id: I82d9fe5dd1fd34b0450084d677d49a18c9d20977
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-07-02 13:18:31 +00:00
Leena Miettinen
3dd0d84fb6 WebAssembly: Fix UI text
Task-number: QTCREATORBUG-25915
Change-Id: I800e3e06787209e8ba0a09c07ee1fecc997d3c04
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-07-02 13:11:16 +00:00
Leena Miettinen
2dbb9c5c82 Extension system: Fix UI text
Task-number: QTCREATORBUG-25915
Change-Id: I773e540deed7fc0c5e2b45a4106d2f1c43ae932c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-07-02 13:07:25 +00:00
hjk
2bf72a6dfd Utils: Move resolveSymLinks from FileUtils to FilePath
And make it work with remote paths.

Change-Id: I1fe4548547231338284152a86c43f5d0b1eba4d6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-02 11:08:00 +00:00
hjk
943447aed3 Utils: Count processes when qtc.utils.qtcprocess is enabled
Change-Id: I69748c751fe41bdddd73a9ad396e722ebccb7a54
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-02 11:07:50 +00:00
Christian Kandeler
843999d578 ProjectExplorer: Properly handle project environment changes
... in the build configuration. We need to update the cache, so that the
changes are propagated to run configurations.

Fixes: QTCREATORBUG-25947
Change-Id: I1051df7dd03274acba1e66c3cbb9d3cb01552b4b
Reviewed-by: hjk <hjk@qt.io>
2021-07-02 11:00:33 +00:00
Henning Gruendl
cd7c8160ea QmlDesigner: Remove obsolete QML types
Change-Id: I6623bb11d73a00b3b497e01678cdf4b82491a800
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-07-02 08:31:11 +00:00
Henning Gruendl
c7ad1c31bd QmlDesigner: Fix Qt6 property editor issues
* Fix hover state for disabled controls
* Fix deprecation warning about injection of parameters
* Code cleanup
* Update QtQuick import version
* Update copyright header

Task-number: QDS-4658
Task-number: QDS-4665
Change-Id: I756a0cdeb1bcdf0ea324d112fb9c5f88cadde6b3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-07-02 08:30:58 +00:00
Christian Kandeler
4d27740baf ClangCodeModel: Prefer ui headers from ExtraCompilers
... to the ones from the actual build. The former are generally more up-
to-date.

Fixes: QTCREATORBUG-25937
Change-Id: I20859de9816457c340d9e1ec6a3008c536537d8b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-07-02 08:20:51 +00:00
Christian Stenger
8747e2fe1f Unittest: Fix compile
Amends a58dd22f2d.

Change-Id: I85978b4cc39c633f882c22f74335f11b0dfdfe09
Reviewed-by: hjk <hjk@qt.io>
2021-07-02 08:16:19 +00:00
Jarek Kobus
c66d678a9d Replace two bool flags with one enum
Since it's not allowed to have both m_fullUpdatePostponed
and m_partialUpdatePostponed set to true, replace these
two flags with one UpdateType enum.

Change-Id: Ia4193dafd234f817d34204709d14f345c0a3b962
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-02 07:51:07 +00:00
Christian Stenger
4430c33458 AutoTest: Fix environment for ctest execution
The build environment may or may not contain the respective
paths to get the tests running, but the run environment
usually must have them correctly.

Change-Id: I392f6b61551b5927646daf3055134628f6d4f536
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 07:48:41 +00:00
Christian Stenger
2971aac8c2 AutoTest: Handle test crashes inside ctest appropriate
If a ctest run fails to start the test application it will
provide some hints we ignored for the visual output, which
ended up in no result for this test.

Change-Id: Id90c4855163c742484f55f7b422a6f307e7fd861
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 07:39:27 +00:00