Commit Graph

72591 Commits

Author SHA1 Message Date
Thomas Hartmann
51b51f8826 QmlDesigner: Fix crash
Fix raise condition when the global metainfo is initialized

Task-number: QDS-6429
Change-Id: I9cbeaecb440855f44b469dae5a3ef41c9ae7d8a8
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-16 13:55:11 +00:00
Thomas Hartmann
12923a433f QmlDesigner: Add App postfix to project name in cmakelists.txt
Change-Id: Idae3a257ce8b93b7f172fe4a64d548cde54ab7ef
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-16 13:54:55 +00:00
Thomas Hartmann
bed1d5dbf5 QmlDesigner: Fix cmake template for Android
Task-number: QDS-6420
Change-Id: Iac4286b20d763debef082b48e266da121c43ff4b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-16 13:41:16 +00:00
Tim Jenssen
9976f938e8 fix warning
qtcreator/src/libs/utils/tooltip/tips.cpp:91:31: warning: suggest braces around initialization of subobject [-Wmissing-braces]
    } qt_meta_stringdata =  { 8, sizeof("QTipLabel"), "QTipLabel" };
                              ^~~~~~~~~~~~~~~~~~~~~~
                              {                     }
1 warning generated.

Change-Id: Ic9672543a16be9cf02316efd379344a26567f5e0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-16 13:26:31 +00:00
David Schulz
36f18487d9 LSP: Fix workspace folder change capabilities
Change-Id: I096dd26744acbb0296b1731403c05903209770d8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-03-16 13:09:59 +00:00
Christian Stenger
f43348c4f2 Squish: More corrections due to change of default build system
Change-Id: Ia221e1e84784f5218d14258fcc24dcac900d60ad
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-03-16 12:56:43 +00:00
hjk
42d7a96a67 Docker: Add some example for boot2qt kit setup
Change-Id: Ib4dfc474eee19d7e0f66bf5a76cd6c808df15efc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
2022-03-16 12:51:42 +00:00
Mats Honkamaa
7607f6dc06 Doc: Update presets documentation
- Add info about custom presets
- Some cleaning up, naming, etc

Task-number: QDS-6369
Change-Id: I4c8cd1109111231948c26b04f7706d122e94a9b2
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-03-16 12:17:12 +00:00
hjk
cc51e32b2d Docker: Add a warning when the mount path list is empty
The common use case shares project sources between host and docker
container, in that case, not sharing anything will not be useful.

Change-Id: I44b12089579ead008023caf5134c613fc145b8c7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-16 08:53:39 +00:00
Eike Ziller
5cf4510da5 Fix context menu of snippet editor
The snippet editor is a TextEditorWidget, but the special context menu
of that doesn't make sense in the context of the snippet settings.
Get the default context menu back.

Fixes: QTCREATORBUG-27176
Change-Id: I9681482f83fe32d15be0b1386e2fb26870b955e2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-03-16 07:46:11 +00:00
Christian Stenger
d24f13d66d Squish: Adapt to changes ui text
Change-Id: I03187ddecb7a5737a87a626135584458795aa633
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2022-03-16 05:18:18 +00:00
Christian Stenger
2907d60973 Squish: Handle build systems more appropriately
Change-Id: I43e89d76c4199a741a5606dd0d6de2165b8133c6
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-03-16 05:18:10 +00:00
Eike Ziller
e7772949d2 Update changelog for 7.0.0
Change-Id: I51a2cbe1530fbcea4adbb0a429bac3021397d704
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-03-15 15:21:02 +00:00
Miikka Heikkinen
6c9ded9461 QmlDesigner: Block starting drag when clicking on non-draggable node
Fixes: QDS-6415
Change-Id: I328e7715d2837d1126506a6fbbf4d1bf52cc250f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-15 14:53:33 +00:00
Robert Löhning
59a721c0ea QmlDesigner: Compile fix for Qt 5.15
error: passing ‘const QQmlContext’ as ‘this’ argument discards qualifiers

Change-Id: I4fa9ed0098f5bd63925534459d1171d7c9430897
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-03-15 12:36:52 +00:00
Samuel Ghinet
ec55793a22 New Project Dialog: Use hover states for interactive items
Also, changed the "Save Preset" dialog so that, when the user presses
Enter, the dialog will be accept-ed.

Task-number: QDS-5741
Change-Id: I7056d1184a3d9d400ac718c8d434cf2ad36ed35e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-15 12:06:07 +00:00
Tim Jenssen
f487143848 qds: extra code to handle license in about dialog
Change-Id: If9b493a4c9582b1fefac3dcaf31d34ef08eb6e6d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-15 10:54:45 +00:00
Miikka Heikkinen
72e4287ac3 QmlDesigner: Fix navigator preview of Models
Now we resolve absolute source url for our preview model, so it
will always find the custom mesh files.

Also always use the Node type preview if the instance is a component,
even if the root node is Model. This ensures the preview works properly
in case there are child nodes inside the component.

Fixes: QDS-6204
Change-Id: I48ef273e5a5dca13abe25816b5edf0be7dd217ff
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-15 10:45:24 +00:00
Robert Löhning
82534fc979 Squish: Explicitly use qmake-based projects in suite_APTW
Creator's default build system is CMake now which broke the tests.

Change-Id: I901b44dd4545a297d0100da5d92aa1bea79e41d3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-03-15 08:24:20 +00:00
Christian Stenger
cd7a0bbef5 Docker: Inform user early if adding device fails
When retrieving the list of images there is no indicator when
something failed, so add one.

Change-Id: I2e0cde4ba33527e1b2abeecb5b3a06507dabf472
Reviewed-by: hjk <hjk@qt.io>
2022-03-15 05:43:02 +00:00
Mats Honkamaa
4594250b6c Doc: Update text editor view docs
- Add info about search function
- Update screenshot

Task-number: QDS-6371
Change-Id: I162ad6917823b8834de94513ed77edc8ee0c0344
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-03-14 12:20:03 +00:00
hjk
2eca1c0ffc Docker: Add history to "Search in Selected Directories"
Also set focus to the line edit when this item gets selected,
and remove the arbitrary /usr/bin;/opt default.

Slightly better UX.

Change-Id: Icdc4e81d6cebd7aed1dd4999c4007a60c8ea53a2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-03-14 12:05:27 +00:00
David Schulz
8e16d45d4c ClangCodeModel: prevent crash on null project info
Change-Id: Iff0c0413aa52821dc883b7f42b04bc8ca5dd4a29
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-03-14 06:06:39 +00:00
hjk
1de60ddeaf CMake: Don't be too eager to throw out SDK-registered cmakes
Change-Id: I6a35e7599b61068deaf34aeb86ba53bc4120c47c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-03-11 16:00:58 +00:00
Tim Jenssen
6973ee14c4 qds: use double click to create a new project
Change-Id: I77c1d8ed483d5971135469231657d5580617242d
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-11 14:29:46 +00:00
Miikka Heikkinen
8b27281354 QmlDesigner: Show error message on import log for failed 3D import
The import is done on puppet side, so we use a log file to pass the
error message.

Also changed how import process is matched to the import, so that
exit code is no longer needed for this purpose. Crashes are also
now reported as import errors.

Task-number: QDS-6402
Change-Id: Ie14cd1df0bbba965d8e5f2aa7302a955e944379b
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-11 14:18:04 +00:00
Robert Löhning
38cdbd2bcd ManhattanStyle: Avoid crash when zooming invalid image
Task-number: QTBUG-101581
Change-Id: I4070efe266fbbd579b021cd9c03465c85313e042
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-03-11 11:48:02 +00:00
Eike Ziller
860d8548ec Bump version to 7.0.0
Change-Id: Ie403b97a027b15ddfbafa3ffbf46b8883951bb78
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-11 11:01:23 +00:00
Oswald Buddenhagen
1fcadf2cd2 fix wording regarding toolchains
Change-Id: I09c2d94af6791fab255d1a72a8484e78d6a239d2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-11 10:15:35 +00:00
Thomas Hartmann
bec41a7a55 QmlDesigner: Remove dependency of ModelNode on AbstractView
* Moved AbstractView::hasId() and AbstractView::generateNewId
  to Model. I kept a convenience function AbstractView::hasId(),
  so we do not have to change too much code.
* hasId() and generateNewId() do not mutate the model and therefore
  belong to the model.
* This also allows to remove the dependency on AbstractView in ModelNode
* Adjusting the usage of generateNewId() throughout the code base.

Change-Id: I0b8bab995c48fd52760b509cbe53f0854230b4c8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-03-11 09:45:43 +00:00
Oswald Buddenhagen
413c73b781 fix build without QmlPrivate
Change-Id: Ibc333a07137b7afb39676d4d3bc89d0c4dadb11d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-11 09:15:10 +00:00
Eike Ziller
2829412e15 macOS: Fix 'disclaim' in packages not passing on DYLD_... variables
Signed executables with hardened runtime need the entitlement
com.apple.security.cs.allow-dyld-environment-variables
to be able to pass on the DYLD_... variables to subprocesses.

Fixes: QTCREATORBUG-27175
Change-Id: Ibc203487be4d7111fc60b05749cae4e3ad750b3d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-11 08:43:59 +00:00
Thomas Hartmann
18e57ba886 QmlDesigner: Count QDS startup and shutdown using telemetry
This allows tracking the number of supposed crashes.

Change-Id: I87e1c084238c5b3d556e22d25bddf8e58cdfb838
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-03-10 19:07:27 +00:00
Thomas Hartmann
22f65bfa07 QmlDesigner: Always enable timeline
Change-Id: I76aac4a0564c890a86416aef8fe20e87c269d372
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-03-10 19:06:50 +00:00
Christian Stenger
2a72daa0ef Add disclaim tool to qbs build
Change-Id: I998b7fd9f017b9b33b422c8149048437ebb3a5a2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-10 16:04:31 +00:00
Thomas Hartmann
84f86c677f QmlDesigner: Move initialization to delayedInitiliaze()
In extensionsInitialized not all views are registered.

Change-Id: I8b7da87af4fceb5aed63c15ad43b6b67b7ca97c0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-10 15:32:02 +00:00
Leena Miettinen
f8aed954bf Doc: Update screenshots and remove obsolete ones
Some screenshots are not linked from the docs anymore.

Task-number: QTCREATORBUG-26610
Change-Id: I76b31910bb8861debe53fdef877bfea32ae1069c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-03-10 14:34:43 +00:00
Miikka Heikkinen
eeddae0d2b QmlDesigner: Fix runtime JS warning
Particle emitter gizmos do not have locked property.

Change-Id: I4f11dbd52256b365402e647024d4d258351a3c60
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-03-10 13:44:58 +00:00
hjk
e5e740344d CMake: Be more graceful for device related bits
Also when reading settings. Check was there for writing already,
and possibly should not exist at all, other kit settings are not
purging at that stage.

Change-Id: Ia052efd5a791f4a86be3d26a61ebeb94d506b012
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-03-10 12:59:50 +00:00
hjk
95510a842e CMake: Drop two use of HostOsInfo::isXXXHost
More friendly to docker.

Change-Id: I3eeb859cc880fa24c2b1c74caf5a06ec4f27cb2f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-03-10 12:18:43 +00:00
Christian Stenger
9ec7e2bbb0 PE: Raise minimum level of logging category
Change-Id: I3dbdfeb35a616498cec1377b702131e0e80cec67
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-10 11:43:40 +00:00
Thomas Hartmann
234cdd1255 QmlDesigner: Fix design themes for alternating rows
We use the same color for base and alternativeBase, which has the
same effect as setting setAlternatingRowColors to false.

Task-number: QDS-6245
Change-Id: I1308b70790227327808d042f5b2626dd92db19ef
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-03-10 10:20:48 +00:00
Samuel Ghinet
ccc5cd04d3 New Project dialog fix: "Orientation" button doesn't work for equal sizes
If the width equaled the height, for the project, then the orientation
button didn't change visual state, when clicked.

Also, renamed some fields in qml from "project" to "preset", because
they actually refer to the preset, not to the project to be created.

Task-number: QDS-5925
Change-Id: Ia776b24e0bf29a4bdf0e2f9f6ff26e5c0137ba4f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-10 09:55:42 +00:00
Christiaan Janssen
75dd1c2251 McuSupport: fix issue with resolving relative paths
FilePath::resolvePath accepts a FilePath param, but treats
leading hashes as indication of an absolute path.
FilePath::pathAppended only accepts QString,
but understands that the param is always a relative path.
In our case we always want to treat the paths as relative.

Change-Id: Ib23c27e76500de8a89d9dd22cd7efb95a9bd4d6d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-03-10 09:23:55 +00:00
Miikka Heikkinen
be9b71af2f QmlDesigner: Fix runtime puppet compilation error
Change-Id: I6c3b1ce317305b6cbc088971beaa1700b5327682
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-10 08:43:01 +00:00
Miikka Heikkinen
ccca8ccd1b QmlDesigner: Fix crumblebar recursion
If a file that already exist in crumblebar is pushed into crumblebar,
pop the bar until the first instance of the specified file is on
the top of the bar and skip the push.

Fixes: QDS-6307
Change-Id: I75f7d575db3fc6bb5b629ea1e6b61ea2905726b4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
2022-03-10 08:42:52 +00:00
Miikka Heikkinen
23487939bf QmlDesigner: Blacklist sprite and spriteSequence as valid ids
QDS can't handle binding a node with same id as the property name,
so "sprite" and "spriteSequence" are no longer considered a valid ids,
as they are property names in SpriteParticle3D.

Fixes: QDS-6178
Change-Id: I21d3af4787015f7a35e1388b381508cf0850589d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-10 08:42:16 +00:00
Eike Ziller
e8e4aada53 Bump version to 7.0-rc1
Change-Id: Ib643e8a7594fe12d0dab80963258cf7fc3b78d3c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v7.0.0-rc1
2022-03-10 07:54:45 +00:00
Christian Stenger
1e8b81da96 SdkTool: Fix build with Qt5.15
Avoid ambiguity of operator=.

Change-Id: Ifb67693919e02ab468e780198240af65df774ca6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-03-10 06:17:01 +00:00
Rafael Roquetto
b2920fb76a QNX: Fix debugger detection
The QNX gdb binary requires the QNX_TARGET env variable to be set even
for codepaths that do not make use of it, namely, when invoking gdb with
the --version or --configuration parameters to detect the ABI. Failure
to set this variable causes gdb to fail with "QNX environment not set!"
instead.

This patch works around that by setting a phony QNX_TARGET variable in
these occasions.

Change-Id: I9f2638c422eb56516b87dde049186579d238de5c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: James McDonnell <jmcdonnell@blackberry.com>
(cherry picked from commit 88aec12075)
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-03-09 22:38:34 +00:00