Commit Graph

72808 Commits

Author SHA1 Message Date
Miikka Heikkinen
ae30e3073c QmlDesigner: Do not assume QmlBuildSystem is current build system
It's possible to open qml files for visual editing from qmake/cmake
based projects as well.

Fixes: QDS-6836
Change-Id: I15840dbe0f67711b162f7f7f492f7ab813ea7fca
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-04 09:11:06 +00:00
Christian Kandeler
c97f0af531 ClangCodeModel: Don't ignore changes to clangd doc update threshold
Changing the document update threshold value had no effect in the per-
project settings.

Change-Id: Ibd6e47bba3e0a77ed18b97486eda17718c46c59d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-03 08:49:59 +00:00
Vikas Pachdha
9159bdaed2 Doc: Document merging while importing from Qt-Bridge
Task-number: QDS-3812
Change-Id: Ia1ce3e16393d414cab9d4500514313d35bed7426
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-05-02 11:54:28 +00:00
Mats Honkamaa
95195b416c Doc: Add creating state transition animations tutorial
Add a tutorial on how to create state transition animations
with the transition editor

Task-number: QDS-6560
Change-Id: I1bd63bc86b9d651e16fe71fbf46c8c3e934b8c77
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-05-02 11:39:13 +00:00
Leena Miettinen
5e6c7089d8 Doc: Describe how to declare files in projects
Including using OTHER_FILES for qmake projects.

Fixes: QTCREATORBUG-27157
Change-Id: I802000c90472464430d1335b9e962c6691cc567a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-02 11:27:26 +00:00
Eike Ziller
f8a04666d5 Editors: Fix that actions were applied to wrong editor
We delayed switching the "current editor" by the double-click interval
to fix opening editors in extra editor windows from the project tree
etc. This leads to the weird effect that after switching the focus
between editors even within the same window was only applied after a
delay.

Instead just delay setting the current editor by "two events". When
clicking into a window, Qt sets the focus in two phases.

1. First the focus ends up in the focusWidget() in the new window, which
possibly is the editor that was active before in _that_ window
2. Only during the next event processing does Qt set the focus to the widget
that the user clicked into, which could be a non-editor widget, like the
Projects tree

We may only change the current editor if the focus didn't move away from
any editor in (2). So we need to delay setting the current editor until
after the next event processing.

Amends 22c67db406

Fixes: QTCREATORBUG-27479
Change-Id: I3d9197176a2d7ce50e5f29a1ce1b2efef52232d0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-05-02 09:47:38 +00:00
Thomas Hartmann
c3d04642e1 QmlDesigner: Properly parse variant type
If a property actually is a variant we have to properly parse
the string and convert it to the correct type.
Booleans and numbers were not probably converted.
This did not create many issues, since the conversion happened
later, but it broke copy and paste and merging.
In Qt 5 this conversion seemed to happen mostly automatically.

Boolean literals have to be handled explcitly, since e.g. "10"
is technically true and can be interpreted as boolean.

Task-numbner: QDS-5944
Change-Id: I35c7cae7041667c7eac81e36a285a394263b35a4
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2022-05-02 08:35:30 +00:00
David Schulz
176dbff127 LanguageClient: support sorting outline combo box items
(cherry picked from commit 505358cb82)
Change-Id: I793700e770c830b729d0e8780fc4cbac79c01c0f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-02 04:44:35 +00:00
David Schulz
8245ed30ae LanguageClient: support sorting outline widget items
(cherry picked from commit 46a012bc11)
Change-Id: Iead37c07f09c2f961d506caef76562fb1b3dc308
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-02 04:43:43 +00:00
David Schulz
4661a4946d LanguageClient: select innermost outline widget item
Reuse the code that selects the innermost item in the outline combobox
also in the widget so the behavior is consistent.

(cherry picked from commit b97204ebb6)
Change-Id: Ie7c32ba4e6c5cbdd608da207e515c737e3bd91e6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-05-02 04:31:40 +00:00
Eike Ziller
1eabb6f185 Locator: Save history of execute filter
Fixes: QTCREATORBUG-27381
Change-Id: I2a053e4e2e978034fcbfc15a6ecfff04a057ffaf
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-04-29 12:22:57 +00:00
Christian Kandeler
57fbf9bef9 CppEditor: Consider -include flags from the project again
The fallback for build systems without a dedicated property for this got
lost somehow in 9c3420120e.

Fixes: QTCREATORBUG-27450
Change-Id: I70768220523693b9423a8256cef3d79f4d9dfd58
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-29 12:02:22 +00:00
Brook Cronin
61008bcd47 Rework QtDS Splash Screen to show telemetry options
* clean up Design to a more minimal style
* remove some unused components

Change-Id: I37af39a1cae6b6f14f769383ac73c00570729f4f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-04-29 08:36:25 +00:00
Knud Dollereder
9195d0dd2c Improve Animationcurve editor
- Prevent insertion of invalid animation ranges that may cause DS
  hanging
- Properly update the toolbar when switching to a different qml file
- Show an informative text instead of the empty curve editor when
  the current file does not contain a timeline
- Move the toolbar into its own class
- Add an implentation to the "Set Default" button

Fixes: QDS-6543
Fixes: QDS-6542
Fixes: QDS-6545
Fixes: QDS-6544
Change-Id: Id6bc1457627ea23a670e74ea335fbb475711b9a6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-04-28 10:01:46 +00:00
Alessandro Portale
1811b381eb ProjectExplorer: Prevent out of range access on recent projects list
ProjectExplorerPlugin::recentProjects() filters out non-existent files.
Because files could at any time be removed/renamed, we cannot presume a
certain, constant length of the list when calling recentProjects() a
second time.

Fixes: QTCREATORBUG-27399
Change-Id: I3f09830896b308e251881c855abb552b6022695f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-28 08:36:00 +00:00
Mahmoud Badri
a984e9c097 QmlDesigner: Fix possible crash on exit
Crash log:
https://sentry.io/organizations/the-qt-company-00/issues/3227370374/?project=5421708

Change-Id: I73b574d565cc1f66ddec1fedcb96e3acd7c1ad72
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-04-28 07:33:47 +00:00
Eike Ziller
c892157862 Bump version to 7.0.2
Change-Id: Ib503b94b747698ab9ba9650c9eb0a3e44d6ca968
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-28 07:21:04 +00:00
Mats Honkamaa
2090d043db Doc: Update import 3D assets docs
- Update screenshot
- Remove .blend from supported formats
- Update info about the Import asset dialog
- Some other updates to content and structure

Task-number: QDS-6670
Change-Id: Ia123c5c5b5648a356e9608d923ba1e57c40c8832
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-04-27 09:57:53 +00:00
Kai Uwe Broulik
b748f531ee ManhattanStyle: Check widget being not null
In case someone calls styleHint(SH_Widget_Animation_Duration)
without a widget.

Change-Id: If331f2365050b18fd6b06ce764c9ccbc7eede08a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-04-27 08:47:02 +00:00
Cristian Adam
8c050eaad9 CMake: Set the build directory change after Browse
As an user I expect when I select Browse for the build directory
that after the directory has been chosen it will be taken into
consideration.

Amends 1d600101ee

Fixes: QTCREATORBUG-27407
Change-Id: I331b6095c176f57ca8e4c73c0b378a11ce3d6dbc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-04-26 13:24:48 +00:00
Thomas Hartmann
099f02b5db QmlDesigner: Add new way to load fonts to template
StudioApplication will load the correct font in time.
This only works for Qt 6.

Task-number: QDS-3286
Change-Id: I2d97ca19bace8e13c7a4df355d1addb7267e117c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-04-26 12:09:34 +00:00
Thomas Hartmann
1f5ede1543 QmlDesigner: Do not show error while type information is incomplete
Task-number: QDS-6546
Change-Id: I1c295fc3417f7bb83d8cc0e751e1893cd74d8d4f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-04-26 12:09:17 +00:00
Thomas Hartmann
8e8491e32c StudioWelcome: Use Welcome as display name
Task-number: QDS-6788
Change-Id: I4a9400af6ce98be82826b1301aef7c383615e771
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-04-26 12:08:59 +00:00
Thomas Hartmann
5e75673dde QmlJsCheck: Add more ids to negative lists
Since those are QML keywords those ids can create
all kind of unexpected side effects.

Change-Id: I9ecb9b0559c57d59104aacedfca505b559de9685
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-04-26 12:08:22 +00:00
Orgad Shaneh
48f01f503f ProjectExplorer: Only strip L from cplusplus macro if it exists
Old GCC versions have #define __cplusplus 1

Change-Id: I71286656df8f9925c2e0ccc46d32546037423268
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-04-26 06:59:42 +00:00
Aleksei German
da16d778d5 QmlDesigner: Fix for builds in default MCU project
Task-number: QDS-6599
Change-Id: I77d7f6f8a0df8a9992956d5d23d2e219c1e4f077
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
v7.0.1
2022-04-25 10:54:04 +00:00
Eike Ziller
6228e190ec Add change log for 7.0.1
Change-Id: I573ca9ca154fc48c3e27bf959764c53f43c09bd2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-04-25 10:22:55 +00:00
Eike Ziller
3a1eda28b9 Add trademark info to about dialog
Fixes: QTCREATORBUG-27410
Change-Id: I496c7088cdcab68ba007ab1e43bcf7bfed8955f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-04-22 13:02:16 +00:00
hjk
e4105330ab QmlDesigner: Compile fix with namespaced Qt
Amends 45ca3e030b.

Change-Id: I91956803ffebbb118a1d891e6bc433a370515248
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-22 12:14:56 +00:00
Fawzi Mohamed
a3b1dfd34a qmljs: correctly handle js string templates
In most cases we do want to visit the expressions in a function
template. Changing its accept0 would force those not wanting to visit
it to iterate on the templates (currently a linked list), so we add a
visit method explicitly visiting the expression in all the needed
places.

Fixes: QTCREATORBUG-21869
Change-Id: I47733544bfd32eec357810b97242608b8f7de572
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-04-22 10:43:38 +00:00
Christian Kandeler
22ec44b5f3 Update qbs submodule
... to HEAD of 1.22 branch.

Change-Id: I72ccdd5bd8070baf214a74df32c443f1ba87ac0c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-22 08:24:13 +00:00
Christian Stenger
9656eb9e7a QmlJS: Fix more invalid M325 cases
Fixes: QTCREATORBUG-27380
Change-Id: I76d1ef3d2f2a4cc9d930a006ecb3b564efea3fbc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
2022-04-22 05:24:21 +00:00
Christian Kandeler
cf96a91b69 ClangCodeModel: Fix mis-detection of class members as operators
The name check was not tight enough.

Change-Id: I5d813a29525bd5b5c23ce04f0bd9e5982a36536e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-21 09:17:15 +00:00
David Schulz
2529b62315 Editor: improve open link via mouse press
It improve in the situations where the mouse move slightly between press
and release event, this should be mostly notable for trackpad users.

Fixes: QTCREATORBUG-26595
Change-Id: I36ef7d23c80c09b9248abd8313c040993ece92a4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-21 08:01:23 +00:00
Eike Ziller
d1686e1867 UpdateInfo: Fix parsing of update info
It was no longer showing any updates. At some point MaintenanceTool
added <?xml...> headers to its responses, which broke our combine-and-
parse hack, since such a header in the middle of XML is invalid.

Add a hack that removes these headers first. This should be refactored
without the use of ShellCommand in master, because that doesn't allow us
to access the output of the two jobs separately.

Change-Id: I7248b070a8edb1a45248b3531ed50bb0d94eef73
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-21 06:56:56 +00:00
Eike Ziller
98dda165e4 UpdateInfo: Add some auto test
Change-Id: If97121bda98e1b09f093d0bcc8f60efb1aa18235
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-21 06:56:47 +00:00
Eike Ziller
f5b77d87da Move build scripts to Python3
On newer macOS versions there even is no unversioned python
executable anymore, so we need to make it explicit

Change-Id: Ic2260a06b859e949a42f7dc34f1ff4dd582ce635
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-20 14:23:43 +00:00
Eike Ziller
9084ab1b64 Remove some unused scripts
These are no longer used, and instead solved via CMake or part of
build(_plugin).py

Change-Id: I86a829713fe32b9ff1386fc0bdfd23a88e3e00c4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-20 14:23:34 +00:00
Christian Kandeler
d0a192064e GenericProject: Re-introduce variable resolving in include paths
Variable expansion and relative path resolving were accidentally removed
in 25ff15a1fb. Relative path resolving was re-added in 214968a80b, which
is superseded here.

Fixes: QTCREATORBUG-27401
Change-Id: Ida09e7b486765942c43acf55c4ef9c04eb3df12b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-20 13:35:46 +00:00
Mats Honkamaa
8a252099a1 Doc: Add info about particle templates and effects
- Added info about particle templates
- Added info about particle effects
- Minor changes to the structure of Particles docs
- Update info on how to add a particle system

Task-number: QDS-6422
Change-Id: I73cd0ee0c895df290206ab3207e51c95791a2291
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-04-20 08:36:32 +00:00
Eike Ziller
fb1f19c7c1 Fix duplicate entries in examples dropdown
Both the "normal" Qt node adds an example set, and the Android/
Automotive node adds another one with the same paths, leading to e.g.
two items "Qt6 6.2.4" in the dropdown for the examples.

De-duplicate example sets with the same paths, which we already do if an
example set and a Qt version itself refer to the same path.

Fixes: QTCREATORBUG-27294
Change-Id: Ia469045b2f2812612fcd8328bdfd223479b8d449
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-20 08:24:15 +00:00
Eike Ziller
debd1b3d4b COIN: Fix precheck after some python3 related changes
Explicitly use Python3 for the scripts

The install_qt script was ported to Python3, and we now need to
explicitly state python3 as the interpreter.

Change-Id: If0d94fde127868ac024834f5f6eccecd1bbc0e6e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
2022-04-20 07:21:15 +00:00
Christian Kandeler
0cb569a39b ClangCodeModel: Fix check for AST nodes from included files
If an AST node contains no file info, then we must use the one of the
parent node, in order not to create highlighting results for tokens from
other files.

Fixes: QTCREATORBUG-27384
Change-Id: I7c6f0c06063df9ce76feef333907d9d4f07a38e5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-04-19 14:04:35 +00:00
Alesandro Portale
411b82347a Docs: Remove "Introduction to Qt Creator IDE" talk
The Video https://www.youtube.com/watch?v=nGFmjOiT22Y is not available,
anymore.

Change-Id: I2adcf6281ad57140537b8d99b584d9a0d3793bba
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-04-19 12:33:13 +00:00
David Schulz
37a26f77b7 Editor: fix indenting selections spanning multiple lines
Fixes: QTCREATORBUG-27365
Change-Id: Ibf98bf832e93598fd5d08cb6d5f6422e88480b63
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-04-19 12:05:35 +00:00
Vikas Pachdha
9688be38ef Docs: Document variant support in Figma
Task-number: QDS-6654
Change-Id: I0bf13336af5a320606e9e740203924fdb21672f6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2022-04-19 09:44:10 +00:00
Aaron Barany
90e879bbd1 ProcessLauncher: avoid reading stderr for merged channels
This will assert on Qt 6.3.0 and print a warning for Qt 6.3.1 and later.

Change-Id: I837fbde3358a5a0e5cc29b8486ed7b4e9837a976
Fixes: QTCREATORBUG-27385
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-04-19 09:42:30 +00:00
Henning Gruendl
6015a4d839 QmlDesigner: Rename navigator search placeholder
Change-Id: I7c6cdad1c5adcda3e5ef4767a8dbf55394e2d4fb
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-04-19 08:25:43 +00:00
Christian Kandeler
b649f288ac ClangCodeModel: Another output argument highlighting fix
Change-Id: I2b784c32706a4eaa837cf999884656d62b253e3d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-04-14 09:57:11 +00:00
Christian Kandeler
9146ce4625 ClangCodeModel: Fix another false positive
... in in output argument highlighting.

Fixes: QTCREATORBUG-27368
Change-Id: I7549fd5c69bfebd0eeda24760d3bf96f2e652c43
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-04-14 09:56:46 +00:00