Commit Graph

88532 Commits

Author SHA1 Message Date
Pranta Dastider
1b5ef0420b QmlDesigner: Update the supported image list in the QDS doc
This patch update the list of supported image formats
in the documentation of Qt Design Studio.

Fixes: QDS-12688
Change-Id: I5628b4d378447f0caa074e7264a3a4e5ee99b73c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-03 13:14:09 +00:00
Thomas Hartmann
0f2d15f16c QmlProject: Also add support for gif
Change-Id: I46400e8bd605142401ab941e45baba1fa4b27fc0
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-03 13:04:15 +00:00
Miikka Heikkinen
df20f8924a EffectComposer: Fix slider value precision
Effects with slider controlled real values now properly cut the values
to two decimals.

Fixes: QDS-11773
Change-Id: I056a295e5a126536d3003490c938361e4ce382b3
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-03 12:59:49 +00:00
Jarek Kobus
7039c06f82 Android: Add updateRecipe
Change-Id: Id934f238cff579208f85af6f8b716871ba0c9321
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-03 12:44:08 +00:00
Marcus Tillmanns
adcea41617 Lua: Make FilePath:dirEntries async
Change-Id: I0d1a918a34ca1fefe1dffdf4c5d766e6bb7aaf77
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-03 12:44:02 +00:00
Marcus Tillmanns
218f07bdef Lua: Bind lifetime of LuaEngine
We want to make sure that the LuaEngine is deleted when the plugin
is removed.

We also derive LuaEngine from QObject so we can use it as a guard in
QObject::connect calls.

Change-Id: I6b0568f11bee283f880ede9432b2a9fe83014758
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-03 12:43:55 +00:00
Miikka Heikkinen
3f48d2bb7e QmlDesigner: Use SceneEnvironment background by default
"Use Scene Environment" is not default option for 3D view background.

Fixes: QDS-12414
Change-Id: I5981b5d77a044c5f2d250c5c1ccdf307a7764108
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-03 12:43:16 +00:00
Cristian Adam
a13aa8d3de PE: Add tooltip mentioning QTC_DEFAULT_BUILD_DIRECTORY_TEMPLATE
The tooltip mentions QTC_DEFAULT_BUILD_DIRECTORY_TEMPLATE so that the
users know about this environment variable.

Task-number: QTCREATORBUG-30557
Change-Id: Ife221b7cfe88f9a6015bd5fb61270d335f65cb79
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-03 12:37:06 +00:00
Leena Miettinen
5b94de6308 Doc: Turn QML preview topics in to how-to topics in Qt Creator docs
- Move qt-quick-live-preview.qdoc to QDS sources
- Copy qt-quick-live-preview-desktop.qdoc to QDS sources as
  how-to\qtdesignstudio-live-preview-desktop.qdoc and remove
  Qt Creator-specific information from it
- Remove the "Running on Devices" and "Using SCXML State Machines"
  topics, which are not used any more
- Edit for style

Task-number: QTCREATORBUG-29361
Change-Id: I1646505aff8659605b09735da515e5d21070d39e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
2024-05-03 12:31:41 +00:00
Mahmoud Badri
4366ed9aa2 QmlDesigner: Add missing bundle types to GeneratedComponentUtils
Also small refactoring.

Change-Id: I54f1309aa69daf1d61b931063bb4b86612642cc1
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-03 12:16:49 +00:00
Jarek Kobus
5984e0f073 Android: Add installationRecipe
Change-Id: Icfbb4feadd62aa922e2e1956a64485e9f7139aa9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-03 12:07:40 +00:00
Jarek Kobus
15e3d26c86 Android: Add licensesRecipe
Change-Id: I19fcd9ac354d1ea0100126c8c3640a19256b2a9e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-03 11:43:55 +00:00
Miikka Heikkinen
d9e4a205d2 QmlDesigner: Fix IconGizmo multiselection
Clicked signal was directly connected to handleObjectClicked function,
but it had different number of parameters, leading to multiselection
parameter to always being undefined.

Fixes: QDS-8137
Change-Id: If065531878df9ad7e6584c89dce19b6b7d71a676
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-03 10:53:16 +00:00
Thomas Hartmann
96bfa8e29f QmlDesigner: Support for ExtendedSceneEnvironment.GlowBlendMode
This is the first nested enum scope. Therefore we have to add support
for nested enum scopes.

In a subsequent patch, Enumeration has to be adjusted. This patch is
minimizing the risk for QDS 4.5.

Task-number: QDS-12645
Change-Id: I6ddfa89f3a3038eac8a7ce73c8c593191fa05b84
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-05-03 09:43:36 +00:00
Miikka Heikkinen
6cec311c5d QmlDesigner: Fix url property path resolving
Converting file:// urls to relative paths assumed that the file://
url would always point to a file that is in same or child folder of
the qml document, which broke for urls that pointed under generated
components folder.

Fixes: QDS-12029
Change-Id: I352ba01650ebf6c1c5fedef9323bf27b44491736
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-03 09:31:47 +00:00
Teea Poldsam
854319bd7d Doc: Add the new fly mode spacebar shortcut to 3D doc
Fixes: QDS-12339
Change-Id: I885fd118a5349adb4907d0dbf518101498daa5ea
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-05-03 08:56:22 +00:00
Miikka Heikkinen
39fed3759c QmlDesigner: Show crosshair only after there is a move in fly mode
Fixes: QDS-12596
Change-Id: Id34ad1b0745814a5b3dee8b6c3001d19ca7f4118
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-03 08:38:58 +00:00
Miikka Heikkinen
cb0e28d2e6 QmlDesigner: Start requested timer when it's created in 3D view
Fixes: QDS-12659
Change-Id: I78f5854185e4efebc00ea63c5dd290dc851e21eb
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-03 08:38:50 +00:00
Henning Gruendl
fe461b85e6 QmlDesigner: Add DesignEffects plugin to template
Add DesignEffects plugin to qmlcomponents template for CMake based
project usage.

Change-Id: Ie2a0ac4cf47719c4a2e49532acaa9a092a6dc372
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-03 08:05:22 +00:00
Cristian Adam
ba4d9b8134 Core,PE,TE: Add "build" to find in files exclusion list
Now that we have the "build" directory in the source directory we need
to exclude it from the find in files search list.

Change-Id: I74b20f828ffed51b5d7be98efa662bcc4b420523
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-03 07:52:00 +00:00
Jarek Kobus
ef85a983c0 Android: Introduce QuestionProgressDialog
It's going to replace AndroidSdkManagerWidget's m_outputStack.

Change-Id: I1307c8413a772d574715db90ddb8fecc05038070
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-03 07:26:28 +00:00
David Schulz
546f25c3de Python: offer to install python-lsp-server updates
Change-Id: I4068da0783b0a8e2becfcd04d480c6ad2e2f5b7c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-05-03 06:14:18 +00:00
Marcus Tillmanns
8fa9a25d08 Lua: Fix lua Qt type registration
Change-Id: I542ce8561e61cd0753525347b42711f804b208ff
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-03 06:01:39 +00:00
Marcus Tillmanns
30901b86a4 Lua: Add more error output
We were missing error message when the error occurred
during a.sync(...) calls.

This adds error output in those cases.

Change-Id: If66772b4a71bb909aff7129243824fc5343c66a1
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-03 05:59:38 +00:00
David Schulz
c005274649 Haskell: remove unused function declaration
Change-Id: I6fb1ede8bb02fa22894200c49b8232631b726134
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-05-03 04:28:22 +00:00
Robert Löhning
b000978278 SquishTests: Remove dead code
The Qt Quick Application template doesn't allow changing
the build system. skipBuildsystemChooser is True above.

Change-Id: I413fa6c3b4d97e1f1212dbab96d2a39458ce3751
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-05-02 20:22:35 +00:00
Björn Schäpers
cc9ffdb685 ClangFormat: Fix compiliation with LLVM19
Change-Id: I4b166da2e477ffd101a5c4b9aa07c710f7698da9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-02 19:14:36 +00:00
Alessandro Portale
a0b19d9fba Welcome: Restore legibility
After the release of Qt Creator 13.0.0, a couple of bug reports and
comments regarding reduced legibility appeared.

They boil down to:

 1) Text appears blurry
 2) Text is too small
 3) Text contrast is too low

This change fixes the blurryness by setting less custom font weights for
non-HighDpi systems in StyleHelper::uiFont().

Bigger texts are used for the "Session" and "Recent Project" delegates.

The text contrast is being increased by making Token_Text_Accent darker
for light themes and brighter for dark themes.
Token_Background_Muted, which is used as background color is made a bit
brighter for light themes.

Fixes: QTCREATORBUG-30579
Fixes: QTCREATORBUG-30637
Fixes: QTCREATORBUG-30650
Change-Id: I8eeb9db6854a19b0de0bcee14b10e2ef66234e06
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2024-05-02 15:52:11 +00:00
Marco Bubke
3f0ac381b4 QmlDesigner: Guard for missing qml backend
Change-Id: I3ced324b4bde1feadbd71434cbb6ce54a531dbbc
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-02 15:47:10 +00:00
hjk
d3fb3a163c Debugger: Ignore stops in libart.so and other Android runtime specific places
From https://issuetracker.google.com/issues/240007217#comment17
"Some a background on the technical aspect of SEGVs:

Android Runtime (ART) uses SEGV for various internal purposes (it
triggers a SEGV and handles it without crashing the app, the app doesn't
know it happened). When the native debugger is connected, the debugger
must intercept all SEGV signals.

When running the debugger on Android API level 27 and newer, we make the
debugger skip these SEGV signals (i.e., forward them to be handled by
ART), because we know how to handle real SEGV signals inside ART.  For
older Android versions (26 or older), we did not have this support, so
the debugger stops at every SEGV (i.e., it cannot know if the signal is
a real crash or an ART-internal thing)."

Arguably, this should be caught by the LLDB Android platform bits, but...

Task-number: QTCREATORBUG-30759
Task-number: QTCREATORBUG-29928
Task-number: QTCREATORBUG-30080

Change-Id: I8cabe4a0675c596a9617520aff0d62ad11321f0e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-02 15:36:26 +00:00
Alessandro Portale
15f83efa6a ModelEditor: Inline addrelatedelementsdialog.ui
Change-Id: I53f9ec87030c4ac41ff34f61a54dd10a866b8c33
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
2024-05-02 15:25:07 +00:00
Alessandro Portale
67ab041903 Android: Disable "Make [NDK] default" button while NDKs list is empty
When pressing the "Make [NDK] Default" button while the list is empty
leads to a crash. The button should actually not be enabled if the list
is empty.

This change disables the button while the NDKs list is empty.

Fixes: QTCREATORBUG-30716
Change-Id: I5f10fd180f62d20210f1b0c0261e4d821d0582dd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-02 15:24:08 +00:00
Alessandro Portale
f625c2682c ModelEditor: Inline modeltreefilter.ui
Change-Id: I03925b708ac1741f6342023b455b0280a8bce584
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-05-02 15:18:20 +00:00
Alessandro Portale
a90368d704 Android: Use LayoutBuilder for SDK Manager OptionsDialog
Change-Id: Ic8bfa9f73579f7717a100c538641bc8a229c946d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-05-02 14:58:08 +00:00
Thomas Hartmann
34e4710f7a QmlProject: Fix tests
Change-Id: I988b1e623ee672109172ac8f746406a62b6a895b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2024-05-02 14:32:37 +00:00
Shrief Gabr
a327f38d5e QmlDesigner: Ignore Image cell warning for Url column
Task-number: QDS-12157
Change-Id: Ia2a46ef878d522f6c5a08fb817c2ef1332cb113b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-02 13:57:37 +00:00
Cristian Adam
2c4b7fa02a Core: Use Windows API to create path to explorer.exe
Searching after "explorer.exe" in PATH can fail, as seen in a report on
#qtcreator channel on Discord.

Explorer.exe is always part of %systemroot%, which can be
programatically obtained via SHGetFolderPath function.

Fixes: QTCREATORBUG-30765
Change-Id: Id2c4f3bd9c51234cb9e16d936202dfbcb1975606
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-02 13:40:56 +00:00
David Schulz
bf41545468 ProjectExplorer: remove confusing function from Project
Change-Id: Ifaed5d8293dadd2ae3cfdab3b027434d4f8caa3e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-05-02 13:37:47 +00:00
David Schulz
b7dff8b636 ExtensionSystem: fix crash on git interactive rebase
Luas LuaPluginSpec::plugin() returns a nullptr so we have to check the
usages of PluginSpec::plugin before using it.

Change-Id: If4fa926814e5a418e446d6970bb46060feec5664
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-02 13:37:35 +00:00
Christian Stenger
8af9417181 AutoTest: Remove unneeded capture
Amends 1fc135822f.

Change-Id: I21b8b596979de6a68e35764c6dc435b596c773a2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-02 13:27:01 +00:00
Eike Ziller
6b65826858 Add a template for change logs
Change-Id: Iba89a51f6cd5c42c42c5fc1e210acac9a0fc1033
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-02 12:58:14 +00:00
Eike Ziller
d2afb4e8af Merge remote-tracking branch 'origin/13.0'
Change-Id: I4817ff528f92dcb2ffb00c92ca1039f1ae31c7f1
2024-05-02 14:47:43 +02:00
Jarek Kobus
b090401b78 Android: Inline some redirections
Get rid of onLicenseCheckResult() and runPendingCommand().
Gather all the continuations inside the packageFutureFinished().
This clears up the picture of what is happening.

Change-Id: I7d63fa7a628a0bdefb26677f04df97a0491668ab
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-02 12:46:29 +00:00
Jarek Kobus
bbd2c81e61 Android: Make workflow item names consistent
Otherwise it's a nightmare to track it.

Change-Id: I6d9ddc1d5e7046307b0aa66ded05023cf884f37b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-05-02 12:46:20 +00:00
Christian Kandeler
4506b184a3 CppEditor: Let users disable the built-in indexer
Fixes: QTCREATORBUG-29147
Change-Id: Ib7e791362782f5b40c5678de95d2309a6396ccb9
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-02 12:38:01 +00:00
Miikka Heikkinen
4cb9857293 QmlDesigner: Handle material type without using item library entries
Recent project structure changes invalidated material bundle metainfo
files, as we can't support both new and old structure with them.
They were only used for populating possible types in material editor,
so adjusted this functionality to only allow changing the type between
basic types. If the material is a custom component, then the only the
current type is displayed and the type combo box is disabled.

Fixes: QDS-12628
Change-Id: I07b1a482977f0ecc94c35f3d485302c85c6153f9
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-05-02 12:21:40 +00:00
Mahmoud Badri
c8215e986d QmlDesigner: Reload bundles when id change
i.e. when opening a project that has a different import folder style
from the currently open project.

Fixes: QDS-12639
Change-Id: I8d341c38ec771dc5e28c4436cd9ad191e27c38a8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-05-02 12:13:10 +00:00
Eike Ziller
ff6e8656d7 Add change log for 13.0.1
Change-Id: I7f6dd377ebcae45bf3acd526daa5f3981df1a981
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-05-02 11:37:47 +00:00
Thomas Hartmann
ac5d88716b QmlProject: Add more image formats
Task-number: QDS-12660
Change-Id: Idabe761b8ef7d1a02fb0a4a05632a8e11e036cce
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-05-02 11:11:06 +00:00
Pranta Dastider
0100eb2c1a QmlDesigner: Update tooltips for QtQuick Studio Design Effects
This patch update tooltips for QtQuick Studio Design Effects.

Fixes: QDS-12568
Change-Id: I7f500a765ca58a27b7efe3923f637856684215f2
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-05-02 10:56:17 +00:00