Commit Graph

69365 Commits

Author SHA1 Message Date
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
Christian Kandeler 58f0f3928c Clangd: Fix tooltip test
- We require the "full AST" feature from clangd 13.
- QSKIP does not work like QEXPECT_FAIL.

Change-Id: Ie1c417013d668ace600fad76e83276ca961b8327
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 07:08:57 +00:00
Leena Miettinen 51e5616a28 Doc: Update info about generic highlighting
- You can select from several applicable definition files and
  save your selection
- Update Definitions was renamed as Download Definitions
- Reload Definitions and Reset Remembered Definitions we added
- Fixed a broken link to Kate docs

Task-number: QTCREATORBUG-25642
Change-Id: I7b3b62f4e4e7935e2e008f974036aaa5177229bf
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 06:29:53 +00:00
hjk 9287b1a3be Utils: Introduce FilePath::is{Relative,Absolute}Path
To operate correctly with remote target files systems that do not
match the host OS.

Change-Id: Ia4ea284dc38399deacb50410c9618e1e139f4e13
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 06:29:12 +00:00
hjk 9a35983b09 Utils: Make FilePath::isNewerThan work remotely
Change-Id: Ic293abd5be6b1dc35d32f470a55686a41d70cab1
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 06:17:52 +00:00
Nodir Temirkhodjaev 7bb7debb5c styles/inkpot.xml: Add definition for "Parameter"
Task-number: QTCREATORBUG-25619
Change-Id: Iebf1710f3bb75e022a8267993ab8cfa37eaff847
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 05:59:59 +00:00
hjk 4ba07d05c4 Utils: Make a FilePath's osType publicly accessible
Will help with proper is{Relative,Absolute}Path implementations.

Change-Id: Icad90b5a55d9cf733f6ee66dbbe273ec9682d387
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 05:36:36 +00:00
hjk 1db9dd058e QtSupport: Use FilePaths in BaseQtVersion::isInSourceDirectory
... and isSubProject.

Take the opportunity to rename them into isInQtSourceDirectory and
a isQtSubProject to make its limited scope clearer.

An open question is why this is only used for qmake projects.

Change-Id: If36f9457583eac17e149624ec46e5de10dd4a5a5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-02 05:30:41 +00:00
David Schulz 18b98a85eb Editor: only remove one scheme at a time
Since the delete button has already the accept role the delete was
triggered twice. First time by the role and second time from the connect
of the button clicked signal to QDialog::accept.

Change-Id: I9bd6104d36f286ec8bd0b25ee4ab6e7c8306d51a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-02 05:28:38 +00:00
David Schulz 8bef120f14 Editor: fix duplicating color schemes
Core::ICore::userResourcePath seems to have returned a string
with a trailing slash before it returned a Utils::FilePath.
This allowed us to just concatenate the resource path with the pattern.
Use FilePath::pathAppended to make sure the styles end up in the correct
directory.

Fixes: QTCREATORBUG-25944
Fixes: QTCREATORBUG-25910
Change-Id: I6ac735e3746e4328b5bbae4e55d91ef642277886
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-02 05:28:30 +00:00
hjk 39707a4258 Docker: Add a README for the manual test
Change-Id: I588d525d06be33ebb5eb1b9b927c4488aeba0120
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-02 05:14:05 +00:00
hjk a58dd22f2d Utils: Use FilePath in TemporaryDirectory API
This helps to lower impedance in the using code.

Even though TemporaryDirectory will very likely always stay on the local
host, this is one of the entry points into path related string
manipulation
that we want to base on FilePath nowadays.

Change-Id: I302016b8d65e54df94296659a54a93935d9e4627
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 05:05:12 +00:00
hjk 92904480f0 Utils: Merge FileUtils::removeRecursively() into FilePath
This simplify the interface by removing a possibly wrong choice
ensures it works also on remote paths.

Change-Id: I01e198958900a91b99dcf2dbb491a593485493ba
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-02 04:57:24 +00:00
Cristian Adam 8ed5836746 Project: Remove knowsAllBuildExecutables feature
This is feature is no longer needed.

Change-Id: Ia0798402fcb4c06fb4dd38225359738306211176
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: hjk <hjk@qt.io>
2021-07-01 15:49:01 +00:00
Miikka Heikkinen 18f24ffd68 QmlPuppet: Fix multiselection fit object in 3D editor
Multiselection is now properly fit to the view when fit object is used.

Fixes: QDS-4608
Change-Id: Ia80133fc861bd177b9102423ebef37b592c74758
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-07-01 14:29:35 +00:00
Christian Stenger 111f1465c8 Wizards: Fix QtQuick Stack wizard
Amends 1e80ed9b78.

Change-Id: I2a30c38ff84a9793452a66265b584d47938444a7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-07-01 14:08:12 +00:00
Eike Ziller b1171f83c1 CMake build: Enable BUILD_WITH_PCH for builds with Qt 6
The issues have been fixed in the meantime

Fixes: QTCREATORBUG-25950
Change-Id: I22cf765acd3008a5b216a9e6afe5854589c7b515
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-07-01 14:04:20 +00:00
Jarek Kobus 4aaae4939a Simplify the assert condition
Change-Id: I59d6fe1bcfeabc33b24efc68c6e691d4e549faf7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-01 13:22:44 +00:00
David Schulz 8ff74cc46c LanguageClient: prevent sending symbol request to unreachable server
Change-Id: Ie7b7ee2a89b3e7e7d55b2ef1714b574c87a2897e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-07-01 11:43:09 +00:00
Leena Miettinen 79ca424782 Doc: Describe code indentation options
- Describe the related menu options in Edit > Advanced
- Describe showing (context-sensitive) right margin in editor

Task-number: QTCREATORBUG-25642
Change-Id: I6377488d2417faedb58ae7dce65158b7d62c3f9d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-07-01 10:51:00 +00:00
hjk 6f5d78a297 QtSupport: Use FilePath for several BaseQtVersion members
uicCommand(), designerCommand(), linguistCommand(), qscxmlcCommand(),
qmlsceneCommand(), qmlplugindumpCommand().

No change in functionality intented.

Change-Id: I43121de559019f96c2c1ff3b423974dddfc37124
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-01 09:30:29 +00:00
Christian Kandeler c0a44be27b ClangCodeModel: Provide outline via clangd
Note that we used to encode the information about symbol visibility and
static-ness in the icons, which we can't do anymore, because clangd does
not provide this information.
On the upside, this change likely fixes a ton of bugs, as our own outline
was rather "quirky".

Change-Id: I099f11ec4e3c6f52cd461fb43080bbdde3bed5e5
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-01 08:36:20 +00:00
Christian Kandeler f4a3310059 Clangd: Handle settings changes
Users no longer have to re-load a project for settings changes to take
effect.

Change-Id: I86dccccac14a30514c8dac292c7765ee4806f6ba
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-07-01 08:34:51 +00:00
hjk b52f2d198a QtSupport: FilePathify BaseQtVersion::qmlsceneCommand()
Change-Id: Ia0bc3fcb40bbda31cd114503ab599b65d7597e70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-01 07:37:00 +00:00
hjk c6dc02313d Core: Filepathify SessionManager::sessions()
Change-Id: I68b6a9f597d3a4f568653e7201a81909053df83e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-01 06:36:02 +00:00
hjk 2ceb105323 Utils: FilePathify BuildableHelperLibrary
Change-Id: I18791de1ed69e598b6c35cbae4ba28ac8129e9de
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-07-01 06:33:38 +00:00