Commit Graph

88532 Commits

Author SHA1 Message Date
Eike Ziller
09ebc4151f EditorManager: Keep track of current view
in sync with the current editor.

Before, we either tracked the current editor _or_ the current view if
there was no current editor. This made usage more complicated. Tracking
the current view in sync with a current editor makes setting these two
more complicated, but on the usage side are simpler. It also allows us
to just set the current view (which also sets the current editor to the
view's current editor), and to specifically signal changes of the current
view, and to keep a history of previous current views later.

Task-number: QTCREATORBUG-30408
Task-number: QTCREATORBUG-23654
Change-Id: I32967cea10972ca8b6939a84a0fbb396ca5c3721
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-26 12:15:31 +00:00
Eike Ziller
ee1db27251 FancyTabWidget: Remove an old, unnecessary hack
When clicking on a mode button, the emission of `currentChanged` was
delayed by an event. That was supposedly to "improve the responsiveness"
of the mode bar, but I don't see any difference, and _if_ changing the
mode widget was a performance issue, this wouldn't be the right place to
fix or work around it.

The hack creates issues, because it separates the `currentAboutToChange`
and `currentChanged` signals by an event processing.

Amends bd2ba2307b

Change-Id: I53a7aa74fdcfb733a28574837ca9e95fc2e97f0b
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-26 12:15:07 +00:00
Miikka Heikkinen
97b646e30a QmlDesigner: Fix typo in approachObject
Fixes: QDS-12616
Change-Id: Ib73c10dfc2806df2f98083019d67a78a6bb44a0f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-26 12:02:53 +00:00
Thomas Hartmann
d69e719e2c QmlDesigner: Add FrameAnimation
Task-number: QDS-12130
Change-Id: I0abf9b7c1dea37624362a2480c09c873a87b3e69
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-04-26 11:15:59 +00:00
Christian Kandeler
7309a46b1f Update qbs submodule to HEAD of 2.3 branch
Change-Id: I032c554de5920d9a44d8f6ca544ba3cb61fa7bae
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-26 11:14:10 +00:00
Henning Gruendl
7df037cba3 QmlDesigner: Fix alignment in EffectsSection
Change-Id: I55fb53233c1993e1897c010d37fad4bf0c12d326
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-26 10:35:44 +00:00
Mahmoud Badri
ccf0a68c42 QmlDesigner: Fix bundle material instance not removed
after removing a bundle material from project

Fixes: QDS-12527
Change-Id: I72b4d99d15a6fbd454d45bdf0ba1a1b469e1a5bb
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-26 10:20:17 +00:00
Mahmoud Badri
17a28ea850 QmlDesigner: Allow removing a content library material
Fixes: QDS-12541
Change-Id: I8efdd5c5f6185961bd8440e06d0adb60ad9d79f2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-26 09:41:17 +00:00
The Qt Project
925b224c6d Merge "Merge remote-tracking branch 'origin/13.0'" 2024-04-26 09:33:23 +00:00
Alessandro Portale
4443ee96aa QtSupport: Fix Qt Abi detection after Android initial SDK setup
If QtVersion::qtAbis() is called while the Android SDK is not yet set
up, AndroidQtVersion::detectQtAbis() returns an empty Abi list. After
the Android SDK setup, the Abi detection is repeated.

The recently introduced use of std::optional for Abis prevented that
"second chance" for Abis detection. After the Android SDK setup, Qt
Creator now had to first be restarted in order to have functioning
Android Qt Kits.

This change adds an Android specific hack in QtVersion::qtAbis() which
gives AndroidQtVersion a "second chance" to detect Qt Abis.

Amends: ee4f6ca1ae

Fixes: QTCREATORBUG-30568
Change-Id: I5d8a4fa7081d80015375c76305bb559d890b5f79
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-26 09:26:12 +00:00
Thomas Hartmann
9b4aa051d4 QmlDesigner: Add double as dynamic property
Task-number: QDS-10439
Change-Id: I572d2fe943b187bee53a34cc4f832e6220f90d9e
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-04-26 09:25:18 +00:00
Eike Ziller
dea0da7a8b Merge remote-tracking branch 'origin/13.0'
Conflicts:
	src/plugins/languageclient/languageclientutils.cpp

Change-Id: I8d1945f79d93cecee9b22f409bc5f2eefaf6a4cd
2024-04-26 10:59:07 +02:00
Christian Kandeler
77a46dc826 CppEditor: Adapt includes also when the including file was moved
Task-number: QTCREATORBUG-26545
Change-Id: Ica2d8c8504387f4ab15f0a974dfc1566d1fcaa91
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-26 08:14:21 +00:00
Christian Stenger
6b7c6bde5a QmlJSEditor: Avoid crash on temporary documents
Fixes: QTCREATORBUG-30739
Change-Id: I62872fc23529674d5fca6dcb6255872eab12a9da
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-04-26 05:12:57 +00:00
Cristian Adam
3f46037b37 Debugger: Execute additional attach commands for LLDB
This allows setting _Preferences > Debugger > GDB > Additional Attach
Commands_ with the content:

  process handle SIGSEGV --pass true --stop false --notify true

which results in the debugger not stopping in assembler for Java runtime
exceptions.

Task-number: QTCREATORBUG-29928
Change-Id: I8edf0d79dcccfe7ddb27502edb122fb5fb2c646c
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-04-25 16:44:43 +00:00
Marco Bubke
ffe30a313e QmlDesigner: Fix basic label specifics
Change-Id: Ifb1fbdde28ab870b1eb9d2fbaa85d75fe8ca2e1a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 14:43:19 +00:00
Marco Bubke
05e5aa7f0c QmlDesigner: Add kind to module id
In some cases we need to find out what kind a module is.

Task-number: QTCREATORBUG-30735
Change-Id: Ibd5a70ee6fe0f619009fd645f444d3fbb2fd6e01
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-25 14:43:12 +00:00
Thomas Hartmann
d6065db983 QmlDesigner: Fix JavaScript wizard
The old wizard syntax stopped working. Using QML file wizard as
template.

Task-number: QDS-12520
Change-Id: Ib188f898c28be8b7ad9284f431ef0526fbc7bf7e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-25 14:25:20 +00:00
Ali Kianian
fa86d63188 QmlDesigner: Refresh the puppet when DataStore is usable
Change-Id: I42bb69ffab3da7dd49284a1af513ef860f76fbcc
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-25 12:57:08 +00:00
Marco Bubke
3edd18a9da QmlDesigner: Deprecate more NodeMetaInfo
There is now allExportedTypeNames which provides the same information.
Maybe we have to add more information to the modules like a flag for the
module type.

Change-Id: I1a8c0b33fc70a157d16a153102331447f370a032
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:50 +00:00
Marco Bubke
31aec73423 QmlDesiger: Add tracing to meta info
Change-Id: I0ef7b061c729e6ad161db77a03f375f4452ad273
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:43 +00:00
Marco Bubke
1cc99b996a QmlDesigner: remove useless code
That was submitted by accident

Change-Id: Ie5606604295ec2e942548690a77c3855f7614a9f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:36 +00:00
Marco Bubke
4268c50f30 QmlDesigner: Fix property editor lookup
Task-number: QDS-11951
Change-Id: I22563aca2aacf515d2a2e66d87e39c418ea3b7d4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-25 12:46:29 +00:00
Marco Bubke
7f8d7f511d QmlDesigner: Skip non property
Task-number: QDS-11951
Change-Id: Ic84f46b74f9c65501bb4f0f9883de1bceb176818
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:23 +00:00
Marco Bubke
280239ca36 QmlDesigner: Fix controls properties
Fixes: QDS-12450
Change-Id: I1b49a2ba0d199ca98fcd92367db9b966ab7ec1d5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-25 12:46:18 +00:00
Miikka Heikkinen
dc35a7fd3a QmlDesigner: Add Shift and Alt modifiers to fly mode
While in fly mode, Shift will speed up the WASD/QE movement by 100% and
Alt will slow it down 50%.

Also changed how shortcuts are disabled in fly mode. ShortcutOverride
events are now used to suppress conflicting shortcuts, which has the
advantage over old method as it will also suppress application global
shortcuts (such as Alt key moving focus to application menu).

Task-number: QDS-12291
Change-Id: I5c97d10b6f8955f3b3214e8e254a80cae7357ce5
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-25 12:30:54 +00:00
Alexander Drozdov
5c765e7c12 ProjectExplorer: Fix environmentId overwriting with zero
When any settings on the Build & Run -> General page changed, then
environmentId will be overwritted with Zero on settings save.

It cause probles with any project opening: on each QtC run will
be generated new environmentId that mismatch with environmentId in
the .user files. As result, any local settings drops and project
configuration starts from the scratch.

Change-Id: I05e36cdad99b7d5373c8f9ff418d68998b3fd893
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-04-25 12:17:40 +00:00
Teea Poldsam
b4a8d75d17 Doc: Update Applying Effects to Transitions
Fixes: QDS-11494
Change-Id: Ib4a8e09f1ec158aa96f90e78e7a232520f78061a
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-04-25 11:57:41 +00:00
Mahmoud Badri
23e8be1ef4 QmlDesigner: Fix deleting collections using the keyboard delete key
Fixes: QDS-11735
Change-Id: I188856918da6d478e16383017d808205ee20ee8c
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-25 09:50:10 +00:00
Shrief Gabr
e79cab5d99 QmlDesigner: Notify save indicator on row/column deletion
Task-number: QDS-12499
Change-Id: I8d61bc3abdd9b8bda299a93c88579f2d0e392221
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-25 09:47:50 +00:00
Mahmoud Badri
cc187e1ce6 QmlDesigner: remove a texture from content library user tab
Fixes: QDS-12542
Change-Id: Iee3ea0bd8a3ce6cb41c27a645801eef608cd8da8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-04-25 09:19:34 +00:00
Miikka Heikkinen
99e04056f1 QmlDesigner: Add "Edit Material" context menu option for material nodes
Fixes: QDS-12372
Change-Id: Ie412216514973aa6d108f3595489f92e13497576
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-04-25 08:23:35 +00:00
David Schulz
041727fb29 LanguageClient: fix compile with latest Qt dev
Change-Id: Ifc6b5cfacb1e4e559646304b4ab5889eeb85bf3f
Reviewed-by: hjk <hjk@qt.io>
2024-04-25 08:03:11 +00:00
hjk
06cfa02c2d CompilerExplorer: Use new MenuBuilder
Change-Id: Iafd26b625493aecd5fa750ac8fcb3da950bda1d8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-04-25 06:50:05 +00:00
Jarek Kobus
3fc5551465 Android: Use QList instead of QVector
Change-Id: If4e163716e8ad5eac782d4b023dcb88fca0f8414
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-04-24 17:24:50 +00:00
Tim Jenssen
72f82f420a Merge remote-tracking branch 'origin/qds/dev'
Change-Id: I8a8692100cbd2429d1952009b73f29d8a374f9bd
2024-04-24 17:37:48 +02:00
Tim Jenssen
fb4e1c5a8e QmlDesigner: add missing include "contentlibraryeffect.h"
Change-Id: If0db36ff3a836a31500c434fa465962b81e46016
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-24 15:31:34 +00:00
Tim Jenssen
4e5498051b QmlDesigner: increase necessary Qt version to 6.5.4
Change-Id: Ib276421fb5e8c7ca55b382fc4ade0281c9f73e7c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-24 15:31:11 +00:00
Tim Jenssen
10f855f3f0 QmlDesigner: fix crash on exit
- use Utils::UniqueObjectPtr because it is a widget and
  can get a parent which deletes it
- delete the DesignerPropertyMap as last, so there is no
  connection to QmlEngine objects
- renamed view -> widget, where it was easy to rename it

Task-number: QDS-12480
Change-Id: I260909f2965f2943a9693b00876efcbb385d4259
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-24 15:24:02 +00:00
David Schulz
d717e7be04 TextEditor: fix backspace on block start
Amends ec88d279a8

Change-Id: I7d83b5ffa617f8d45acc6998ce674b1afcf3a31b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-04-24 14:20:12 +00:00
Eike Ziller
fa54261ad3 QmlDesigner: Fix crash when QmlProjectManager is not enabled
The menu is created by QmlProjectManager, so it might not exist.

Change-Id: Ib37d9a2b19e02616c6564a55f153c48731dac0fe
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-24 13:10:40 +00:00
Shrief Gabr
a1829f0317 QmlDesigner: Remove "Unknown" from available datatypes
Task-number: QDS-12555
Change-Id: I9c3261ac23188bcd7db875bec49091d044231a9f
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-04-24 12:29:26 +00:00
Henning Gruendl
d051348069 QmlDesigner: Add show behind to EffectsSection
* Add show behind property to DropShadow EffectsSection
* Change visible property name in EffectsSection

Task-number: QDS-12587
Change-Id: I338ea4370eeb725d54a06cc021f061c73e8aa837
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-04-24 10:28:14 +00:00
Eike Ziller
7f7d4889d2 Add an environment variable for disabling atomic save
There are situations where e.g. anti virus software leads to saving files
failing. Provide a way to disable atomic save for debugging purposes.

Task-number: QTCREATORBUG-30728
Change-Id: I1f3df009f89f6c27b2e0c9f91869b2a75f5575d8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-04-24 09:39:21 +00:00
Teea Poldsam
3b1acea866 Doc: Update Adding Action Areas and Transitions
Fixes: QDS-11407
Change-Id: I38cb4ff1d92b91ec41df01dd374c98b681eacfe0
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-04-24 08:37:25 +00:00
Christian Stenger
0adcf5760d Axivion: Refactor URL construction
Change-Id: I286d5b30fe531ce4262aecf796d7fd270358df26
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-04-24 08:17:26 +00:00
Christian Stenger
b63b8c2526 Tools: Silence soft assert on Windows
Change-Id: Icb10257505efec73b4184ec190c514ec169ec2e2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-04-24 05:30:15 +00:00
Thomas Hartmann
ff4f5133da QmlDesigner: Set proper engine ownership
Change-Id: I603cb34209a231226f1ef7ccb269ab8813f2758d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-23 15:52:01 +00:00
Thomas Hartmann
735d6af931 QmlDesigner: Set proper ownership on returned C++ object
Change-Id: Id9971cdec65bb84b310196ef84d0bccca9a12e57
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-04-23 15:51:30 +00:00
The Qt Project
a86892b8af Merge "Merge remote-tracking branch 'origin/qds/dev'" 2024-04-23 14:09:06 +00:00