Commit Graph

68765 Commits

Author SHA1 Message Date
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
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
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
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
hjk
41184bc9fc Utils: Use numberedKey(Key, int) more wildly
Will ease transition to a key class that doen's have ::number()

Change-Id: Ib2f2957c916f41b0731a2033422bfbf7e429bcc8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-30 09:57:23 +00:00
Ali Kianian
9bcb31b186 QmlDesigner: Modify the failure for two tests
- Multiple statements are not allowed
- Matched statement should have the same type in the case that we
have both Ok and Ko statements

Change-Id: I2aedc1fe7f7f2096af0293c019d0caeb9771646f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-08-30 08:32:34 +00:00
Eike Ziller
9dc9a43f40 Adapt find tool bar input fields to searched widget's font
Adapt the font of the search and replace input fields to the font of the
widget that is searched. This makes it use the text editor font when
searching in the text editor but keeps the "application font" when
searching in other widgets.

Change-Id: I8bd3b5dd3d14ab0e774f7272be236c35abd12de0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-30 08:31:20 +00:00
Thomas Hartmann
34cef91983 QmlDesigner: Update ConnectionModel
Change-Id: I5be9117284a5eae2437b0a4fc9452694098713f3
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-30 08:07:21 +00:00
Thomas Hartmann
0af20575c1 QmlJS: Turn ErrDoNotMixTranslationFunctionsInQmlUi into a warning
Task-number: QDS-10548
Task-number: QDS-7597
Change-Id: I785fbf0f47f0753b257ef5fae1c3bf4afa9b416f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-30 08:07:08 +00:00
hjk
c7710acadd Utils: Use Key more widely in QtcSettings
And adapt user code.

Change-Id: I6efe4ebe6823de4cc862f304a57e041b02c40eac
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-30 07:38:02 +00:00
hjk
271405e08e QtSupport: Don't save QtVersions directly after creation
Change-Id: I379262734bf11776d77576b8fca698ce691654b8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-30 07:22:53 +00:00
hjk
7fccf02be7 Core: Use QtcSettings in NavigationWidgetFactory::restoreSettings()
Symmetric to saveSettings() now, and allows for central Key conversions
later.

Change-Id: I3fbf81c51197c9882b1f64ef591398b83aa0d633
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-30 06:56:30 +00:00
David Schulz
e788deb1fc TextEditor: add force update current Editor in action handler
This can be used to update the editor widget connected in the action
handler if the editor widget inside one editor changes.

Change-Id: Idc9ea119aa2eaab34bd249c59ab9dfb255556fa1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-30 04:15:58 +00:00
Thomas Hartmann
3e0ae7951d QmlDesigner: Add PropertyTreeModel
This model represents all properties in the document
in a tree model.
PropertyListProxyModel allows to flatten a level into a list model.
PropertyTreeModelDelegate exposed a single item to a combobox.

Change-Id: I9b56f1ecc9aa57777356bc795b5a15b17559ae24
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-29 16:03:51 +00:00
Thomas Hartmann
0211943909 QmlDesigner: Fix crash
Change-Id: If3f13e31eba0ec03177c8954a09b73ac60c59c69
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-08-29 15:04:28 +00:00
Mahmoud Badri
64442a7098 QmlDesigner: Implement removing a composition node
Fixes: QDS-10410
Change-Id: I4c4922c82f294d676dbf1e82f8c6dbb0f4089fdb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-08-29 15:04:00 +00:00
Tim Jenssen
e2a8f1dc51 Revert "Sqlite: Flatten calls inside functions"
This reverts commit 2a301d41c4.

Reason for revert: msvc uses a different syntax

Change-Id: Iec4ae2a65e6957c6e1368cc481a63fab0e55ce9e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-08-29 14:47:19 +00:00
hjk
79bf9acd1b Utils: Allow storeFromVariant(QVariant())
This appears in reality.

Change-Id: Ib09a737a3378e26d88397dceb32a38c3857ec9b2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-29 14:35:31 +00:00
hjk
735e9fc58e ProjectExplorer: Remove ToolChain updating code from 4.3
The current format is apparently stable since May 2017.

Change-Id: I8be705c87578f0e93dbb9494206ccf3e5d8b9e64
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-29 14:10:25 +00:00
Miikka Heikkinen
84e537f313 QmlDesigner: Add scale and rotation snapping to 3D view
Fixes: QDS-10464
Change-Id: I9b327b21a3e09313664b2b4b47772e3cb4244327
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-08-29 14:03:36 +00:00
Marco Bubke
8af0528893 Sqlite: Improve insertUpdateDelete
Instead of a value we keep the iterator. That is saving us a useless
copy because the value range cannot change.

Change-Id: I2ea36b5a08e378f8e148f317c3384e4c4954a439
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>
2023-08-29 13:49:07 +00:00
Marco Bubke
a20839f8c3 Sqlite: Reset is noexcept
Change-Id: I4d702619e17118681a46dbc904038031a6f98353
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-29 13:48:59 +00:00
Marco Bubke
fc99f914df Sqlite: Make simple getter inline
Change-Id: I8bba89a45f32a6491ca3bfef4535b5183c98382a
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-29 13:48:53 +00:00
Marco Bubke
2f30ad1eb5 Sqlite: Disable locking test for release
Change-Id: I7a54241bdddb23f9b0b3bddbf10844d9eff36cc4
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-29 13:48:46 +00:00
hjk
bd89cc1fd5 ProjectExplorer: Avoid a QTC_ASSERT for a legitimated situation
Change-Id: I07ce3a286e366c039497379f8bfd2a7be9523c75
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-29 13:41:03 +00:00
hjk
5839a09e72 Utils: Key/Store fix for Qt < 6.5
Change-Id: Ibf11f01a9502ab7da052db7630b5df2fdeda09ab
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-29 13:30:23 +00:00
Cristian Adam
d9a8eba35d CMakePM: Enable cmake format action only if the tool is present
If the tool is not present the menu action is disabled.
Also add a link to the Qt Creator cmake-format documentation.

Fixes: QTCREATORBUG-29415
Change-Id: I4afb33f0d5ce08975b0964d6bee80dfb41cfcde5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-29 13:29:13 +00:00
Marcus Tillmanns
373886bc21 ProcessStub: Fix start sequencing
An application that is using ptrace will send SIGTRAP as soon as it
reaches its execve call.

The process stub previously expected the only signal sent from the
inferior to be SIGSTOP due to the PTRACE_DETACH call with the
SIGSTOP argument.

This meant that a race could occur where the SIGTRAP was received
instead of the SIGSTOP and so the PTRACE_DETACH did not actually
detach correctly.

This patch fixes it so that it first waits for the SIGTRAP and then calls
detach and waits for the expected SIGSTOP.

Should this fail, more debug output is added to ease debugging failures.

Fixes: QTCREATORBUG-29463
Change-Id: Ibac8b75de0c5604aeb20faba8aff58633329341e
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-29 13:25:08 +00:00
hjk
52d1cd47cb Utils: Write Key/Store to settings
We claim that we still store QVariantMap to keep the format unchanged.

Change-Id: Ie7b0a83febfeb2cb3cfc9ee42b8423453cf3b1c4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-29 12:28:57 +00:00
hjk
e5afe02556 Utils: Register Key/Store related metatypes
Change-Id: If7b0a83febfeb2cb3cfc9ee42b8423453cf3b1c4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-29 12:16:59 +00:00
hjk
4c81af8c0a QbsProjectManager: Create QbsProfileManager on request
Task-number: QTCREATORBUG-29546
Change-Id: Ib50ce8cacb4ef26346d0b43401f97093c1c75155
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-29 12:09:50 +00:00
Mahmoud Badri
51e31314c9 QmlDesigner: Add the snapping icons to C++ side
Change-Id: Ia09472834fcd2db876c7bb527fe23f1f59fa36bf
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-08-29 11:54:25 +00:00