Commit Graph

85691 Commits

Author SHA1 Message Date
Tim Jenssen
8ae76adbf5 QmlPreview: fix use an init language
Change-Id: I2d2774d88a237871eaddacd18c55490e9bd953ef
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-08-31 16:42:58 +00:00
Tim Jenssen
dc78c8faa2 QmlPreview: introduce RefreshTranslationWorker
Change-Id: I327cdd5d869f6cfdd47a826fd42306b8de69aa14
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:42:48 +00:00
Tim Jenssen
09236407d1 QmlPreview: add stopAllPreviews()
Change-Id: I092361063d7f51602c2044e00feb8d8c5bccf4de
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:24:45 +00:00
Thomas Hartmann
44fa5d90d6 QmlDesigner: Refactor QML in Connection Editor
Moving the StatementEditor into a separate component, so it can
be used for else case.

Change-Id: I2fc5a002333d63a484142a997882e502ffcc4016
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-31 16:11:58 +00:00
Thomas Hartmann
cdf0b83094 QmlDesigner: Take property types into account
A boolean property should only take a boolean, number only a number
and so on...

Change-Id: Ibc327390262c93bf262570a0c749cd826d06a678
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-31 16:06:16 +00:00
Thomas Hartmann
d10b1fbee9 QmlDesigner: Reparent Connection if retargeted
The old implementation did the same.

Change-Id: Iaf925bbbe7f47198aac319dbe930871854694316
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:05:56 +00:00
Thomas Hartmann
94d03d5640 QmlDesigner: Fix alignment
Change-Id: I892c26b4c50446bc297154d160ee4514f927ccf1
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-31 16:05:45 +00:00
Thomas Hartmann
83fac0a5ee QmlDesigner: Add maximum height and scrollbar to TopLevelComboBox
Change-Id: I9af9b8df6ef9f307b0bb0fd6f0a673a09b1c9943
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:05:04 +00:00
Thomas Hartmann
e348115237 QmlDesigner: Add a few more priority properties
Change-Id: Icee5723c670110d15828a657e8f5546a3b7580ab
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 16:04:53 +00:00
Thomas Hartmann
c00eb87c96 QmlDesigner: Update QML for ConnectionEditor
* Style PropertiesList
* Style BindingsList
* Add PoupLabel for reuse
* Take screen height into account
* Minor tweaks no forms

Change-Id: I70b141732f38a9534447586fb00cd736949e56e5
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-31 16:04:37 +00:00
Tim Jenssen
d9d89ef6cb QmlDesigner: fix not used ": "
Change-Id: I197b3dd46d0835d73c550f216a4d5bb51a8ec9f8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-08-31 15:29:51 +00:00
hjk
d2231365af QtSuppport: Remove some indirection
Amends 93e188a.

Change-Id: I49c503a31b033295b01c456533a740ad30f7b653
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 14:24:34 +00:00
Cristian Adam
07ad848ea1 CMakePM: Replace QDir in CMakeBuildConfiguration
This allows remote support.

Change-Id: I12c991d584baa3762102b8a19179e732a31f192b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 14:23:10 +00:00
Miikka Heikkinen
757c1734df QmlDesigner: Overhaul 3D snapping UI
Fixes: QDS-10532
Change-Id: I00dc78831aed62e0a93000938f514a04c2ab3a50
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-08-31 13:57:30 +00:00
hjk
09f15a31df Utils: Remove the non-QTC_USE_STORE case
Change-Id: I857a38c80470d1b474ca0f291a93ed58fbcc0bf4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 13:20:59 +00:00
Cristian Adam
246f33c20d CMakePM: Replace QDir with FilePath in fileapiextractor
This allows remote support.

Change-Id: I5ac46b1c2ed0e7e1fcc559522f1fcd902f83b8c0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 13:06:30 +00:00
Christian Kandeler
fb4177a540 cmake build: Set the WITH_TESTS macro also in the tests themselves
Otherwise plugin and test code might parse header files differently.

Change-Id: I0243a7780b7095a4c518da26cc3cf23fd9f76cf5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 13:05:04 +00:00
Cristian Adam
925b7a3566 CMakePM: Replace QDir with Utils::FilePath in editor
This way we could handle remote files.

Change-Id: I7062445cb743a2838f3c9f1bcff89611127011ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 13:04:53 +00:00
Christian Stenger
e1de2dfc07 Debugger: Fix qbs build
Change-Id: Ic34026548587187d0fa092454980d94250c6353d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-31 12:09:14 +00:00
hjk
93e188ab94 QtSupport: Move QtVersionManager closer to "new" singleton pattern
Not 100%, as there are a few more local variables involved.

Change-Id: I15458d614c381862aa6f9e1c54d56c045bac8941
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 11:52:11 +00:00
David Schulz
b418c81414 Utils: collect host root dir once
This improves the startup performance ~30% on certain machines

Change-Id: Ic7b74d42b0e13ec1dd695d4f322de021b996c051
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 11:29:38 +00:00
Miikka Heikkinen
96e675cd26 QmlDesigner: Fix 3D view grid color setting
Grid color was not loaded correctly on scene creation, because there
was a mismatch on how it was set. Normally, it was set as a color array,
but on scene creation it was set as a single color.
Changed it to be always set as a single color, as there is no reason
to allow array of colors for grid.

Fixes: QDS-10495
Change-Id: Idbe5d52a425eed7aed6beef9e3712b26519e5843
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 11:01:34 +00:00
Marcus Tillmanns
616a0c0f77 Terminal: Support Ctrl+C/V on Windows
When a selection is present, let Ctrl+C work as copy
on Windows.

Remove sending ESC key in clearSelection as it interfered
with a Paste after copy.

Change-Id: I92db7f263e1eb433bca8aa5500fcecb637a23f90
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-08-31 10:58:36 +00:00
Miikka Heikkinen
9324f4bd4b QmlDesigner: Fix sync background color to 3D scene environment
The sync color setting expects an array (for potential gradient), but
it was set to plain color when sync was turned on.

Fixes: QDS-10527
Change-Id: Iba27aad8e2cd8c93e76a89984f739ddb6c4e2e7f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-08-31 10:33:51 +00:00
hjk
95a3087a7b ExtensionSystem: Stop reworking initialization order system
This reverts b91f234c7d and some changes on top.

With the static-in-function approach the dependency seem to be
more easier to solve than with the the central mechanism here.

Change-Id: I65be3ced847b31c25637280376f2fe30003f0527
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-31 09:58:40 +00:00
Amr Essam
a5a5b00f58 QmlDesigner: Add core uniforms and features for shaders
Task-number: QDS-10499
Change-Id: I12b39d29133accd012ac019def0c4a34ee84d8e5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-08-31 09:58:36 +00:00
hjk
4132ffd662 Core: Fix action key construction
Amends c7710acadd.

Change-Id: I87c85cae3fa5624ba0c9d8a2c1aec4d3225c7315
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 09:31:45 +00:00
Mahmoud Badri
2f2d8bf9e8 QmlDesigner: Implement effect maker preview zoom controls
Also fix a memory leak on removing a node.

Fixes: QDS-10546
Change-Id: Ifc32b6d7f6f4c6b8ce63a080b159c8ae66865a79
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-31 09:01:03 +00:00
Artem Sokolovskii
cecf577dc4 DAP: Add Python debugging
Added Python support to the DAP engine in Qt Creator.

Note:
Locals aren't displayed for python. It will be fixed
in the following commit.

Change-Id: I6d3b41fecc98b92951ed0522e9201401293034d7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-31 08:06:03 +00:00
Christian Kandeler
f5f4310e89 QmakeProjectManager: Fix ABI selection change not having an effect
This amends 9c2527eea6 and is the third
attempt to make this horrific code do the right thing.

Fixes: QTCREATORBUG-29552
Fixes: QTCREATORBUG-29561
Change-Id: Ib5136a101d87388385f94c4ecc3e837e09ce034d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-31 07:12:46 +00:00
David Schulz
270a9839e2 Copilot: start the client in the delayed initialize phase
Change-Id: I4470491f5f0a2b1d88ed5b2e23444bf3a28d8256
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 07:02:57 +00:00
Leena Miettinen
70f5d18fe9 Doc: Turn Opening Projects into a How-to topic
Describe the ways to open projects before the case where
one needs to re-configure the project.

Task-number: QTCREATORBUG-29361
Change-Id: I32b8676112e412fe8b4f114c54371169f478d361
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 06:56:15 +00:00
Aleksei German
939b28a076 QmlDesigner: Fix hardcoded Controls2 config file
Task-number: QDS-10545
Change-Id: I8e96ea5f4b409a8b378f94e45b413d6315ea8170
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-30 19:36:43 +00:00
Henning Gruendl
315da21424 ADS: Delete implicit ScrollArea
* Delete implicit ScrollArea when content widget is deleted in
  hideDockWidget()

Base repository commit
2178b52621ed16f9846d6f80ecb59706b9d31921

Change-Id: I2e593f3be77fc8ad988e7882707619803ef70cfc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-30 16:16:54 +00:00
Henning Gruendl
78cfd73037 ADS: Fix crash in auto hide tab
* Crash is caused by dragging an autohide tab out when it is an icon
  only
* The crash can actually happen with non icon only tabs, but is masked
  by the orientation check

Base repository commit
61573cba1633600dddcbf5afb7d8ed1645f82b30

Change-Id: I1aebfd6455983662050aaf82a6506a6a5a40421e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-30 16:16:48 +00:00
Tim Jenssen
011ec75e88 ADS: fix QMetaObject::invokeMethod: No such method
Change-Id: Icdd8c3de7b95c60186ea30f0c40b7feeed322e28
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-30 16:16:41 +00:00
Semih Yavuz
fd2d1ceeae Fix M16 warning restrictions
In case id is not ancestor, we cannot find that ID in m_idStack by
design. The ID of an uncle type could be either popped out or not pushed
in yet. The previous implementation, therefore, doesn't restrict M16
messages if non-ancestor ID is referred.

As a workaround, disable M16 warnings completely if the enclosing type
uses ImmediateProperties.

Amends 012f984c27

Task-number: QTCREATORBUG-28468
Change-Id: I47326e005753ff7b94057732602cfeb6dc525bbb
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-08-30 15:54:24 +00:00
Leena Miettinen
253eb4779b Doc: Mention the locator f file option for creating files
... in How-to: Create files.

Change-Id: I9cc0ba39009c722a89ee127d6ffcebcd01cce649
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-30 13:51:47 +00:00
Artem Sokolovskii
34a4313f74 DAP: Fix set invalid thread as a current warning
Change-Id: I39fad868ca8996f51b2b5d8681210d92ec9de76b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-30 12:22:34 +00:00
Christian Stenger
e26fee092b AutoTest: Allow temporarily disabling of functionality
Especially when touching headers included centrally while
refactoring bigger projects the retriggered parsing of
large (depending) parts of the project can become rather
annoying.
Adds an action for immediate disabling parsing and
respectively other test related functions.

Change-Id: I553615cce90bc88d636a4519718887306ee5215b
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-30 12:21:53 +00:00
Cristian Adam
6b312ad54c Debugger: Speed up startup on Windows
The Qt SDK would not write the "Version" tag in the xml file, but the
supported ABI and engine type are set.

Only retrigger the debugger detection only if the version, and the ABI
and engine type are not set.

Change-Id: Ib73b1809f9dc6a16fa1988ee0e40e4d8131c667e
Reviewed-by: hjk <hjk@qt.io>
2023-08-30 11:54:24 +00:00
hjk
1919580e08 Utils: Use QTC_USE_STORE
Change-Id: I4a2e69a8e092d762f8dd70a2e421c26522a5939e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-30 11:53:29 +00:00
Thomas Hartmann
518977daed QmlDesigner: Fix macOS build
Unused variable in various cases

Change-Id: I665c037b21446c4ba4eabb1b73ac5a03b22547e2
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-08-30 11:27:27 +00:00
Leena Miettinen
39dfc12a9e Doc: Divide "Creating Files" into How-to topics
Task-number: QTCREATORBUG-29361
Change-Id: Ib5e31777ef1649f86525b41bcfbcac52b9dd231e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-30 11:26:15 +00:00
Eike Ziller
d9ed0cc75a ExtensionSystem: Include phase breakdown in profiling summary
Makes it easier to find where bottlenecks are, as a hint where to
actually start profiling.

Change-Id: I00b881583c2c25b13f6e287b39b6b83299ac6674
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-30 11:24:26 +00:00
Eike Ziller
c22e43bf41 ExtensionSystem: Factor out startup performance summary
Makes it possible to potentially show it after the fact.

Change-Id: I7c93a2a290bf1a3e096286a3d20fd4553757ad5c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-30 11:24:17 +00:00
Eike Ziller
026848eadd ExtensionSystem: Add total real time to profiling report
The original total only contained the time spent inside of plugin
methods, but a lot of things get delayed arbitrarily to the event loop
currently. That is included in the new "total startup".

Task-number: QTCREATORBUG-29540
Change-Id: I832bb972d85bc4cf82f098e4cbf5d3ff3800d14a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-30 11:23:55 +00:00
Eike Ziller
4da8430cab ExtensionSystem: Always generate profiling data
The overhead is minimal and can be shown at a later point even
when not printing profiling data to the terminal.
Move the data to the plugin spec for later retrieval.

Task-number: QTCREATORBUG-29540
Change-Id: I392ff85a8a8b5c01ecba07fefd06e5029f692bf6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-30 11:23:46 +00:00
hjk
37a17cd6ba Utils: One more stringFromKey to keep Qt 6.4 happy
Change-Id: I67f47be369fa60e2f11f20e0ded389962e059ba6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-30 11:21:39 +00:00
Ali Kianian
83ad97aa56 QmlDesigner: Use proper features of std::variant instead of overloads
Change-Id: I6423155701b92d09011aaf913d845fa59148b207
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-08-30 10:42:23 +00:00