Commit Graph

69799 Commits

Author SHA1 Message Date
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
David Schulz
3677f0be74 Editor: fix "parameter" default value in color schemes
Fixes: QTCREATORBUG-26124
Change-Id: I68c1a2c9df398beb6d8db82f85a0b9641b611539
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-19 12:03:44 +00:00
Thomas Hartmann
d5214b0e45 QmlDesigner: Do not create components from componentPath in importPaths
If the component comes from the import paths we should not create
the component directly. This can have subtle unwanted side effects.
Styling for example is not working with Qt 6.

Change-Id: Ia4f33b46d3dc427ac95838f2ca73a880639d600a
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-08-19 11:21:30 +00:00
Henning Gruendl
e3ac8a79b9 QmlDesigner: Fix editable ComboBox
* Fix editbale ComboBox by replacing TapHandler with MouseArea as nested
  TapHandler doesn't get triggered anymore with Qt 6
* Remove unnecessary when condition in ComboBox

Task-number: QDS-4905
Change-Id: I11439c1bb2c1dac8709bf7e1744b33990d9a1f86
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-08-19 11:21:19 +00:00
Robert Löhning
468b2aec2d Squish: Update tst_WELP01
The "Get Started Now" button opens a different page.

Change-Id: I99b4b492afae3d5389eabbf9f3661d3653a2460f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-19 11:15:21 +00:00
Robert Löhning
939fb7cb0c Squish: Fix storing breakpoint locations on Windows
Not changing Linux or Mac.

Change-Id: Idcc22c9d960ced7145b10651f75c78a740714cff
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-19 11:15:00 +00:00
Miikka Heikkinen
ffd8ebd17b QmlPuppet: Remove 2D rendering from InformationNodeInstanceServer
Using cross-window 2D content in 3D scene is prone to crashing,
and causes also issues with the primary purpose of
InformationNodeInstanceServer, i.e. getting the information, as the
rendering will remove dirty flags from nodes prematurely.

Fixes: QDS-4858
Change-Id: I9057889a28d36f12f1e401e9a39f808d66637681
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-08-19 08:08:35 +00:00
Aleksei German
d7b42e5455 Python: Fix for Wizard generated file names
- Changed generated project filenames
 - Added default Class name

Task-number: QDS-4897
Change-Id: I16318cf7cbdcf078f4da01016ebeef8036a85eb0
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-19 08:06:34 +00:00
Kai Köhne
bc988c69fa Fix executable path for QML utility
Amends 453f4996db

Fixes: QTCREATORBUG-26137
Change-Id: Ic5c1688e8a11cffa10504026b303fb1e30a34fc4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-08-19 06:23:58 +00:00
Henning Gruendl
95a1049cee QmlDesigner: Fix small CheckBoxes in splash screen
* Remove NoShowCheckBox component replace it with stock CheckBox
* Add missing qsTr to statistics CheckBox
* Place CheckBoxes in a ColumnLayout
* Align all text items equaly 16 px from the left
* Align close cross
* Replace root image with Rectangle and gradient
* General cleanup

Task-number: QDS-4742
Change-Id: Ie7828531d2510323db3010add840a4e5d09aebe3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
qds/v2.2-beta2
2021-08-18 14:50:36 +00:00
Orgad Shaneh
c6ac773b9a CppTools: Fix indentation of plain strings
Raw strings should not be indented, but old-style strings still should.

Amends commit ddf7f5f232.

Fixes: QTCREATORBUG-25817
Change-Id: I7836388efb2d19b8b898c7463c7fa2d2077e80b2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-08-18 12:39:43 +00:00
Eike Ziller
57243d4dc6 build.py: Only zip the .app on macOS
Not the full contents of the folder containing the app.
Works around QTBUG-95845

Change-Id: Id515142b99891e89d0f4db5dae009c481939811f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-08-18 12:14:26 +00:00
Christian Kandeler
49b0026826 ClangCodeModel: Adapt clangd tooltip test for include directives
This feature was recently added upstream
(https://reviews.llvm.org/D107137).

Change-Id: I022855cd5d69230b755cdd657c5a7df2db5508ce
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-08-18 12:10:34 +00:00
Orgad Shaneh
2384865bff UnitTest: Adapt to Google Benchmark v1.5.4
Change-Id: I2c2a34206dbc01d277242f5d736eef3e1333b01f
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2021-08-18 11:58:46 +00:00
Leena Miettinen
85f34d50fc Doc: Describe how to set default run target in CMakeLists.txt
Task-number: QTCREATORBUG-25642
Change-Id: Idfeb2499e27e4b854a3c18e9b7d7c5dd53fc291b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-08-18 11:57:55 +00:00
Christian Stenger
0d23a3b886 AutoTest: Handle resizing appropriate
When the user resizes QC and has a test result selected which
contains multiple lines these lines will be re-evaluated
and may now end up in having more or less lines than before.
We need to inform the UI that this caused a change of the
needed size otherwise we end up in omitting lines or adding
empty lines.

Task-number: QTCREATORBUG-26122
Change-Id: I91b0271975f8f0fff128ef7cf6c74947c0162ea9
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-18 11:54:07 +00:00
Christian Stenger
017416e327 AutoTest: Take indentation of sub items into account
Otherwise we might end up losing final lines depending on
the output and the need of wrapping the text.

Fixes: QTCREATORBUG-26122
Change-Id: I724bacfa8be37a056f56a67fce4b724d367fda4a
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-08-18 11:53:14 +00:00
Leena Miettinen
668a4b59bf Doc: Describe adding several accepted buttons for a mouse area
Task-number: QDS-4561
Change-Id: Iadb128c64c42383ddd899a389498e19514068cfa
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2021-08-18 11:37:50 +00:00
David Schulz
e05c786780 QtSupport: check for preferred toolchain by host
Instead of just prefering perfect matches also take the host platform
into account when looking for matching toolchains. This allows us to
prefer the amd64 compiler over the x86_amd64 msvc compiler.

Change-Id: I59c8b7f95765a76ded7771cb8c26e03581ca2350
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-08-18 11:11:40 +00:00