Commit Graph

88532 Commits

Author SHA1 Message Date
Miikka Heikkinen
ea7aca28c7 QmlDesigner: Store 3D split view camera angles per split
Splits 1-3 default to axis oriented views.

Fixes: QDS-10996
Change-Id: I111c9b76ae335f8630eeae5e51bbefb2e702f6df
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-10-23 12:18:33 +00:00
Leena Miettinen
86e8676bec Doc: Describe setting DPI rounding policy
Task-number: QTCREATORBUG-29392
Change-Id: I45eef9d1282f7df3f75f08ff55745c4205f553d9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-23 10:40:00 +00:00
David Schulz
30ef90c322 Terminal: add finished signal
Change-Id: I9d560d1f1bbaa94ae75420002744073a1e8fad1a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-23 10:24:48 +00:00
Alessandro Portale
76bcd85f21 WebAssembly: Avoid soft assert on toolchain auto detection
Windows only: When toolchains get restored on startup,
WebAssemblyToolChain would try to add MinGW to an environment. That
env is used for querying the compiler version. In order to find MinGW,
the MinGW toolchain is queried from ToolChainManager. But since the
ToolChainManager is not yet loaded at this moment, we get a QTC_CHEK
assert from ToolChainManager::toolChain.

This change prevents querying the ToolChainManager before it is loaded.
The compiler version can successfully be determined without MinGW in
path.

Whether we really need to query compiler versions that early is another
question outside the scope of this change.

Change-Id: I46edbb80edc58d7465e90e99f7f8381708f704a1
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-23 10:12:50 +00:00
David Schulz
6f4b9639ce TextEditor: highlight selected text
Change-Id: Ib46908decef51d478f6954a116108c48e4a07ed3
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-10-23 07:33:45 +00:00
Leena Miettinen
e454dc0f1f Doc: Describe setting default C++ file name extensions for a project
Task-number: QTCREATORBUG-29392
Change-Id: I2bba1d26dc6177a1f6b3f78483e669244fa15ff1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-23 06:49:34 +00:00
Tim Jenßen
09f13dea04 QrCodeGenerator: enable by default
BUILD_DESIGNSTUDIO was introduced to have all
commercial plugins as a developer while
programming.
In packages its depending on which plugin goes
to which license and we did not had that for
libraries.

Change-Id: Ib02b166ea756c939e19f625c76207c07729f38bc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-10-21 07:27:07 +00:00
Cristian Adam
423315178a CMakePM: Fix display of header / source files
Qt Creator will display the header / source files based on the
sourceDirectory of the target as base directory.

The source_group(TREE <dir>) will result CMake in making a source group
named "TREE" which should not be displayed in the project view.

Amends 9280f7f757

Fixes: QTCREATORBUG-23942
Fixes: QTCREATORBUG-29105
Change-Id: Ib71ffcc559376ea1596a5b21cb7e7fa779bd8d79
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-20 17:15:43 +00:00
Leena Miettinen
61088bba69 Fix UI text capitalization, punctuation, and phrasing
Change-Id: I41951660a464601063e5cedd417db2cb7cd37e44
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-20 14:55:38 +00:00
Alessandro Portale
76f082186e Android: Fix build dir for Qt6/CMake + changed LIBRARY_OUTPUT_DIRECTORY
The "proper" build directory is required during different stages of the
Android application deployment. For example in order to determine the
input .json file for the androiddeployqt launch.

If the CMake target has a modified LIBRARY_OUTPUT_DIRECTORY property, an
incorrect build directory was determined. This change adds a hack which
in such case (and only for Qt6 + CMake) tries to find the right build
directory, which also contains the .json file.

Fixes: QTCREATORBUG-26479
Change-Id: I24342f696aed7a322030eb9310d3ca71bcada81c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2023-10-20 14:08:56 +00:00
Cristian Adam
aef415a25d CMakePM: clang-tidy fix for 'move-const-arg'
See https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-
tidy/checks/performance/move-const-arg.html

Change-Id: Ic20445321286fdcb8b02e1b2cf170e0fe60fd1fd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-20 13:57:40 +00:00
Cristian Adam
55cccfa59e CMakePM: clang-tidy fix for 'no-automatic-move'
See https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-
tidy/checks/performance/no-automatic-move.html

Change-Id: If265c9b0e2aea49e5923f079cd621e10bb958286
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-20 13:57:34 +00:00
Cristian Adam
69815af272 CMakePM: clang-tidy fix for 'performance-implicit-conversion-in-loop'
Change-Id: I67e5adad19a3454986381c5548bbe96cf1cc1e6a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-20 13:57:28 +00:00
Cristian Adam
43121fa574 CMakePM: clang-tidy fix for 'perf*-unnecessary-copy-initialization'
Change-Id: I9c407f7254328e7278096239f6f3946c34e873d5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-20 13:57:20 +00:00
Cristian Adam
60de12efd2 CMakePM: clang-tidy fix for "performance-unnecessary-value-param"
Change-Id: Ia22d7c3fe6c29a5e0999145b6c4b281818dd72bf
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-20 13:57:15 +00:00
Aleksei German
6fcd0debe4 QmlDesigner: Improve percent Gradient support
- Changes default gradient units to Percents
- Adds percentage support to Radius properties
- Moves instanceValue checks into PropertyData
- Moves binding string assembly into PropertyData

Task-number: QDS-10942
Change-Id: I952aafa60e3b2e3221f74e5571516c2d4cbe7c02
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-20 13:39:10 +00:00
Ali Kianian
ebab3e1c5a QmlDesigner: Prevent collapsing the collection node while it's selected
Task-number: QDS-11005
Change-Id: Iacc4494fac3b37f3bbeb71c99ab012d30b5a44da
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-10-20 13:19:00 +00:00
Ali Kianian
104a45a461 QmlDesigner: Add table buttons for adding rows and columns
Task-number: QDS-11003
Change-Id: I573921ab6f57d7854658086a46051c8650e5b23a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-10-20 13:15:31 +00:00
Pranta Dastider
957d8efe56 QmlDesigner: Update the text arrangement and include tutorial video
Some text were out of the place. This patch fixes that.
It also includes a tutorial video that was later
created for showcasing the connection view workflow.

Fixes: QDS-10937
Change-Id: If0b6ddba89022db5bf817a16368c6e2747855355
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-10-20 13:00:45 +00:00
Pranta Dastider
da1ecb4b36 QmlDesigner: Update the Designer-Developer workflow doc
This patch updates the Designer-Developer workflow document.
Removes the old image and add new images to support the current
workflow.

Fixes: QDS-10916
Change-Id: I3e448b36bd634da4fede76343567ebd2282faffd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-10-20 12:58:32 +00:00
Christian Stenger
73d0c4a29d AutoTest: Tweak Test Case wizard
We now support Catch2 in two different versions which means
we need different include directives depending on the version.
Let the user choose the correct version instead of providing
a fixed one that may be correct or not.

Change-Id: I0199070b4f4602b8e08b7ac60731071f0cd33141
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-20 12:52:05 +00:00
Christian Stenger
531fe36ac5 CMakePM: Silence warning
This is not handling the respective role correctly, just
silencing the warning. No change in current functionality.

Change-Id: Icd904941d5fc496d66b8e1eb7eec0031840f519d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-10-20 12:51:45 +00:00
Jarek Kobus
19511eaf1a BuildManager: Don't stop the run control being started
Fixes: QTCREATORBUG-29689
Change-Id: I65b5b6e94176ae2dcf09374755b4c3d70e844a3c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-20 12:43:48 +00:00
Cristian Adam
3d77369e4c ClangTools: Fix clang-tidy documentationUrl for version 17.x.x
Amends 51a650f30b

Fixes: QTCREATORBUG-29782
Change-Id: I4ce740900beb718d9628c35042b3467ec23de8d3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-20 12:05:14 +00:00
Amr Essam
96dfdfc0b7 QmlDesigner: Fix some parsing issues in effect maker
Task-number: QDS-10987
Change-Id: Ifeb42f9e04ba39ddaa45a03b60eb12ce1652c61a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-10-20 11:45:44 +00:00
Mahmoud Badri
1d04d50c78 EffectMaker: Add save dialog
Change-Id: Ic538e6c8c9d3ac19bd8726b95d93a9b1f292a437
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-10-20 11:12:12 +00:00
David Schulz
a18ea390e1 LanguageClient: Fix crashed client restart condition
Change-Id: I4b0195a512b6b1dcbcc6fd02f6014a27b4606ea0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-20 10:47:44 +00:00
David Schulz
5f45c36b6f TextEditor: do not scroll to cursor postion on select all
Since Qt 6.5.1 QPlainTextEdit::selectAll emits correctly
cursorPositionChanged on selectAll which calls some multitextcursor
update code on our side. Avoid setting the cursor back to the
QPlainTextEdit in this update code by setting the expected
MultiTextCursor before calling selectAll.

Fixes: QTCREATORBUG-29763
Change-Id: I77f05ac40a9dd126efcd72089a699c908c68da21
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-20 10:47:34 +00:00
hjk
fe129cc0c4 CMake: Reduce number of FilePath conversions in fileapidataextractor.cpp
Change-Id: If143843782b0bfdbdd68ab1a387d0feabfb60a33
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-20 10:27:57 +00:00
Miikka Heikkinen
3d53bd6b80 QmlDesigner: Fix quaternion compare in OriginGizmo in 3D view
Change-Id: Icefb7fb75e8dfd229a9b13028fa8f00f774be68b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-10-20 10:20:18 +00:00
Ludovic Le Brun
26b2a755a8 Fix install .so plugins
Remove the period from the file extension .so because the completeSuffix function of the FilePath class does not return the first period of the extension.

Change-Id: Ifd850e54337c399d6440b6ad765c3b23df9ed330
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-20 10:08:34 +00:00
Burak Hancerli
ab2c25d52a QmlProject: Absolute files paths are ignored
This patch fixes issues with adding files to the project by
providing the absolute paths in the .qmlproject file.

- If a directory is given without an explicit file list,
then that directory wil be searched recursively.
- If explicit file list given without a directory, then each
file will be added to the project separately.
- If both provided, then each file wil be prefixed with given
directory, and added project separately.

Task-number: QDS-10636
Change-Id: Ia13964ce2b3f6364d1def1aa71e20ec29f6f3542
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-20 10:08:24 +00:00
Leena Miettinen
fb788dec30 Doc: Describe new and changed preferences in C++ > Clangd
Task-number: QTCREATORBUG-29392
Change-Id: I54c56b65a531bccd233f5405c3add4f0dc4c18ab
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-20 10:07:40 +00:00
Cristian Adam
32b6e6309e CMakePM: Remove remainders of extraGenerator
It was not possible to set the toolset for Visual Studio 2022 generator.

Amends 4f26d802ca

Change-Id: I56caf9c0d66812eb599646a3679602af7372f419
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-20 10:07:17 +00:00
Eike Ziller
fbe9f2c614 Docker/Tr: The state is "shut down", two words
Change-Id: I62b47e4d3f7e9a0e22a086ee8db743bb004a0ac3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-20 09:46:08 +00:00
Alessandro Portale
1824db503e Utils: Restore original default DPI rounding policy
Qt Creator 11.0.2 changed the default DPI rounding policy to
"PassThrough" for Windows. In QtC 12, there is now a setting that allows
the user to chose the policy. The default was changed to "PassThrough"
also for Linux.

This change sets the default back to the original policy "Round" which
Qt Creator used from the beginnings of HighDPI support.

Amends: 3726f0d6c1

Change-Id: I74f2310f1b5379c8dea0bf86aee965374ca2732e
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-20 09:42:29 +00:00
Eike Ziller
9df0571ff9 VCS/macOS: Fix message box when closing submit editor
When using the "Close" and "Cancel" standard buttons, it is no longer
possible to change the button text on macOS. Additionally, the behavior
on pressing <esc> is broken when using QtC in german (it should just
close the dialog == cancel, but in german it triggers "close").

Task-number: QTBUG-118241
Change-Id: Ia35e6a29cd97fb91552dc5600f91be8b8e443f39
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-20 09:08:06 +00:00
Jarek Kobus
b3109755e6 Tr: Fix some source texts
Don't use exclamation marks!
Add "the" articles (conforming to the other source texts).
Finish error sentences with dot.

Change-Id: I1faa547e2c3bae90ea900b781eccf327ea810326
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-20 09:07:20 +00:00
Thomas Hartmann
4fbff05a60 QmlDesigner: Add QtQuick3D.Effects to 3D wizard
Change-Id: Id11d4232986c6b390e98740653cf465447d32c68
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-20 07:48:36 +00:00
Marcus Tillmanns
3f647a4bc5 Debugger: Fix lldb fetchFullBacktrace
Change-Id: Ib0a513ecd6c0a0094797fe987aeaddc57d0b5149
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-20 07:43:06 +00:00
Christian Stenger
ada1a7b1c0 LanguageClient: Fix qbs mingw build
Change-Id: Idb7102597a9a7cdf8a8cd5cd1ce249770e559c16
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-10-20 07:03:05 +00:00
Cristian Adam
105fd8becb CMakePM: Add "share" for CMAKE_PREFIX_PATH for completion
This would allow packages from vcpkg to be found.

Change-Id: Ie0921d9ed6cfe692bc18235bfaf678ede5c98e14
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-19 18:55:26 +00:00
Cristian Adam
a071d4354a CMakePM: Save CMAKE_MODULE|PREFIX_PATH in cache for vcpkg
This would allow the user to see the paths set by vcpkg.

Change-Id: I6d4ed9a9c69c2296851c8f8363b78d5adb7d2723
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-19 18:55:17 +00:00
Cristian Adam
cdc7857572 CMakePM: Search for Config modules also in CMAKE_MODULE_PATH
This is allowed by `find_package`, and can be tested with the `fmt`
package provided by conan.

Change-Id: Ib9bf2a6cbd80b8eb322cb6d8a1a9c25af0ca4031
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-19 18:55:09 +00:00
Cristian Adam
b5d0c5dd36 CMakePM: Save CMAKE_PREFIX|MODULE_PATH as cache variables for conan
This way it's visible in the project settings where the Conan paths are
added.

Change-Id: I95aa59c836bf3b9ed122e9bffdd61b0dd3c7354e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-10-19 18:55:00 +00:00
Miikka Heikkinen
4f893d0a7d QmlDesigner: Fix NodeHints::isValid() checks
Evaluating some properties of NodeHints is needed even if there
is no valid model node yet, i.e. when the hints have been created
from ItemLibraryEntry.

Fixes: QDS-10997
Change-Id: I321b89167530993d793b2c7beece7037093555f0
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-10-19 14:57:14 +00:00
Leena Miettinen
eccbff7698 Doc: Describe Tools > C++ > Fold/Unfold All Comment Blocks
Task-number: QTCREATORBUG-29392
Change-Id: Ie92253165b5004455be6f7dd8e031431c4358dae
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-19 14:30:22 +00:00
Ali Kianian
83c33233ff QmlDesigner: Select relevant collection and source
Task-number: QDS-10621
Change-Id: I836ca523469bce500d93b4ff0680c1ae0ef6c12c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-19 14:29:02 +00:00
Jarek Kobus
5ac19328fd Ios: Remove unused methods
Change-Id: I57ac8a80218811ebb1be6f217d37fe925de23395
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-19 13:55:38 +00:00
Christian Kandeler
d851db61c6 CppEditor: Special handling for included header corresponding to source
... when inserting additional header files.

Fixes: QTCREATORBUG-21826
Change-Id: I1b62f8a9ee3fbc222fc8ee23e840d3c55cbee390
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-10-19 13:46:49 +00:00