Commit Graph

8715 Commits

Author SHA1 Message Date
Mahmoud Badri
47dd925730 QmlDesigner: Add HelperWidgets FlagsComboBox
Change-Id: I05294aa1483926d943f8a40d1d9702298110fe94
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-07 12:08:43 +00:00
Eike Ziller
6b6aa89650 German translation: lupdate for 13.0
Check out with submodules (`git submodule update --init --recursive`).

Configure Qt Creator:

    cmake "-DCMAKE_PREFIX_PATH=<qt_path>;<llvm_path>"
          -DCMAKE_BUILD_TYPE=Debug -G Ninja <src>

Generate ts file:

    cmake --build . --target ts_de_cleaned

Change-Id: I1c38da74f87352eeb6bc65b979d1e18d35668da8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-06 07:19:05 +00:00
Thomas Hartmann
6cd5f09941 QmlDesigner: Fix warning in PopupDialogButton
We should use the templates in this case.

Change-Id: Ia727f8c082de36222fff09ee72997c9899e07e97
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-04 17:11:55 +00:00
Mahmoud Badri
88c52f0c25 QmlDesigner: Add CustomComboBox to StudioControls
CustomComboBox requires a custom popup. This will be base for an
upcoming multi-select HelperWidgets Combobox.

Change-Id: I92869d064b69c11f577b297fc48a38f76c423060
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-04 13:56:22 +00:00
Thomas Hartmann
387fb176d0 QmlDesigner: Fix importmodule.qmldir.tpl
Module -> module

Change-Id: Ib441f6aa2fb3b9c4d7d69654acce8db83c4f93fe
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
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-03-04 10:43:20 +00:00
Ali Kianian
f7530458c4 QmlDesigner: Remove CollectionSourceModel
Task-number: QDS-12032
Change-Id: Id0b999500a0a8cae16a90a59d051cd725417e431
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-01 13:17:42 +00:00
Tim Jenssen
56c4ba1db4 Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I1d328f67a1c538e36a54f9660d5fb2840a6753df
2024-02-29 19:40:30 +01:00
Tim Jenssen
409b9d904f QmlDesigner: refactor dynamiclicensecheck.h
Change-Id: Ic806a32c87200219f6376356bf251cfd5927deed
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-29 14:13:56 +00:00
hjk
4ca8ad8293 Debugger: Fix breakpoint settings in assembler for LLDB
Setting the breakpoint actually worked, but it was reported back
using a wrong address, so it never went "red" in the disassembler view.

Change-Id: I4c2bd808705dfe793c0febf29b3e78b318dbae00
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-28 16:28:16 +00:00
Alessandro Portale
903d01b934 Welcome: Implement new design
2024 redesign

Change-Id: I6629849921272d856f201693973a8e29c6465e94
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-27 16:42:10 +00:00
Ali Kianian
46e17234a3 QmlDesigner: Use a single menu for the item cells of the model editor
* This also removes the warning for the implicitHeight of the menu

Task-number: QDS-12024
Change-Id: I3b9c9b40bc591071adb5775b62f0347567ac50d8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-27 13:39:26 +00:00
David Schulz
a57a925b76 Debugger: defer type look up
Change-Id: I425c2bfc3c88ebf46af161c5434c0c05a3bb9c97
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-27 11:32:53 +00:00
Ali Kianian
d473f9aabb QmlDesigner: Prompt to consider first row as header for CSV files
* Also, a bug is fixed for reading the quoted texts within CSV rows

Fixes: QDS-11667
Fixes: QDS-11834
Change-Id: I74242148e38c8e71edeb45f3543308259358ee1a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-27 10:45:48 +00:00
Mahmoud Badri
fd2ec14a2d QmlDesigner: Collection editor new collection dialog improvements
- Show a unique name when the dialog appears
- Unify and simplify the unique name generation methods
- Fix name field left border cut
- Remove warning on dialog open
- Clear lot of clutter

Change-Id: Ie5b9711c704e68bb41c4f7c3ff63091d9bd11175
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2024-02-26 15:19:15 +00:00
Miikka Heikkinen
3f40da0978 EffectComposer: Fix qml warnings
Change-Id: I40abc68800b95888edae0450625f20d51fd8ed74
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>
2024-02-26 12:41:44 +00:00
Eike Ziller
98ffe3d9d0 AutoTest: Small fixes in translatable strings
Make the tool tip for useXMLOutput, quickCheckForDerivedTests, and
parseMessages consistent, use rich text instead of manual line breaks.

We use plural for the things that a locator filter locates (for filters
that don't trigger an action).

Beautify tool tip.

Change-Id: I6276e9a0894d59670a45937e1c4227405c346f38
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-26 11:22:42 +00:00
Eike Ziller
76cd84b7cd iOS: Fix some missing full stops
Change-Id: Ie6c1b9dafc3e3fe349adcbe6011244136002cc01
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-02-26 09:09:47 +00:00
Mahmoud Badri
3d16642dfd QmlDesigner: Fix onIsHorizontalChanged warning
Change-Id: Ic39ed41e8276209dddf852118f0c62d8c4a1d81b
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-23 13:12:27 +00:00
Mahmoud Badri
5ab8fcad89 QmlDesigner: Fix collection editor's context
Change-Id: I9aceb9bf3f772f381006aad30eb7addfe3b1bea5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-23 09:56:01 +00:00
Eike Ziller
455a9986df QmlDesigner: Use qsTr instead of qsTrId
The latter is used nowhere else, so stay consistent

Change-Id: Iaaf30d8d4c283363a05011a868fc75c773c2ed3c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-22 11:41:10 +00:00
Eike Ziller
a0517bca48 Fix Axivion tr context
Prefix with QtC::

Change-Id: I0cc6b2e4a679c92235ba5c3f471a13f14057418a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-22 07:18:12 +00:00
David Schulz
88aacbb562 Debugger: fix char type dumper optimization
Change-Id: I600f4ddc9a4539e19b70664fd9354c17e64cd0d6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-21 07:56:43 +00:00
David Schulz
c76fc8e1e5 Debugger: fix dumping char arrays
The calculation for the size of the memory to fetch for the dumper was
missing the char size information.

Amends a26aff7afd

Change-Id: I8ceb127efaf7effa94fc53e6782f75580ab8cdb4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-02-21 06:00:24 +00:00
Tim Jenssen
0416941fd1 CMake: introduce option BUILD_DESIGNSTUDIO
This change needs an update of the super repository

If you want to buid QtDesignStudio documentation no branding path
is necessary anymore:

cmake -DCMAKE_GENERATOR:STRING=Ninja -DWITH_DOCS=ON -DCMAKE_PREFIX_PATH:PATH=C:\Qt_online\6.5.3\msvc2019_64 -DBUILD_DESIGNSTUDIO=ON C:/dev/tqtc-qtc-super/qtcreator
cmake --build . --target html_docs

Task-number: QDS-9827
Task-number: QTCREATORBUG-24222
Change-Id: Ic779b6ab57c71c7f6fa53467bf1ba3ee17cab0ea
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-02-20 20:19:40 +00:00
Ali Kianian
bb63198f8a QmlDesigner: Open collection editor for dropped ListView
* A default color model will be created and assigned to the ListView
when a ListView is dropped to the view.

* The user can edit the assigned collection of the list model by having
access to an action in the context menu of the form editor.

Task-number: QDS-11671
Fixes: QDS-11792
Change-Id: I70252f6e34ccbc95d8b700459f45a11a76c81c50
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-20 11:02:17 +00:00
Miikka Heikkinen
f926cbaaca EffectComposer: Preserve expand state of effect node sections
Fixes: QDS-11974
Change-Id: I38d9efb8f05d5b0064fe9e85fdf4b624f5cef11f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-20 10:17:24 +00:00
Christian Kandeler
1bd3c7d9e5 Wizards: Stop chasing The Current Thing in string construction
Guard against random deprecations by using a robust solution that works
across all Qt versions.

Fixes: QTCREATORBUG-30325
Change-Id: I00428d2454fcd6abffd3a25631946ea5d27cc4ae
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-16 13:45:41 +00:00
Mahmoud Badri
d83a464615 EffectComposer: Fix scroll to end when adding a node
Change-Id: Id13a825cedfe98500337d1914bda064c2f5e3bb3
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-16 13:03:33 +00:00
Miikka Heikkinen
788d4c0040 EffectComposer: Improve reordering nodes via drag
The dragged effect is collapsed when dragging start, which helps with
large nodes. Autoscrolling content was added when dragging nodes to
the top/bottom of the scrollview.

Fixes: QDS-10857
Change-Id: I5027324918a200746356704e36a6d99cb98aa04e
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-16 10:14:19 +00:00
Tim Jenssen
6d632e0d93 Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I9e4eb40209acf04c66b12e595ec9e2234d859294
2024-02-14 10:10:03 +00:00
hjk
a26aff7afd Debugger: Report full sizes instead of the elide setup
More direct communication of the meaning. Use 'length' when talking
about things like string lengths, and 'size' for sizes in bytes.

Task-number:  QTCREATORBUG-30065
Change-Id: Ifed84a5dab4ed890973c1abf4d427655eb50a61a
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-13 17:01:23 +00:00
Tim Jenssen
adcac7cb6b Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I242c01e82fc1b0db1f5e88c35d526f91dd022337
2024-02-13 14:33:35 +01:00
Henning Gruendl
211ae49130 QmlDesigner: Close PopupDialog on QtDS inactive
Close a PopupDialog whenever the main application becomes inactive by
e.g. focusing another app. This prevents the PopupDialog being drawn
on top of that any other application.

Task-number: QDS-11870
Change-Id: I2d5dce4a7a54d43382010dedee3ba214a70d2eb8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-02-13 09:40:11 +00:00
Ali Kianian
4c4e90062c QmlDesigner: Update the value of the color picker for CollectionEditor
Fixes: QDS-11796
Change-Id: Iaf3f6bc06771f461c4119d55ae3c3a294d3d8564
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-13 07:14:17 +00:00
Miikka Heikkinen
e66b19d4c4 EffectComposer: Add confirmation dialog to clear all effect nodes
Fixes: QDS-11445
Change-Id: Iedd41e2799148c6d8f4eb3bca77dd5f1b7b053e6
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-12 15:52:34 +00:00
Miikka Heikkinen
93993c322e EffectComposer: Fix effect preview zoom
Zoom must scale the component showing the preview, not the source
image. This way the effect stays consistent regardless of the zoom
level.

Fixes: QDS-11899
Change-Id: I550eb9ff693c24a853f5c25d9d79fa146448663f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-12 14:32:37 +00:00
Michael Weghorn
4aaf7f2689 Debugger: Add debugging helper for std::tuple
Add debugging helper for std::tuple and add
a corresponding dumper test for it.

With this in place, the std::tuple variable and its elements
in the "tuple.cpp" sample program from QTCREATORBUG-25865 are
shown as expected on both, Linux (libstdc++) with GDB or LLDB and with
an MSVC build with CDB on Windows.

A debugging helper for libc++ had already been added in commit
34ff9c97e6.

Task-number: QTCREATORBUG-25865
Change-Id: I24b3d36b5daa26fd4fcb073c4df79015dfe752fc
Reviewed-by: hjk <hjk@qt.io>
2024-02-12 11:55:18 +00:00
Ali Kianian
9fedced0ac QmlDesigner: Reset table cell sizes after resetting CollectionDetails
Fixes: QDS-11743
Change-Id: I7b8f0a83d796bd8094981e12032e6f0b465e2508
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-09 20:35:57 +00:00
Ali Kianian
97af12dcb8 QmlDesigner: Tweak the ui of the Model Editor
* A SplitView is used instead of GridLayout for the CollectionView
* The left margin for the model items are removed

Task-number: QDS-11732
Change-Id: Id66171788db1f17583147fc6f16ffd0e69ac56a5
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-09 13:11:05 +00:00
Miikka Heikkinen
ca6e6e4f3e QmlDesigner: Fix validation on integer spinboxes
Now spinboxes use IntValidator if decimals is set to zero.

Fixes: QDS-11922
Change-Id: Ibe8c8a18294a6764a0cd2182d09c30cdf9fb27cc
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-08 14:26:29 +00:00
Miikka Heikkinen
c491d652ab QmlDesigner: Prioritize hiding asset_imports content in UrlChooser
If the same file is available under asset_imports and outside it,
prefer hiding the copy under asset_imports in UrlChooser when duplicate
hiding is enabled.

Fixes: QDS-11908
Change-Id: I06ac298e1ea45f6a94c66eb20cc4c0d4655103f4
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-02-08 08:58:36 +00:00
David Schulz
a6eb6dd909 Debugger: try harder to find static meta object
Improves dumping of QObjects when the staticMetaObject is defined in a
different module than the object itself.

Change-Id: Ic02103016d14b4925978d8afeaf2dbcc5dcebf85
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-07 11:25:50 +00:00
Thomas Hartmann
87dd0096b4 QmlDesigner: Disable share button in open source version
Task-number: QDS-11627
Change-Id: I3eb21fa84b6993aa783713ef5fa3beba1e3e030e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-07 10:44:11 +00:00
Michael Weghorn
941ad80d60 Debugger: Add debugging helper for std::string_view
Add debugging helpers for std::string_view,
std::basic_string_view and std::u16string_view
and add a corresponding dumper test for them.

With this in place, values of the local variables in the
"string_view.cpp" sample program from QTCREATORBUG-25865 are
shown as expected on both, Linux with GDB or LLDB and with
an MSVC build with CDB on Windows.

Fixes: QTCREATORBUG-25865
Change-Id: If8959e3225d9ce7f427a65ff6f1f134d3ad48e91
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-07 07:47:13 +00:00
David Schulz
cf1e9db73b Debugger: ignore fields with a null address
cdb reports static members in fields sometimes with a null address.
Ignore those static entries since they cannot be visualized.

Change-Id: I0c58b2d75e95892185051e3c0a8dd9e6217596c3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-07 03:58:50 +00:00
Shrief Gabr
e43b0bcc1f QmlDesigner: Fix unchangeable data in cells
* Changes to the cell data are saved if Return or Enter keys are pressed.

Task-number: QDS-11894
Change-Id: Ia3a1ff8f6c9275906736fa1e0638b81c92bea910
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2024-02-06 19:12:24 +00:00
Miikka Heikkinen
3e70980279 EffectComposer: Commit float and int fields on focus out
Fixes: QDS-11919
Change-Id: Id1750142d9a45b723f615d6a7da3989285f4b7aa
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-06 16:01:47 +00:00
Ali Kianian
c58efc4310 QmlDesigner: Implement new data store structure for Model Editor
Task-number: QDS-11778
Change-Id: Ia98fee976e5d81acc608b6209da270cbee2f9c61
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-05 15:15:11 +00:00
Miikka Heikkinen
ca9e72fe6c EffectComposer: Delete obsolete resource files at effect save
If a new version of same effect is saved, remove files that are
no longer part of the effect from the effect import dir after the save.

Fixes: QDS-11737
Change-Id: Iae4da39f9f4713c2e26f1b90263881c8c9e13d78
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-05 13:41:21 +00:00
Brook Cronin
d83eeb0b8f Qml Designer: Add uniform cell size properties to layouts
Change-Id: If2e0958c124cff259b1dbea57dd798711f0a0f1d
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-02-02 13:19:09 +00:00