Commit Graph

8715 Commits

Author SHA1 Message Date
Thomas Hartmann
7f2b721dbf QmlDesigner: Fix id in StackView template
Task-number: QDS-10749
Change-Id: Ic611297f9da64461351a4f29374fdac3709494d2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Peter Rohles <peter.rohles@qt.io>
2023-10-06 16:08:26 +00:00
Thomas Hartmann
793323cc16 QmlDesigner: Add .qad filter to project template
Task-number: QDS-10815
Change-Id: I5a83e27197f33b39469bcfe5d5d94cccca79d14e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-10-06 09:53:41 +00:00
Tim Jenssen
85ea2758ac Merge remote-tracking branch 'origin/qds/dev' into 12.0
Conflicts:
	share/qtcreator/qmldesigner/connectionseditor/SuggestionPopup.qml
	share/qtcreator/themes/dark.creatortheme
	share/qtcreator/themes/default.creatortheme
	share/qtcreator/themes/flat-dark.creatortheme
	share/qtcreator/themes/flat-light.creatortheme
	share/qtcreator/themes/flat.creatortheme
	src/libs/utils/CMakeLists.txt
	src/plugins/CMakeLists.txt
	src/plugins/qmlprojectmanager/qmlproject.cpp
	src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp

Change-Id: Idd87c281e1aa7b7fd2702473ad55e18563cbfb21
2023-10-05 15:53:42 +02:00
Amr Essam
84bbfec651 QmlDesginer: Add functionality effect preview
Also some refactoring and fixes to the model

Task-number: QDS-10811
Change-Id: If27b2e8e9bac4d46200ed37bf0aec8255ee19022
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-10-03 08:14:58 +00:00
Marco Bubke
1177bb4b1f QmlDesigner: Add PropertyComponentGenerator
Task-number: QDS-10578
Change-Id: I2c20f5aaa6ebfe7736012a02d4c4596589007866
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-02 20:22:10 +00:00
Tor Arne Vestbø
81d571468c lldb: Auto install pygdbmi if not found
It's quite awkward that the user has to manually install pygdbmi
for the LLDB summary provider to work. And if the user has python
from homebrew, their 'pip3 install pygdbmi' won't be seen by LLDB
either, causing confusion.

By automatically installing pygdbmi via the python3 interpreter we
know we're running under, we simplify this for the user.

The user can opt out by setting QT_LLDB_SUMMARY_PROVIDER_NO_AUTO_INSTALL
in the environment.

Change-Id: Iad7935fd77e6f56ddf719126ef7ad1cb1a024877
Reviewed-by: hjk <hjk@qt.io>
2023-10-02 13:27:20 +00:00
Amr Essam
dd47104d20 QmlDesigner: Create the host component for effects
A dummy parent to host the effect qml object.

Task-number: QDS-10811
Change-Id: I448e7d334070011d2d22a6a2cd43262b6fc57ea2
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-10-02 11:27:39 +00:00
Amr Essam
44a8ffdf39 QmlDesigner: Refactor effect preview component
Warm up rendering by introducing some adjusts and refactoring

Change-Id: I6575467325f5f6c2001958d4f95c9c74be17143f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-10-02 10:36:14 +00:00
Ali Kianian
01a4f087c6 QmlDesigner: Use Studio.Models as the source of the CollectionEditor
QtQuick.Studio.Models JSON and CSV components are used as the source
of the Collection Editor.
Collections are placed underneath the sources in the collections view

Task-number: QDS-10809
Task-number: QDS-10462
Change-Id: Ia0c9cb587c462fcba98934b15068582f3f9c19c5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-10-02 09:52:42 +00:00
Cristian Adam
ba1e54b8a4 CMakePM: Add a sample Find Module CMake package snippet
This is taken from https://cmake.org/cmake/help/latest/manual/cmake-
developer.7.html#a-sample-find-module

And provides three customization points:
 1. $package$ - ZLIB
 2. $header$.h - zlib.h
 3. $library$ - zlib

This way users can easily create FindZLIB.cmake find modules which can
be easily used as target_link_libraries(my-app PRIVATE ZLIB::ZLIB)

Change-Id: Id5143c46ecfde09419d4f43b9a3ff156401a88f9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-29 16:54:41 +00:00
Aleksei German
1aeade09c9 QmlDesigner: Fix MCUs project wizard
Task-number: QDS-10802
Change-Id: I94591458ced09ea483df75f8e5bfdd4b506baca0
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-29 11:06:29 +00:00
hjk
7a90fbaa0c Translations: Rename QtC::Bookmarks to QtC::TextEditor
Change-Id: I36a56bf3ec50c47a86f56cdd8428fd352defde8e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-28 14:55:17 +00:00
Tor Arne Vestbø
182d4540b3 lldb: Add summary provider basic debugging facility
Change-Id: I166ad0c2e7d4ed508b1f4a8eeaf5e1e2488a3b70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:54:23 +00:00
Tor Arne Vestbø
7033bbf7e0 lldb: Set environment variable to detect when running lldb from Creator
Instead of relying on __name__ being 'lldbbridge', which can also
be the case if the lldbbridge.py script is imported into a plain
LLDB process, we can now look at the environment variable.

This also lets us break out early from __lldb_init_module
if the user has a `command script import llbdbridge.py`
in their .lldbinit, or is automatically loading the bridge
via the Qt Core debug script.

Change-Id: Id8168c692ef66ce50119b7426ca85c7bc99d9503
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:54:13 +00:00
Christian Stenger
8f741e3ab0 AutoTest: Split and re-organize wizard
Split off the single wizard into separate wizards listed
inside a separate projects category.
Simplifies maintenance and additional handling to be added
in a later patch.
Minor drive-by fixes for the cmake based projects.

Change-Id: I4f2f83c3892ea9a0f31691770a927294922c382d
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-27 09:57:25 +00:00
Henning Gruendl
8f69e5c0f2 QmlDesigner: Force hide scrollbar in certain mode
Force hide vertical scrollbar in landscape mode. Force hide horizontal
scrollbar in portrait mode.

Task-number: QDS-7850
Change-Id: I1c1d4c879a58309a61ceb646a6aeaccc2300f243
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-26 14:39:39 +00:00
Henning Gruendl
1cee5e08b1 QmlDesigner: Rename inherited font caption
Task-number: QDS-8680
Change-Id: Ib40d4d2b547a7f04c9965cecb487ecfa5edda1a5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-26 14:39:18 +00:00
Henning Gruendl
a63aa6b130 QmlDesigner: Change empty property view message
Task-number: QDS-7861
Change-Id: Iefc9e880ae20e40fa75ea584d24a39bee332927d
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-09-26 12:58:21 +00:00
Henning Gruendl
3612039365 QmlDesigner: Remove smooth from image specifics
Remove the smooth property from image specifics as it is also available
in the advanced section.

Task-number: QDS-8726
Change-Id: I842a7978e65d4578434b158340484649abe4956f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-26 12:57:21 +00:00
Christian Stenger
8ebcd73e13 AutoTest: Provide a couple of test related snippets
Unfortunately there is no easy way to enhance existing providers
based on conditions or by extending the snippet collection with
plugin internal paths.
So, add snippets to known snippet providers.

Change-Id: I55da59389b5dc28aa27bb2974699aa4674c0bbf2
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-26 05:51:31 +00:00
Aleksei German
67605661df QmlDesigner: Bump MCUs version
Task-number: QDS-10768
Change-Id: I8033319eee6a5a48c02d4883a739b2dac86c521e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-25 15:56:23 +00:00
Thomas Hartmann
27d25261f9 QmlDesigner: Fix merge for tooltips
Change-Id: Ic72817e01595ba47e4d510d136280b69057b7f5f
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-22 09:23:59 +00:00
Henning Gruendl
1968b5e407 QmlDesinger: Add transient ScrollBar FilterComboBox
* Add transient ScrollBar to FilterComboBox
* Apply new selected item style
* Remove selected item icon

Change-Id: Ic479cb23b3c0cff70447e5e7a89ab4e1b61f3489
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-22 09:22:17 +00:00
Henning Gruendl
3229c355b2 QmlDesigner: Deactivate auto complete temporarily
Change-Id: I5f76e25133f99174c6ea2e5d40f8589c384e47f3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-22 09:22:02 +00:00
Pranta Dastider
d1d23b09e8 QmlDesigner: Update Tooltips for Connections, Bindings and Properties
This patch update tooltip texts for the fields within
the Connections, Bindings and Properties sections of the
Connections view.

Fixes: QDS-10626
Change-Id: Iaf05aa8cdced051a3654ef0590cdbb36347625b6
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>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-22 09:03:53 +00:00
Miikka Heikkinen
15051d112e QmlDesigner: Preserve size of small asset view images
Small images get blurry if scaled up, so just show the original image
in the thumbnail if it is smaller than the thumbnail.

Fixes: QDS-10671
Change-Id: I76b5b1c5b316fb66e7df71602383b894dd7bc635
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-21 15:02:29 +00:00
Henning Gruendl
f47e7d9d6c QmlDesigner: Fix transient scroll bar disappearing
Task-number: QDS-10689
Task-number: QDS-10690
Change-Id: Ib74e27f06ca24ff13f3000297c88306a7a9bb579
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-21 12:23:06 +00:00
Thomas Hartmann
18a3a55d95 QmlDesigner: One more missing qualification
Change-Id: I394e58b2cccdfbfcacd13ff2c5cefba8d4719ef4
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
(cherry picked from commit e156854fc3)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-21 11:38:37 +00:00
Mahmoud Badri
e4b8af404b QmlDesigner: Fix effect maker popup doesn't close on focus out on mac
Fixes: QDS-10515
Change-Id: Icaef0532bd2427e9cac326f40143e158ca8c5e97
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-09-21 11:21:17 +00:00
Mahmoud Badri
25b540d995 QmlDesigner: Fix ScrollView not working on Windows
Caused by (5676e61298)

Change-Id: I9dd45a31326e061e5ef6e3cddfcd069ce9132aee
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-21 10:44:07 +00:00
Ali Kianian
bbd80f712e QmlDesigner: Add Json and CSV Icons to the IconFonts
Change-Id: I2e4f3b92530f9301713bfe7796d1d1e60f291054
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Heikki Paulaharju <heikki.paulaharju@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-21 10:11:36 +00:00
Henning Gruendl
105bc1b253 QmlDesigner: Remove search temporarily
Change-Id: I4759c9bd4c831b2e4df9522fe9598fe2d8099bed
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-21 08:42:30 +00:00
Mahmoud Badri
3f1baa7519 QmlDesigner: Update effect maker preview images
Also fix clicking outside the comboboxes doesn't close them.

Change-Id: I461501f90756f4e4eb96dace3839e9b6f0c0d9b8
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-09-21 08:38:20 +00:00
Henning Gruendl
5676e61298 QmlDesigner: Add transient scroll bar to ComboBox
Change-Id: I118e4801fef9fab117e4d7355e56616c7d001858
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
2023-09-21 07:47:09 +00:00
Henning Gruendl
4ff83dd4cc QmlDesigner: Show remove button on hover/selection
Change-Id: Ibb58d2f60bea0bf780bd51d209a5ddd953e3cf64
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-21 07:46:18 +00:00
Pranta Dastider
e4c96428c7 QmlDesigner: Update Tooltips for Connection view titles
This patch update tooltip texts for titles directly under
the connection view.

Fixes: QDS-10626
Change-Id: If0eb948143536702df0219e64db8a7370ba8cb42
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-20 15:12:50 +00:00
Tor Arne Vestbø
4b29b43a2a lldb: Add summary providers using consistent module name
When the lldbbridge is imported from the debug_script.py in qtbase,
it's imported using the module name 'qt', to distinguish it from
when Qt Creator imports the bridge.

So when we add the synthetic child provider, we need to use the
'qt' module name. This fixes the warning:

  The provided class does not exist - please define
  it before attempting to use this synthetic provider

If for some reason the lldbbridge.py is imported into a LLDB session
directly, we mirror the 'lldbbrdige' module name to 'qt' as well,
so that the class reference still holds.

Change-Id: I531b10fd5e10eb0c2acd6014169a02ba3157c704
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-20 11:20:57 +00:00
Eike Ziller
13c12f33e5 Merge remote-tracking branch 'origin/11.0'
Change-Id: I397dde2f95f62eb4843c39dd861522ae63d7f2c9
2023-09-20 10:43:54 +02:00
Thomas Hartmann
83c7c0d31b QmlDesigner: Add missing qualification
This was leading to random errors.

Change-Id: I51ec0c71ac1bd3ea7bd966eeb4d3a2b9cfeb0159
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
(cherry picked from commit 5ff6fe0eba)
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 17:50:56 +00:00
Cristian Adam
7de97c7a7f CMakePM: Add CMake snippets
Added four CMake snippets.

Change-Id: I5f6f16ff8fd1a7ddd9647431f2f72529b882d603
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-19 17:11:38 +00:00
Thomas Hartmann
f2343b417e QmlDesigner: Close the popup when model is detached
This happens when leaving the edit mode or the document
is changed.

Task-number: QDS-10707
Change-Id: I4b4e2511674d38c2d733db29070c01252c27c386
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-09-19 16:35:20 +00:00
Mahmoud Badri
ffe3670d90 QmlDesigner: Implement changing effect maker preview image
Fixes: QDS-10625
Change-Id: I48ef68fd4b64a37de3dc60f5decfcda1b43496dc
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 14:17:12 +00:00
Henning Gruendl
da92e16a92 QmlDesigner: Add tooltip on elided pills
Change-Id: I4a40070b958a46e46009ba8f141fd5c286858ab7
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 12:43:34 +00:00
Brook Cronin
37c4937d6d QmlDesigner: Add new icons
* Add new icons
* Change position code editor button
* Add eliding to the code preview

Change-Id: Ib47b0e28ae9b4deebc7bace942f43d8249f46299
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 12:43:04 +00:00
Thomas Hartmann
e156854fc3 QmlDesigner: One more missing qualification
Change-Id: I394e58b2cccdfbfcacd13ff2c5cefba8d4719ef4
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 12:24:47 +00:00
Brook Cronin
f5e01b8b09 QmlDesigner: Fix Pill eliding logic
Change-Id: I573251001b2e77ff3f3fb0046615d65de814c21d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 11:25:10 +00:00
Henning Gruendl
560b77d64b QmlDesigner: Fix Connections in ConnectionsEditor
Fix Implicitly defined onFoo properties in Connections are deprecated.

Change-Id: I0f2460dd4b69c070f4982ca0ec13b19cfda0342b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-19 10:20:37 +00:00
Thomas Hartmann
94bd14eb46 QmlDesigner: Bump QDS version in template
Change-Id: If05eb88eabd59d0a63944887f896e32da2b9c202
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-19 09:03:17 +00:00
Thomas Hartmann
1b9ed62028 QmlDesigner: Close dialog if target is removed
If the target is removed also the connection is removed and
we close the dialog.

Change-Id: I361e89ef64484e39bc0068e103f542cbc9dcbf78
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-09-18 15:54:39 +00:00
Thomas Hartmann
0547cff092 QmlDesigner: Update branch for designer components
Change-Id: I370fcd7eb15a26d28e60dc8bf2cdf24c29a43957
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-18 15:52:45 +00:00