Commit Graph

91514 Commits

Author SHA1 Message Date
Shrief Gabr
d611782566 QmlDesigner: Expand folders on search query change in Assets view
Fixes: QDS-14299
Change-Id: I3b7975557ec28660b3306fbdcc44afd2bc90bfc0
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-12-31 13:36:11 +00:00
Mahmoud Badri
c5be8e2169 QmlDesigner: Fix 2 "property not defined" qml errors in texture editor
...by setting the context properties in the constructor.

Also remove some unused includes.

Change-Id: Ibb7901b79b5a97552fee7cf8428f35293451dbc4
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-12-31 13:02:52 +00:00
Shrief Gabr
998b0400af QmlDesigner: Fix AssetsLibrary output logs
Also did some modifications to the delegate's text and indicator margins.

Fixes: QDS-10747
Change-Id: I700b0dd9d8843de47cccf058cd004e5da90761d2
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-12-31 12:59:03 +00:00
Ali Kianian
0976633641 QmlDesigner: Show ui tour when the user opens QDS for the first time
Task-number: QDS-14396
Change-Id: I44729093f14d98737133ecaf5bf8c46c847f523f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-12-31 12:04:08 +00:00
Mahmoud Badri
fbbda7258c QmlDesigner: Fix texture editor in project storage build
Task-number: QDS-14121
Change-Id: If342a81f817dcaa7176591cde5381901af9af2e6
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-12-30 16:57:18 +00:00
Mahmoud Badri
f264aaf934 QmlDesigner: Fix Material Editor for project storage
Quick3D property sheets added to QDS. This is a
temporary solution until project storage processes
sheets from Qt.

Task-number: QDS-14121
Change-Id: I2602132cff330d312b39310e3b130f75d0888934
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-12-30 16:39:59 +00:00
Marco Bubke
38f8113c41 QmlDesigner: Remove unused argument
Change-Id: Id74a3fc9e8874e057eeb522e9c786cc846eaf13b
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-12-30 09:59:29 +00:00
Ali Kianian
c574d3369d EffectComposer: Cleanup warnings
* Some C++ warnings are fixed
* A small improved performance in a string lookup

Change-Id: Ib0cd51b1507e1f61f93e9f3b5c24c73c5d886c3d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-12-27 15:23:45 +00:00
Ali Kianian
832e621617 EffectComposer: Use text values for adding properties directly
On macOS value editing signal is not emitted if the user directly pushes
the apply button. (The editing field stays on editing mode, so the
changes are not committed)
Also if the name is not edited, and display name is not changed, if the
user pushes apply, the uniName is edited on windows, but is not
displayed while the semi-dialog is opened,  which is not good.

Fixes: QDS-14373
Change-Id: I5b1ac0b906baf775611564fb5021103c29e03f73
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-12-23 16:36:40 +00:00
Marco Bubke
d30d5e8662 QmlDesigner: Fix build
Change-Id: I97f88897657f00463c0c4d6555645a466810f236
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-12-23 09:23:36 +00:00
Marco Bubke
bad0bf8f61 QmlDesigner: Fix warning
Use a static constexpr variable instead of a global variable.
skipModules is only used in the function.

Change-Id: Icb4ad4663ce84f8aaa0c286acdc997dcd2e67aa0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-12-23 09:23:30 +00:00
Marco Bubke
d3aede431b QmlDesigner: Use QStringView to avoid some allocations
std::ranges would be even more optimal but we can do that later.

Change-Id: I81a949bc1f9149e8a33bed88dc5ff9a9949bdc20
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-12-23 09:23:22 +00:00
Shrief Gabr
9803eeee2b QmlDesigner: Prevent effects creation by Assets view in MCU projects
Fixes: QDS-14392
Change-Id: I96fdc61bd3f980b3b178438dd8cad6740ac8c350
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-12-19 14:51:47 +00:00
Tim Jenßen
000a003171 QmlDesigner: fix build without QWebEngineCore/Widgets
scattered `#ifdef` guards are functional, but centralize
logic would be better:

- all classes which need webengine could have empty implementations
  in case if it is not there
- or use a factory pattern to abstract feature handling:
  ```cpp
  class DVConnectorFactory {
  public:
      static DesignViewer::DVConnector *create() {
  #ifdef DVCONNECTOR_ENABLED
          return new DesignViewer::DVConnector();
  #else
          return nullptr;
  #endif
      }
  };

Change-Id: I3a620d6cef0a6adbb2ece6e11a5e293e224e6b52
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-12-19 10:27:53 +00:00
Ali Kianian
70c0d5fe85 EffectComposer: Rename code identifiers when uniform name is changed
* If the document is opened for editing, TextDocument will be changed.
Otherwise, only the code for the shaders will be changed.
* Unnecessary model reset for the uniforms is removed.

Fixes: QDS-14371
Change-Id: I4a521cdbbc1af680fa1efbfc8da3183d9fc8e6a1
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-12-18 15:21:35 +00:00
Pranta Dastider
239c29b97f QmlDesigner: Update tooltip for the Remove Effects button
This patch updates tooltip for the Remove Effects button.

Fixes: QDS-14058
Change-Id: Ia51abb0cdd0b760251068816d07ad4616d454fb7
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-12-18 12:39:04 +00:00
Shyamnath Premnadh
1b683ab89e Python workflow: update the documentation
- Add a Note to instruct the user on further Python or data file
  extensions.

Task-number: QDS-13486
Change-Id: If22746fd3753f2ec31003b8b5cb32b3ba4c2f140
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-12-18 12:27:41 +00:00
Teea Poldsam
e6f74b1474 Doc: Use macros for inline images
Task-number: QDS-14400
Change-Id: I0066e323688b0d92e87ca862e13aea9b360fb04e
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-12-18 09:49:53 +00:00
Tim Jenssen
3c9607f348 fix Windows firewall shows Publisher: Unknown
You can test in the powershell with:
(Get-Item "./qtdesignstudio.exe").VersionInfo  | Format-List

Task-number: QDS-14410
Change-Id: I9a01f795d2bd63a3a6579729972eed93608a77e0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-12-18 07:37:55 +00:00
Ali Kianian
dc1e8c4161 EffectComposer: Add help button to the code editor
Task-number: QDS-14251
Change-Id: Ifc09c4e6eca75a2db14c809ccea87c0e197254cb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-12-17 15:17:25 +00:00
Johanna Vanhatapio
46840e2755 Doc: Update the Effect Composer doc
Fixes: QDS-14273
Change-Id: Ia26c2bbf1f63dc8cfd1ce4cdeab13d1b25593e2b
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-12-17 11:44:43 +00:00
Thomas Hartmann
ea1d13a529 QmlDesigner: Use readonly TextEdit in output pane
This make the text selectable so it can be copied.

Task-number: QDS-14230
Change-Id: I4c2e208dfec5e21d19c4c843db9ba4a736a0105d
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-12-17 10:11:49 +00:00
Thomas Hartmann
318e89233b QmlDesigner: Add single translation context to DesignerCore
Change-Id: Ibb2947045ed5d54bccad21c4e00ba7a90ec78000
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-12-17 09:10:18 +00:00
Teea Poldsam
1bda2645d3 Doc: Create macros for inline images
Task-number: QDS-14324
Change-Id: I4e68177bf507c46b1813d114703df208426805ef
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-12-17 06:54:13 +00:00
Thomas Hartmann
9b791b60b7 QmlDesigner: Hide error messages while type information is incomplete
If type information is incomplete an UpdateItemlibrary will be triggered
later. Until then we do not show error messages.

Change-Id: Ic429741019d76f7fbd2f6ae9e48664650b28d666
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-12-16 15:19:16 +00:00
Thomas Hartmann
a8c18f6c04 QmlDesigner: Wait until ModelManagerInterface is finished when loading
This is usually the case when opening the first file and will take
about a second. This makes incomplete types a lot more improbable.

Change-Id: Ie3b545283f531f362cacbeb66ec1d2d30e619566
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-12-16 15:19:05 +00:00
Thomas Hartmann
41f04cd991 QmlDesigner: Do not use context together with Tr::tr
Change-Id: Idf1d138ddf8dabc685befc0ee12caa2dd5e484c1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2024-12-16 15:18:48 +00:00
Rafal Stawarski
82c660bdf2 IssuesPanel: fix for link support
Apparently the manual width calculation for the labelInfo broke link
support (the hand wasn't appearing and the link wasn't resolving).
Replaced the row with the RowLayout and filled the remaining space with
labelInfo.

Task-number: QDS-13932
Change-Id: I383c67a16c7f778a5ffdeca494388c134543c64b
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-12-16 13:21:27 +00:00
Ali Kianian
d2d4f3e3e0 QmlDesigner: Forward style settings for wizards
* StyleModel is refactored to update items correctly. Icon is available
as a role. The model is a proxy model now.
* Caching the style id is simplified.
* Wizards get updates on their options for the style.
* User presets are saved correctly for the styles.
* ToolbarBackend gets updates for the style of the current document.

Fixes: QDS-11937
Change-Id: I1616f7483d01fe4f349e52a0cf9e6e76c8d41932
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-13 15:42:09 +00:00
Miikka Heikkinen
3d0e265aaf EffectComposer: Disable Time field when Running is checked
Internal logic was also changed so that if Running is true, Time field
is ignored. It is also no longer necessary to reset the Time field to
restore Running to working condition.

Similar changes were made for frame based animations.

Fixes: QDS-14386
Change-Id: I2e6dd3d7c199a5b449abf227a48f6d13777980c3
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-12-13 15:28:19 +00:00
Thomas Hartmann
32957c2feb QmlProject: Translate issue
Change-Id: I6913171ff792b69f1ca783612a8d9b6e93c3f7ae
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2024-12-13 15:03:21 +00:00
Knud Dollereder
7a9953c6d3 QmlProjectExporter: Add newline after bigResources statement
Change-Id: I4461e81a694f6f49c5e1c0c6451e23b3f0fa321e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-13 14:58:56 +00:00
Henning Gruendl
95ebded060 QmlDesigner: Fix popup text color device manager
Task-number: QDS-14378
Change-Id: I4813d61b893a4e1fdf3579a481b9077b944d1389
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-13 08:44:39 +00:00
Thomas Hartmann
8a0a64ba0d QmlDesigner: Use Tr::tr
When using Tr::tr we have a single translation context,
which makes the translators easier.

Change-Id: Ia3be8504c7fe6111b6eb0d6477b32a315b178b59
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-12-12 18:32:11 +00:00
Tim Jenßen
865bc44729 restore project_tree_creator.tsv files
accidently merged in commit e35b6faf9c

Change-Id: Ide2f5364ed5c42a7e7addee409e3bf3d2e9e251e
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-12-12 17:33:22 +00:00
Henning Gruendl
7ed7f98455 QmlDesigner: Add save modified files dialog
Add a save modified files dialog for Android run process.

Change-Id: I6b7d006d9f353b95ecd803c211a84f0182361d6e
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-12 15:38:50 +00:00
Henning Gruendl
2317dabaaa QmlDesigner: Remove starting state in SplitButton
Remove the starting state as there are missing signals from run control
to robustly come back from starting state when e.g. save dialog was
canceled.

Task-number: QDS-14327
Change-Id: Ie1f6f1243935e9c2e8fa4b2d2b6a5d702e1c3054
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-12 15:26:56 +00:00
Thomas Hartmann
44ddd996cc QmlDesigner: Remove QT_AUTO_SCREEN_SCALE_FACTOR
This is deprecated in Qt 6.

Change-Id: Ide45cdcb606e0739bf500d669aa7cd32ee248666
Reviewed-by: Jaime Resano <Jaime.RESANO-AISA@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-12 13:44:59 +00:00
Henning Gruendl
aca53f238f QmlDesigner: Remove share license limitation
Change-Id: Ife05f14478fe86a8c36009e06c86295fdb170a59
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-12 13:44:49 +00:00
Mahmoud Badri
3945308d88 QmlDesigner: Update icons in effect composer and content library
Add 9 new icons to the icon font and update them in effect composer
and content library

Change-Id: I6f929b1e25e8ac4adcf0ad3b4bcfa06f56b6f379
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-12-12 13:28:28 +00:00
Johanna Vanhatapio
141c59edaa Doc: Convert the docs to sentence case
Fixes: QDS-14226

-\titles, \section1, \section2 etc.
- some minor grammar fixes, \uicontrols etc.

Change-Id: Ifc0c7af5f5c7374377d818da7a0a5c147005da49
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-12-12 12:05:19 +00:00
Tim Jenßen
9bf7e8e2f6 QmlDesigner: improve terminology consistency
- Removed secondary name "QML Emulation Layer," which was introduced
  to hide the term "QML Puppet" from normal users
- "QML Puppet" settings are nowadays hidden from normal users anyway
- Added crash info indicating it is an internal process; this is the
  only location where "QML Puppet" is exposed to normal users
- Removed outdated CMake comments

Task-number: QDS-13345
Change-Id: Idb8b909580269a8396842f1cc4ad056649075d01
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-12-12 10:30:09 +00:00
Tim Jenßen
e35b6faf9c rename qml2puppet to qmlpuppet
Reduce confusion that the 2 does not mean qml is transported.

It was the version when we had 1 and 2, but one is gone long ago.

Task-number: QDS-13345
Change-Id: Ie1664f4fd489182e5e234e31b4bf92a5f547323e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-12-12 10:10:04 +00:00
Miikka Heikkinen
6751080884 QmlDesigner: Fix 3D import for project storage builds
Fixes: QDS-14332
Change-Id: I4fc71e82cb842607d84cf42a5127ff1a4e76090e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-12 09:15:09 +00:00
Henning Gruendl
e8c4e73de4 QmlDesigner: Fix error code in share dialog
* Add special text for error codes smaller 100
* Remove unused tool tip

Task-number: QDS-14354
Change-Id: I6e313ea1928ee86aef73a0e5019ecf2112f2baa3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-11 16:52:49 +00:00
Henning Gruendl
094379e2ce QmlDesigner: Fix device manager table text edit
Fix device manager table text edit by using QtQuick.Templates instead of
QtQuick default style. Otherwise this will cause issues under windows.

Task-number: QDS-14270
Change-Id: I4ecc90fd7a581211818ed1f7d5058ca24f5625aa
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2024-12-11 16:50:11 +00:00
Henning Gruendl
6906d9c07d QmlDesigner: Reset helper text in share dialog
Task-number: QDS-14356
Change-Id: Ie488a5f12ac49163d1a389b4847be186dacdf647
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2024-12-11 16:49:33 +00:00
Knud Dollereder
40a26adb89 QmlProjectExporter: Add include guards to the environment template
Fixes: QDS-11892
Change-Id: I16e5ba9e848f8572e511d2a11bc839a5c03e7dbc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-11 15:56:36 +00:00
Thomas Hartmann
b6c5d277d4 QmlDesigner: Add state group support for transitions
Task-number: QDS-14041
Change-Id: Id9562039ab89d5f086a311ac2212b7fd4c95589a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-12-11 11:59:05 +00:00
Ali Kianian
2a1b683032 QmlDesigner: Create qmlproject option for standalone application
Task-number: QDS-14189
Change-Id: I71b1971d3db9b6af8c377a9a5636607c38dd3abc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-12-11 11:36:20 +00:00