Commit Graph

9182 Commits

Author SHA1 Message Date
Ali Kianian
ea820c3fca QmlDesigner: Move texture editor qml side as a property editor pane
Task-number: QDS-14805
Change-Id: I0e011bdbc218d2c1f0469e55137c49890ed864e5
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2025-03-03 12:25:41 +00:00
Ali Kianian
0e32bb4bea QmlDesigner: Move material editor qml side as a property editor pane
Task-number: QDS-14624
Change-Id: Ibf277846bf99370cecb8ec3af28117872eaaef21
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2025-03-03 12:14:09 +00:00
Miikka Heikkinen
20fe6e1e60 QmlDesigner: Enable updating 3D assets from asset view context menu
Fixes: QDS-14790
Change-Id: I5e88c5a1c2de1dc581c19259f5771b15a65b2ecc
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2025-02-28 09:41:32 +00:00
Rafal Stawarski
39eebaf077 Connection Editor: ConnectionsDialogForm refactoring
Extract a part responsible for creating scripts to ScriptEditorForm,
which can be used in both: Connection Editor and Property Editor.

Task-number: QDS-10449
Change-Id: Ie6b8b4becfee4ed05760e31b742d8d0a9b79a113
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-02-28 09:03:27 +00:00
Thomas Hartmann
ea53994ff0 QmlDesigner: Add module statement to qmldir
Change-Id: I2d4a6dd08973b88dccd8ba72139ebc7b0d266030
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2025-02-27 12:12:00 +00:00
Rafal Stawarski
de4b091dea Connection Editor: ConnectionModelBackendDelegate refactoring
ConnectionModelBackendDelegate refactoring to extract logic responsible
for generating scripts to a reusable backend component.
ScriptEditorBackend can be used in the property editor to handle script
creation in scripting components (such as ScriptAction or
StateChangeScript) and as a base for ConnectionModelBackendDelegate.

Task-number: QDS-10449
Change-Id: Ie83f413f42bc1134ebb866aa6e7ea9d6b37da49b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-02-26 17:07:59 +00:00
Amr Essam
6f5debb5f5 QmlDesigner: Fix not loading assets in some cases
When user creates new project in the same QDS session,
assets view were empty.

Fixes: QDS-14523
Change-Id: Ifc56e85b556b73eaf8d29fff031e207e8f9ee182
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Shrief Gabr <shrief.gabr@qt.io>
2025-02-24 11:04:18 +00:00
Miikka Heikkinen
cbf71616a5 QmlDesigner: Add "Edit Component" functionality to imported 3d assets
Doubleclicking .q3d file in assets view will trigger edit component on
the imported 3d component represented by that file.
Context menu for .q3d files now also has "Edit Component" option that
does the same.

Fixes: QDS-14789
Change-Id: I97a041f5bfe521058c03ee717479b2752bc45ff0
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2025-02-21 12:43:10 +00:00
Tim Jenssen
9e6a2cc2da Merge remote-tracking branch 'origin/16.0' into HEAD
solved conflicts in:
	cmake/Utils.cmake
	src/libs/sqlite/sqliteids.h
	src/libs/utils/filepath.cpp
	src/plugins/effectcomposer/effectcomposermodel.cpp
	src/plugins/effectcomposer/effectcomposerview.cpp
	src/plugins/effectcomposer/effectshaderscodeeditor.h
	src/plugins/mcusupport/mcubuildstep.cpp
	src/plugins/qmldesigner/components/assetslibrary/assetslibrarywidget.cpp
	src/plugins/qmldesigner/components/devicesharing/devicemanager.cpp
	src/plugins/qmldesigner/qmldesignerprojectmanager.cpp
	src/plugins/qmlprojectmanager/qmlprojectexporter/resourcegenerator.cpp

Change-Id: Ia2f6ccfd39007dad1cb8317f5ac878109621aaa2
2025-02-17 18:08:12 +00:00
Miikka Heikkinen
fcf8d2bde4 QmlDesigner: Change ImageCache to use new qml-renderer puppet
ImageCacheCollector now uses new qml-renderer puppet to generate
preview images.

Removed -W and -H args from qml-renderer and added --minW, --minH,
--maxW and --maxH args to specify acceptable range for final scaled
size of the image. If natural size of the rendered image fits within
this range, then the image is not scaled.

Added --libIcon arg to qml-renderer to suppress background on 3D nodes.

Also changed item library icons to respect aspect ratio.

Fixes: QDS-14692
Change-Id: I88f3461626f69191770c0c5e7d79c14d7e82e609
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2025-02-17 11:56:56 +00:00
Nicholas Bennett
5c9d886510 Add xrapplication project wizard
Added a template wizard with the ability to enable hands,
passthrough, and spatial anchors.

Change-Id: I5f9864f955af3941d283fcfbbbf2949d0385c648
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2025-02-17 11:03:31 +00:00
hjk
df78f36349 Debugger: Check for existence of attribute before using it
Amends 67072d3f5b.

Task-number: QTCREATORBUG-32475
Change-Id: Ib8ef4625a5b18f955ffd872766933ae7a9515bd4
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Andrii Semkiv <andrii.semkiv@qt.io>
2025-02-17 07:05:34 +00:00
Marcus Tillmanns
4cbbeec12d Github: Cleanup workflow template
* Bumps qt-creator/install-dev-package to version 2.0
* Removes unnecessary/empty "Extract Qt Creator" step

Change-Id: I1101aabaa42b54db5190b339b9c7de3b9ad9c583
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2025-02-13 12:29:44 +00:00
Andrii Semkiv
7203730049 Debugger: Fix custom GDB pretty printers
A GDB pretty printer's to_string method can return a plain string
as well as a Value object. We did not account for the latter.

Fixes: QTCREATORBUG-32480
Change-Id: I3429c30a022a1c810e677a567e2d2aba59c22a79
Reviewed-by: hjk <hjk@qt.io>
2025-02-13 10:19:09 +00:00
Miikka Heikkinen
ede7969ea3 QmlDesigner: Make imported 3D scenes available via assets
A placeholder .q3d file is created under content for imported 3D
components found under Generated/QtQuick3D on asset view attach and
every time new import is done. .q3d file contains a project root
relative path to component's import folder.

.q3d files get generated preview as icon in assets view.

Imported 3D items are no longer shown in Components view.

Removing .q3d file will remove the corresponding module as well
as all model nodes created from that asset.

Removing last model node of asset will remove the import statement
on next document save.

Fixes: QDS-12193
Fixes: QDS-14565
Change-Id: If01546ca4c78334bac73b055ed156276f6f8f2a4
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2025-02-13 09:22:06 +00:00
Andrii Semkiv
bc84cd209d Debugger: Replace uses of f-strings
F-strings are Python 3.6 feature and we have users with older versions.

Task-number: QTCREATORBUG-32475
Change-Id: Ia4e70f64a8d63b399e92902e952330d7267ad60b
Reviewed-by: hjk <hjk@qt.io>
2025-02-10 16:46:05 +00:00
Alessandro Portale
e32613cfe2 Themes: Update QtC themes to latest QDS themes state
This copies the section between ";DS Theme Palette START" and
";DS controls theme END" from design[-light].creatortheme to the Qt
Creator themes.

Any theme loading warning should disappear with this change.

Change-Id: Ib5983f8962d1fc0f5e7ce8c67fd46c73ce9d2733
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2025-02-10 14:01:44 +00:00
Andrii Semkiv
4be9df0a5d Debugger: Fix ARM Mac visualizers
Fixed some (primarily related to `QMap`) alignment/padding issues
on ARM-based Macs.

Note that this change does not completely fix `StdMap` debugger dumper
test, which still fails due to incorrect reported alignment of
`std::string`.

Task-number: QTCREATORBUG-32309
Change-Id: I06b8be49453546fafacfefe88acbc7197d6c9434
(cherry picked from commit caf06b1a3b)
Reviewed-by: hjk <hjk@qt.io>
2025-02-10 13:39:07 +00:00
Henning Gruendl
16bf17d20d QmlDesigner: Rename Tutorials tab to Qt Academy
Task-number: QDS-14201
Change-Id: I07b6add2a11b117afdaccfc3b907e1ee0a19a8f4
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-02-10 13:33:09 +00:00
Andrii Semkiv
0c29e5b3aa Debugger: Fix QImage Preview
If a QImage is displayed in a separate window, `nbytes` variable
used to become unbound if the expression
had not been previously expanded.
Simply moved the splitting outside of the conditional block,
so that the variable is always available.

Fixes: QTCREATORBUG-32390
Change-Id: Id3d0f02e9c6a564c4d7cedfde8d7f94ba65c8d68
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit 563e2d3e73)
2025-02-10 09:59:54 +00:00
Andrii Semkiv
6ac1b0d008 Debugger: Fix dumper tests
Enabled debugger to call functions in tests.

Replaced obsolete `QDateTime::toTime_t` with equivalent
`QDateTime::toSecsSinceEpoch`.

Fixed misc `operator %` overloads for subclasses of `Check`.

Amends: f4111637c4

Change-Id: I1608f491e613c4cdb669d437158a243c7c928c38
Reviewed-by: hjk <hjk@qt.io>
2025-02-10 09:57:20 +00:00
Mahmoud Badri
d091c40a69 QmlDesigner: Enable propertyGroups.json in project storage build
Also fix 1 container detach case.

Fixes: QDS-14571
Change-Id: Iebe1dbd1b43e3df8a3975c7eae6db0f566a58d6b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2025-02-07 15:03:05 +00:00
Henning Gruendl
3bdc56264a QmlDesigner: Add live preview zoom to run button
Task-number: QDS-14682
Change-Id: I0c3275a872e1a5a15fbdc2feb5f763ed550ce8f0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-02-07 14:10:30 +00:00
Henning Gruendl
40c2c1bbdb QmlDesigner: Refresh user info in share dialog
* Fetch user info when opening the share dialog to keep the shown data
  up to date
* Add a small button to trigger an immediate refresh of the user info

Task-number: QDS-14408
Change-Id: Idff4d8684963333a2e1997465325c10f5e69a6b1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2025-02-07 12:24:12 +00:00
Shrief Gabr
7cf96f40cf QmlDesigner: Allow dropping textures from Mat Browser to User Assets
Also did a minor fix for has3DNode

Fixes: QDS-14527
Change-Id: I57b41606fddad3de2da6b7b95c3115c945eb07d2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2025-02-06 09:45:37 +00:00
Ali Kianian
53460e2db6 WelcomeScreen: Move Ui Tour button to the top for the first time usage
Task-number: QDS-14678
Change-Id: I8ce57eff9b0e5f7a0794829df311a7ed42326c5c
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-02-05 12:58:19 +00:00
Shrief Gabr
c3e1d3c13d QmlDesigner: Disable EffectComposer in MCU projects
Fixes: QDS-14551
Change-Id: Ie58caadd9e1206101d2d2a38244a209befd6c6a7
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2025-02-05 12:19:27 +00:00
Christian Kandeler
b4395ebc3d qbs build: Fix deprecation warnings
Also update qmltypes file.

Change-Id: Iadd7c7e55ae3fd38302eb2a1c09e19a281b94cb3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2025-02-04 14:22:32 +00:00
Thomas Hartmann
f3373222e3 QmlDesigner: Bump default from Qt 6.7 to Qt 6.8
Since Qt 6.8 is an LTS release we bump the default version.

Change-Id: I743b124237f9345d94c38c4417a67c4972bc573a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2025-02-04 13:33:54 +00:00
Henning Gruendl
ff7c888f3a QmlDesigner: Fix typo in enum value
Change-Id: If5072b06e5550e0f44cfa57a9b5fe32bf7836310
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-02-03 15:34:32 +00:00
Shrief Gabr
0a56c9d676 QmlDesigner: Add link to add QtQuick3D from ContentLibrary
Fixes: QDS-11766
Change-Id: I092cfc07fda96f73be20383f7601e50f89c7207f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2025-01-30 15:31:10 +00:00
Shrief Gabr
2abb4d8297 QmlDesigner: Allow dropping 3D nodes on User Assets
Fixes: QDS-14445
Change-Id: I8634f5168cb48ff73c9b13234c1de6333a080882
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2025-01-30 12:40:20 +00:00
Cristian Adam
341f553771 Plugin Wizard: update deployment GitHub Action
To use @qt-creator/deploy-qtc-plugin

Change-Id: I0750db3dc99f90cbff0f58feada701b447679385
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2025-01-30 07:49:46 +00:00
Ali Kianian
9d92b4fb3a EffectComposer: Use a switch instead of the checkbox in code editor
Fixes: QDS-14631
Change-Id: Iea96d299429be45da1283f9c1e2da82c53c8ff2c
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2025-01-28 13:49:28 +00:00
Shrief Gabr
fc49de336e QmlDesigner: Display feedback popup on exit
- Feedback popup is now displayed automatically on the 5th shutdown. Only
user-initiated shutdowns are counted. It can still be accessed from the
Help menu at anytime.
- Did some tweaks to the UI; added padding and changed display text.
- Cleaned up some deprecated telemetry identifiers that might clutter Insight's dashboard.

Fixes: QDS-11315
Fixes: QDS-14626
Change-Id: If2a69573f36bb54c7bfff4851a24d82b8ded4e7b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2025-01-28 13:03:18 +00:00
Brook Cronin
b42e0e3f9b QmlDesigner - add missing gradient tokens from ds figmatokens
Change-Id: Ic9a86517bf4320b1effdf0e5d52dc75f29d230d3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2025-01-27 20:22:07 +00:00
Henning Gruendl
fc8d9fa154 QmlDesigner: Fix GradientPreset MessageDialog
Task-number: QDS-14617
Change-Id: Icba44c9afeb7d1d2440f3e7bf279a1094c028ace
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2025-01-27 11:41:38 +00:00
Brook Cronin
76f7523f5f QmlDesigner: Expose Creator theme semantics to QtDS QML layer
Task-number: DSGNSYSTM-11
Change-Id: I68c0a4666d3839a7c7ee1f2ed1395efff734155d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2025-01-24 15:52:43 +00:00
hjk
d84f4ce83d Debugger: Do not use quote around QObject property names in L&E
Change-Id: Ib37c1460cf1527cb77e6811f25c83b4e010a2516
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2025-01-24 13:08:03 +00:00
Mahmoud Badri
71abd2fbef QmlDesigner: Add objectNames for content library tab buttons
Fixes: QDS-14582
Change-Id: Ieb62e46700bd429aac458ca02580da88c8b0a637
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2025-01-24 12:56:33 +00:00
Miikka Heikkinen
a5986d9c6c QmlDesigner: Add missing item template sources for project storage
Fixes: QDS-14588
Change-Id: I434f0192023bf7a8158966c5a1775fa4780def75
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-01-24 11:24:31 +00:00
Marco Bubke
fc4e14c558 QmlDesigner: Parse qml/QML diretory
Remove fixed fake type.

Task-number: QDS-14586
Task-number: QDS-14585
Change-Id: I8981fc39641fe6c44a9dfaaed266b711584c0527
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-01-23 12:27:14 +00:00
Burak Hancerli
88dd7cf7f2 QmlDesigner: Prevent resetting colors and depend on the theme in the new output pane
Change-Id: I630b3f56ffa44e633281f9c1c0ecca236568d92d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-01-22 14:26:15 +00:00
Cristian Adam
2ef846a300 Qt Creator Plugin Wizard: Add custom target to run Qt Creator
This commit will add the CMake boilerplate code that will just allow the
resulted plugin project to "Run".

A custom CMake target named "RunQtCreator" will be created. The Qt
Creator executable referenced by the Qt Creator "Devel" package will be
used as command whth the '-pluginpath' of the newely created plugin.

Change-Id: I503a2bc5004ab2c890032e0af0cb1f4bbfcd4326
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2025-01-21 14:44:03 +00:00
Tim Jenssen
1f4a403321 Merge remote-tracking branch 'origin/15.0' into qds/dev
Change-Id: I13878d9e06ea2502d0b1afa1c3b4853a10459580
2025-01-21 15:24:58 +01:00
Thomas Hartmann
445e393cbd QmlDesigner: Port latest token files from master
I only picked/added the token and inc files.
The rest only had a change related to CodeModel_Info_TextMarkColor
which we do not have to pick. The enum was otherwise already complete.

Task-number: QDS-14564
Change-Id: I7b2394178613fcfc48a30299c28a89780dde71d6
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2025-01-21 13:56:57 +00:00
Thomas Hartmann
e6f1959536 QmlDesigner: Add tooltips to DeviceManager
Adding ToolTipArea to the HeaderView. Adding the tooltips to headerData().

Task-number: QDS-14500
Change-Id: I90554a9e49fab02ce42781243cf0357d25212ac8
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-01-21 13:56:29 +00:00
Thomas Hartmann
90374887ed QmlDesigner: Adapt for enum change in qml
Active was renamed to Enabled. This has to be reflected in QML, too.

Task-number: QDS-14559
Change-Id: I3eb0a373ae79550d36b77ce388cc778922170037
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-01-21 12:05:44 +00:00
Thomas Hartmann
c9c030513f QmlDesigner: Change UI text in DeviceManager
* Change placeholder text to: Set target device IP

Task-number: QDS-14499
Change-Id: I8fe46cc8f120543251840705a244387e959b5f6e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2025-01-21 11:38:49 +00:00
Cristian Adam
734184d7b2 Wizards Qt Creator Plugin: GitHub Actions
Add Windows and Linux arm64 cross-compilation support.

This way all official Qt Creator platforms are supported:
  * macOS universal
  * Windows x64 and arm64
  * Linux x64 and arm64

Change-Id: I1be148759ab02aa2629ea0adfc9940cdaae6d6cb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2025-01-20 14:46:50 +00:00