Commit Graph

69817 Commits

Author SHA1 Message Date
Assam Boudjelthia cd8da8fe5f Android: Get the minimum sdk level based on the used Qt version
Currently, Creator gets the minimum sdk version from a hard-coded
value (16) which is used for all projects. However, this is not ideal
because some Qt versions require a specific sdk level to build and run
properly. So, this change ensures that the minimum sdk value is obtained
based the Qt version used in the project.

Fixes: QTCREATORBUG-26127
Change-Id: I948dd18d16c3d9ca587ad7712aa4c9a1bfd53972
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-08-26 08:03:09 +00:00
Eike Ziller 34a884a52a Android: Clean up messed up kits that were created by Android plugin
No idea how to reproduce, but it can happen [1] that stale Android kits
appear in Qt Creator, which have broken combinations of Qt version and
toolchains. The Android plugin updates the Android kits at startup,
but only updates known "correct" kits, or creates new ones.

Additionally remove any previously auto-created Android kits that
were not recognized to be still usable.

[1]: probably after switching between a working Android setup and a
broken one, with broken toolchains/debuggers brought into the mix

Change-Id: I709f52df62f8998647e4d68bdfe76015e8941ab8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-08-26 07:19:46 +00:00
Miikka Heikkinen 8aad2c803a QmdDesigner: Enable rendering single items again for render puppet
Change the form editor rendering to be done by item basis instead of
just rendering the entire scene (unified rendering).

Fixes: QDS-2933
Change-Id: I999cbc834791bc6e96334eab8273d97e4f58975f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-08-25 15:38:17 +00:00
Christian Stenger ea2b4872a9 QmlDesigner: Fix compile
Amends a9d730dfb9.

Change-Id: I484353822fa42c0857ba4950cbfdddc063f14843
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-08-25 14:22:09 +00:00
Ivan Komissarov 53019b45dc Update Qbs submodule to the top of 1.20 branch
Change-Id: I7a9c15344b821a9d3773c0a4585cb7e6af0adc37
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-08-25 13:21:35 +00:00
Thomas Hartmann a9d730dfb9 QmlDesigner: Add support for Vector4D
SpriteParticle3D colorVariation is a Vector4D.

Task-number: QDS-4876
Change-Id: I756f7a688266d67be1b275d4151874befefc0530
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-08-25 09:52:44 +00:00
Leena Miettinen 0b81fcafc6 Doc: Clarify the use of the distribution buttons in Properties
Task-number: QDS-4139
Change-Id: Ie657b78ee3a4e5c3222efae4b1499d00ac55133b
Reviewed-by: Tanja Remes <tanja.remes@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2021-08-25 08:52:36 +00:00
Mahmoud Badri 72536eb155 QmlDesigner: Fix assets library theming
Also define the themeUnimportedModuleColor value in the theme files.

Fixes: QDS-4935
Change-Id: I3fc0b2316ebc1b11e4de87c09e2136e768e5cbe2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
v5.0.0
2021-08-24 18:09:23 +00:00
Henning Gruendl 88ee84c5b1 QmlDesigner: Fix splash screen check box color
Task-number: QDS-4934
Change-Id: Ia92675d7c83eb5a94892714fd7889f85182d2e13
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-08-24 17:57:23 +00:00
Kaj Grönholm d1d5f47bda Fix building with Quick 3D dev
Adjust to camera changes b74fde27@qtquick3d

Task-number: QTBUG-95932
Change-Id: Id7408541caaebb0ee18240e7bc4208ac416fb0b9
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2021-08-24 15:35:30 +00:00
Thomas Hartmann c7de2a224f QmlDesigner: Fix crash
There may exist components that do not belong to any project.

Task-number: QTCREATORBUG-26166
Change-Id: I77f5ec9c5d718300a38db203f9b5d1b1a4e96d1f
Reviewed-by: Tapani Mattila <tapani.mattila@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-24 13:53:48 +00:00
Aleksei German c129ecfc3c QmlDesigner: Fix for styles ComboBox
- New styles;
 - Rework to be more reliable with complex names.

Task-number: QDS-4750
Change-Id: I63d89575540a463e8b6786c82a28effa185f10c5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2021-08-24 13:06:11 +00:00
Johanna Vanhatapio 4c6d7c63b7 Doc: Describe Joint and Skeleton components
Task-number: QDS-4888
Change-Id: I9a9664cb327f2ddad2025d5c38bb2f3b1bebb887
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Inho Lee <inho.lee@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-08-24 13:00:58 +00:00
Mahmoud Badri da82253095 QmlDesigner: Fix root item size on first launch
Fixes: QDS-4936
Change-Id: I9b25788dcc11c14b5a7ef80dc7aad5f3ec3e636e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-08-24 12:16:54 +00:00
Eike Ziller 6feed6e656 QmlPreview: Fix socket connection on macOS
With Design Studio branding the temporary path got just too long (107
chars). Make the file name shorter, and add a warning for future
reference.

Change-Id: Id5ff448d55a8b109234b7c113695ea54b1836a2f
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-08-24 11:08:16 +00:00
Eike Ziller e017eaa3fd Doc: Update information about Qt Creator plugin wizard
After the switch to CMake.
Extends 29f3be1a6e

Change-Id: I626bc7393d290710d7e5d1f2907e6fa1f25a7d21
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-08-24 09:34:27 +00:00
Henning Gruendl c6483a33bd QmlDesigner: Fix distribution SpinBox drag
* Replace StudioControls.RealSpinBox with a DoubleSpinBox
* Add tooltips to distribution origin buttons
* Add spacer between distribution orientation and origin buttons

Task-number: QDS-4139
Task-number: QDS-4927
Change-Id: I5670494d39cb5b5d3d36428583cde5e7434a8d76
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-08-24 09:28:03 +00:00
Alessandro Portale bf2088075d Android: Don't crash in AndroidAvdManager
cancelChecker is an optional parameter.

Change-Id: Ie47ae834a34f8ebf8c901e4dcaf7a9c3af5c0ce4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-08-24 09:21:20 +00:00
Thomas Hartmann 8c8519853c QmlDesigner: Do not set literals as bindings
Literals like 'true' or '1' are no bindings and should be set
as variant properties. This requires special handling for QVariant.

Task-number: QDS-4684
Change-Id: Ib831fb78e76fbd7563fe3897b8a2c5379ee9a9db
Reviewed-by: Tony Leinonen <tony.leinonen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-08-24 08:55:04 +00:00
Thomas Hartmann c0c3920a11 QmlDesigner: Allow bindings in default properties
Task-number: QDS-4704
Change-Id: I7138fb268e52252215f4fde358a9ea43451c0eef
Reviewed-by: Tony Leinonen <tony.leinonen@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-08-24 08:54:55 +00:00
Christian Kandeler 5c6ebf7434 CppEditor: Fix race condition in test
Opening an editor starts a new parser, so we must do that before we wait
for the parsing to finish.

Change-Id: Iee9da8da1fb60bf496a093d8efd878101d91f53f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-24 08:19:54 +00:00
Kai Köhne ca885ee87a README.md: Document Qt Creator main licenses
Change-Id: I4d5803c746ebfc0a17e6c21745c1c8775e2d50f0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-08-24 07:07:47 +00:00
Leena Miettinen 5c8564015e Doc: Fix term used for angle brackets in coding style topic
Change-Id: I73f21a9fd8fbf2e4388b501edbc27371d907b166
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-24 07:04:59 +00:00
Tapani Mattila 4c50ec85b7 QmlDesigner: Show warning icons for each file
Task-number: QDS-3797
Change-Id: Ibcbed1a221e762e0e6a3b4f9f538b8e4b1f144d3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-08-23 16:21:41 +00:00
Tim Jenssen 0588161edd macOS: workaround for missing libqsvg.dylib
Change-Id: Ibc0e758eab53f92978458f0c9a1be505c9421439
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-08-23 16:15:28 +00:00
Henning Gruendl 7d7ca4fd89 QmlDesigner: Allow hot reload for shadow builds
In shadow builds copies of the QML files are loaded.
When setting LOAD_QML_FROM_SOURCE the QML source files will be loaded
from the source directory instead.
Works only for cmake and qmake

Task-number: QDS-4317
Change-Id: I6e82864f073cb2fdf1111daf74a133c556e8721b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-08-23 15:09:14 +00:00
Thomas Hartmann 777efce0e6 QmlDesigner: Fix assert
Task-number: QDS-4875
Change-Id: I16ec87b8fdf6353b6ec3947d4905dc4d057a49b7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-08-23 15:08:52 +00:00
Eike Ziller b08d2d6850 Update change log for 5.0.0
Change-Id: Id0ad54068067df3dfdf288abfda5549d8ae251df
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-08-23 15:06:04 +00:00
Leena Miettinen 858757a31f Doc: Arrange wizard templates in tables
This takes less space than lists and enables easier browsing
for a suitable template.

Fix links to the preview topic (the title changed).

Change-Id: Ife914ee5ce6bb45446e6044000e53b949746f2f8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-23 12:26:52 +00:00
Christian Strømme 4788f0671f Update MouseArea3D::getCameraToNodeDir() to not rely on cameraNode()
The cameraNode() function has been removed from QtQuick3D and it only
existed because of the weird way we we're creating the camera node.
Now, instead of the round-trip, just request the spatial node directly.
See: b74fde27@qtquick3d

Change-Id: Icc8584aebee4952356769a134756074cba8d1b0e
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2021-08-23 12:22:04 +00:00
Leena Miettinen 29f3be1a6e Doc: Update info about Qt Creator plugin wizard template
Update screenshots

Fixes: QTCREATORBUG-26153
Change-Id: I3dddbc1b8b8f6989a9afd445f1df3e868fd72e0f
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-23 12:14:42 +00:00
hjk 82e94ceae6 Qbs: Use 0 as minor version for 5.0.0
Change-Id: I920e0703ec89bcc87ea72a42ccf59c266b38442a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-23 10:12:15 +00:00
Robert Löhning 4455dd2ece Squish: Prepare tst_WELP01 for Qt 6
Working around the wildcard issue...

Change-Id: I3d3b8e0360762ea72c39a49274df271fc0090e8b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-23 09:28:25 +00:00
Robert Löhning 0824aa2ce3 Squish: Use tab visibility hack on Windows, too
Change-Id: I6e5f4b75747b703ab46e2f3776b134aff8b34ac0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-23 09:26:39 +00:00
Robert Löhning 3d20cc68e5 Squish: Update tst_memberoperator
Change-Id: I929ef6dc2db7c9efdd0c33c42aa44268595bc75d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-23 09:26:24 +00:00
Robert Löhning f1c5c1fc03 Squish: Stabilize tst_memberoperator
Frequently wait for the editor again to avoid the
"Error in type() invocation".

Change-Id: Id8e5971e6ef8fbb8dfb59fbb971a2212557adf72
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-23 09:26:17 +00:00
Orgad Shaneh c3c592eed4 Utils: Add missing emits in ShellCommand
Change-Id: Ibfdcad6baaf05e47bec1c13647fa301a777a8346
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-08-22 06:37:30 +00:00
Cristian Adam 54c5322322 CppTools: Code model fix for C++20, MSVC, and newer CMake versions
Starting with version 3.20 CMake adds -std:c++20, which breaks the
code model when using MSVC.

Clang-cl 12 doesn't know about -std:c++20, but clang driver knows
about -std=c++20.

Fixes: QTCREATORBUG-26146
Change-Id: I696842e11b0a9ba8849455d2f81f8dde6dd95a27
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-08-20 15:28:57 +00:00
Mahmoud Badri dc8801e495 QmlDesigner: Fix form editor broken render
...when creating a new project on first launch of the QDS using Qt6.

Task-number: QDS-4474
Change-Id: I486ecde9306bcacb3619e291d2967b411a362d5b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-08-20 15:08:00 +00:00
Alessandro Portale e803e76d28 Tests: Fix CMake build with Qt 6.2-Beta3+ and WITH_TESTS
NO_CREATE_PLUGIN_TARGET -> NO_PLUGIN

Amends: c568ab89c5

Change-Id: I579a5ec14a147c4cf641915c224ddee7ac573b80
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-20 14:15:43 +00:00
Cristian Adam c1c70d339d CMakePM: Fix build library search path with CMake 3.20+
CMake 3.20 has changed the relative path to dependent libraries
from current binary directory to main binary directory.

See https://gitlab.kitware.com/cmake/cmake/-/issues/22556

Fixes: QTCREATORBUG-26110
Change-Id: I39c1d6b2998ebb079e7017e8d349881752d80354
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-20 13:58:15 +00:00
Cristian Adam 19fded6a6a CMakePM: Add variables to skip Qt Creator's package manager to cache
This way you will get the variables in the variables list and you only
need to change them from OFF to ON.

This won't fix the tasks below, but it will remove the lookup of the
special variable names.

Task-number: QTCREATORBUG-25680
Task-number: QTCREATORBUG-25891
Task-number: QTCREATORBUG-25972
Change-Id: I8ed1d5c4275516b10f4f10ad63b3de0f6b2ffbc8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-20 12:40:37 +00:00
Christian Kandeler 2e77362da0 Fix some compiler warnings
Change-Id: I8d7feef99b8f59b29efe9caae02aa75cdf5ac597
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-20 10:28:20 +00:00
Leena Miettinen 4d430753fe Doc: Update images to show the new Properties view layout
Task-number: QDS-4561
Change-Id: I3df1bb880aeea69e174e16eef9c9027eb1b60b5a
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2021-08-20 09:26:44 +00:00
Leena Miettinen a4a3b65ac6 Doc: Update Navigator screenshot to show new export icon
Change-Id: I3aff102e4611fc6f736c6dd1edfdf2f9707803bd
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2021-08-20 09:25:51 +00:00
Leena Miettinen 3b2bd641ee Doc: Update info about how MCU support is indicated in Properties view
Strikethrough text is now used instead of square brackets.

Task-number: QDS-4561
Change-Id: I83b7d2e3090c6b69465645c1844ca9a148ebbb4f
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2021-08-20 09:15:50 +00:00
Johanna Vanhatapio 0318def56e Doc: Update info about 3D models
- Screenshots
- Info about tessellation properties
- 3D Materials not available in Qt6

Task-number: QDS-4888
Change-Id: I045fb9b760b21dba4a86a9d1f2e6efc6722cef35
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-08-20 09:00:40 +00:00
Alessandro Portale c568ab89c5 Tracing/QmlProfiler/PerfProfiler: Fix qt_add_qml_module call
This change fixes the failing configuration against a recent Qt (post
6.2-Beta2) build:

CMake Error at QTDIR/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:196
(message):
  PLUGIN_TARGET must also be provided when NO_CREATE_PLUGIN_TARGET is
  used.
  If you want to disable creating a plugin altogether, use the NO_PLUGIN
  option instead.

Change-Id: If1dbfb09bda8e8cdd07cc575076dd6ccec1a4d39
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-08-20 07:03:24 +00:00
hjk 142a34464f Utils: Avoid adding duplicated slashs in FilePath::pathAppended
Change-Id: I791412906e94a967a61d9b3212b704936c447183
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-20 05:33:34 +00:00
Eike Ziller 3611fb1065 macOS: Exclude CMAKE_PREFIX_PATH when searching for dsymutil
dsymutil is shipped with libclang, but we usually don't want to use that.
Fixes universal builds while we don't have a universal build of libclang yet.

Change-Id: Ie5c435e1c391f7bb0a8f1faadbb7b3375d101990
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-08-19 14:00:33 +00:00