Commit Graph

76860 Commits

Author SHA1 Message Date
hjk
978a182ca3 Utils: Only construct FSEngineImpl::m_tempStorage when needed
The QTemporaryFile default c'tor is quite heavy.

Change-Id: Ia468c29a154e21d06a25d035dc591ea3ed70ca14
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-09-21 13:19:25 +00:00
hjk
b852886763 QmlDesigner: Compile fix after source-incompatible changes in Qt
The use of 'auto' here is the simplest way out and should not be
taked a precedence for other code.

Change-Id: I4435e7211139bccfca4b10ed2407ba39afe0b400
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-09-21 13:17:26 +00:00
David Schulz
c849a1b1e9 LanguageClient: log progress duration
Change-Id: I443f6c909b5ba15babf4741937b99d57c5825169
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-09-21 13:11:19 +00:00
Christian Kandeler
58fbc2e8b8 QmlDesigner: Fix qbs build
Change-Id: Ifb7f0967d8811ea919bc9797944c4e120d4df756
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-09-21 13:11:01 +00:00
Thomas Hartmann
e84db05786 QmlDesigner: Fix merge conflicts
Task-number: QDS-7723
Change-Id: Id788bb89dc9734c77e01302d9ce50fcb712c67bb
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-09-21 13:07:14 +00:00
Eike Ziller
656731d549 VcsManager: Fix crash when input directory is /
If the input directory in VcsManager::findVersionControlForDirectory is
just "/", that slash gets chopped off by absoluteWithNoTrailingSlash,
and the resulting string is empty. So we need to handle that case.

Change-Id: I7970043a16e587c803e94c16b71bea481ea21c09
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-21 12:53:54 +00:00
Marco Bubke
ce97e5ccca QmlDesigner: Remove mcu dependency from model
The function is only called in the formeditor. So moving it to the
formeditor removes the dependency to the mcu manager.

Change-Id: I1a1d6f65b97340206ea0d485b24046c3661daf92
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2022-09-21 12:51:55 +00:00
Knud Dollereder
93d4b057cf Check for more dirty flags
This fixes an issue of the formeditor which did not update properly if
components contain items that have one of zvalue, opacity or visibility
attributes animated.

Change-Id: I1b20f09177878419b2b18aaf94c84b6ae437be7d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-09-21 12:37:06 +00:00
Thomas Hartmann
73c912a458 QmlDesigner: Do not reset load if count changes
This is not required to leads to a quadratic slow-down if there
are many properties.
There is still a slight lag if there are more than 20 properties,
but QDS stays fully usable.

Change-Id: Ife14e97d127b16a1ae59e97a8fa642f5a2479e53
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-09-21 10:56:07 +00:00
Thomas Hartmann
52efe45354 QmlDesigner: Allow functions of animations
For some reason we get nullValue for the functions
of animations like 'update', 'start', 'restart', 'stop', 'pause'.

Change-Id: I2301083d6d61e2f8f59e5878023cac0fcf711e61
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-09-21 10:55:54 +00:00
Eike Ziller
3011548066 Merge remote-tracking branch 'origin/8.0'
Conflicts:
	src/libs/utils/deviceshell.cpp
	src/plugins/clangcodemodel/clangdclient.cpp
	src/plugins/qmldesigner/components/materialbrowser/materialbrowserview.cpp
	src/plugins/remotelinux/linuxdevice.cpp

Change-Id: Idc2edf428c98e9cbc891f1833b271ce2def9a835
2022-09-21 11:16:29 +02:00
Marcus Tillmanns
5ebb467cc6 Deviceshell: Cleanup shellProcess destruction
Change-Id: I71507d9e74979fca461784575257e7bafd1b4838
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-09-21 08:51:47 +00:00
Christian Kandeler
d696f3380c ClangCodeModel: Add missing check in ClangdFindLocalReferences
When trying to find out whether a symbol refers to a local variable, we
first look up its definition. Afterwards, we need to check whether that
definition is located in the same file. This was forgotten, which lead to
seemingly random weirdness when trying to rename non-local symbols.

Change-Id: I505675a784fc69dc4f01105033608116fc7720c2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-09-21 07:44:32 +00:00
Christian Kandeler
720d07928b ClangCodeModel: Add missing check in findLocalUsages()
When trying to find out whether a symbol refers to a local variable, we
first look up its definition. Afterwards, we need to check whether that
definition is located in the same file. This was forgotten, which lead to
seemingly random weirdness when trying to rename non-local symbols.

Change-Id: Icdcfd5583bf33346d8f0e3caf2751fd16f7d9602
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-09-21 07:21:15 +00:00
Christian Kandeler
c2937f609e LanguageClient: Do not cancel search on empty result list
... for a rename request.
Instead, simply finish the search normally, leading to a "no matches
found" message rather than the misleading "search canceled".
But do cancel the search on an actual error.

Change-Id: I10401466bb4d81d53d26b8dc08bfed91db86cd5a
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-09-21 07:19:04 +00:00
Eike Ziller
ccfd472a8c Generic highlighter: Try mime type aliases when looking for definitions
For example the yaml highlighting file declares text/yaml as the
supported mime type, but that is not the canonical name, which is
application/x-yaml.

Change-Id: If9e3f5e31bc5593a82cbbdac916ef41b0d23de7c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-09-21 07:03:01 +00:00
The Qt Project
49190e989e Merge "Merge remote-tracking branch 'origin/8.0'" 2022-09-21 06:02:18 +00:00
Jarek Kobus
29ecc7b5dd VcsCommand: Rename execute() to start()
In order to conform to QtcProcess API.

Change-Id: I71fcc03846f32cd3c2df39824ce3f6730c20ebbb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-21 05:33:46 +00:00
Jarek Kobus
353f50693e VcsCommand: Remove finished() signal
Change-Id: I79a1ca05c1bc246f3a850fcbf585c89dddb45cb1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-20 19:10:44 +00:00
Thomas Hartmann
c23155cdd4 QmlDesigner: use hasMultiSelection in property editor backend
Change-Id: I7499e278f80b72f9ffc61bc60b28145ea6fda685
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-09-20 16:34:19 +00:00
Thomas Hartmann
c4dd20c64e QmlDesigner: Add MetaInfo for functions for Connections and StateGroup
Change-Id: I61d6409d824747d373da4912ef2d894e70436014
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2022-09-20 16:28:24 +00:00
Henning Gruendl
493c05a6c3 QmlDesigner: Add ToolTip to StudioControls
Change-Id: Ic65c654c1253cfbc04ef5863c9b3473b5d2fd670
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-20 14:48:48 +00:00
Mahmoud Badri
6d2806c6ed QmlDesigner: Search for material bundle folder near executable
Fixes: QDS-7717
Change-Id: I33405d0be6d55550d79fc371c6d82760ec6fa5b3
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-09-20 14:24:29 +00:00
Marcus Tillmanns
fb7f91ad79 Android: Document the android-in-docker hackathon
Change-Id: Idb6ad65538ede75b687307d24d00a36b338f4c5e
Reviewed-by: hjk <hjk@qt.io>
2022-09-20 14:22:09 +00:00
Miikka Heikkinen
b080376f70 QmlDesigner: Fix renaming materials
Check for id validity during id generation and try to fix invalid id.

Fixes: QDS-7437
Change-Id: I9d7665cbebdce8ee3395e4abe9ee14b26866f761
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-09-20 13:53:53 +00:00
Eike Ziller
c37e273f27 Merge remote-tracking branch 'origin/8.0'
Conflicts:
	src/plugins/qmldesigner/designercore/include/qmlstate.h
	src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp

Change-Id: Iefff97499db72727c1b8058d53b1279fd8853ad9
2022-09-20 15:43:56 +02:00
Thomas Hartmann
6b8e2fbd49 QmlDesigner: Show proper error dialog if adding duplicate property
Task-number: QDS-7702
Change-Id: I43f07afa95cef75e53bbc0259f6dd21b7c1a5363
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-09-20 13:43:47 +00:00
Miikka Heikkinen
e936ef2fdb QmlDesigner: Reduce vertical gap between vector fields
This helps to differentiate which fields belong to which property
when multiple vertor properties are added next to each other.

Fixes: QDS-7704
Change-Id: I885e6d3d12a11851668e7c4d66f94f3356e5f082
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-09-20 13:42:52 +00:00
Miikka Heikkinen
145ecd040f QmlDesigner: Add support for component unimporting from bundle
Fixes: QDS-7706
Change-Id: Ib0ab71b650592b1796d3ef2f14e364431a82a268
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-09-20 12:44:31 +00:00
Mahmoud Badri
d9f07e95b5 QmlDesigner: Implement material bundle frontend
Fixes: QDS-7500
Change-Id: I60c512bb7664d13160f8c58ce063e1e87b6875ee
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-09-20 12:30:47 +00:00
hjk
bcb4db927b ClangFormat: Avoid warning about unused parameter
Style follows precedent in the file.

Change-Id: Id7e5ca3f4e9536cb803e8e0ff36db59fda3c41d5
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-09-20 11:06:49 +00:00
Marcus Tillmanns
1404c36e2b Deviceshell: Fix use after free
Change-Id: I6caa22e53bee2db332ced7301534683d7a064905
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-09-20 10:45:31 +00:00
Jarek Kobus
b795bd8042 VcsPlugin: Use VcsCommand::done() signal instead of finished()
Conform to QtcProcess interface. Use result() when needed.

Change-Id: Idd4c71d9a103e8649b08ec7787c2f286423a31ec
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-20 10:41:35 +00:00
Jarek Kobus
5e10ea19c1 VcsCommand: Conform to QtcProcess API
Add result() getter and done() signal in order to
conform to QtcProcess API.

Change-Id: Idc7c57e03d6e8acead9d4c034f4efc56250f944d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-20 10:41:25 +00:00
Jarek Kobus
f729efe3df VcsCommand: Don't emit std channel signals when finished
Conform to QtcProcess behavior and don't emit stdOutText()
and stdErrText() on finished when progressive output is off.
Use cleanedStdOut() / cleanedStdErr() getter instead.

Change-Id: I2c416c0264f2203c7a9c73de900c12777f4fd3b3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-20 10:41:18 +00:00
Jarek Kobus
012de6b4c3 PushHandler: Use cleanedStdErr()
Instead of connecting to stdErrText() signal.

Change-Id: Ib9fb94ca3fb0b5cbf4871e0ea3b06a047c31d272
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-20 10:41:06 +00:00
David Schulz
85c5edcb6b FuzzyMatcher: add option to match text with spaces
Change-Id: I0480b57d27f3625933005ca2233e9612df53072d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-09-20 10:31:39 +00:00
Jarek Kobus
c767f193ce VcsBaseClient: Use cleanedStdOut()
Instead of connecting to stdOutText() signal.

Change-Id: Ib05113bf624d58a4f66e6c1f64217b579c8de1a9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-20 10:30:45 +00:00
Jarek Kobus
d78ccc30cb ConflictHandler: Use cleanedStdOut() and cleanedStdErr()
Instead of connecting to stdOutText() and stdErrText() signals.

Change-Id: I3a90fe2a6b17eb804dbd67691a4685e236232456
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-20 10:29:51 +00:00
Marcus Tillmanns
66eca4cb4b CMake: Fix WITH_SANITIZE
Adding qtc_enable_sanitize to add_qtc_executable to also instrument applications

Changing qtc_enable_sanitize to use target_compile_options instead of trying
to modify CMAKE_CXX_FLAGS_DEBUG and hoping that nobody else overwrites it,
which previously erased the added flags.

Adds support for MSVC /fsanitize

Change-Id: Ida80cfd7ef7ea91b2d6473fdc047cb7132cdfec6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-09-20 10:17:31 +00:00
Christian Stenger
215b2ce09b Tests: Fix expectation and remove os limitation
Change-Id: I6007c25ec4167083134b0cd03fdff8a9ff34355d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-09-20 10:12:34 +00:00
Marcus Tillmanns
df859d891d Filepath: Add ::isSameDevice
Change-Id: I3990429b59759d5f72ed95e3a0d1723d3bb7bb82
Reviewed-by: hjk <hjk@qt.io>
2022-09-20 10:11:33 +00:00
Henning Gruendl
cddb19ef9c QmlDesigner: Remove unnecessary imports
Change-Id: Ib0566d580ff214a3773434f6eb07b63f8958409e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-20 09:51:12 +00:00
Henning Gruendl
b9ff06723a QmlDesigner: Fix extend state menu item
Change-Id: I91be5ddb3020e86c33d4264b4e95918689b69f4e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-20 09:51:07 +00:00
Henning Gruendl
533090fb5e QmlDesigner: Fix StatesEditor scroll bar
Change-Id: I241a33906d06c6011cb618b96c039dfe91323809
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-20 09:51:01 +00:00
Thomas Hartmann
7fc3bac762 QmlDesigner: Disable scrolling if content does fit
This is required on windows, because the other scrollbar seems
to be taken into account somehow.

Change-Id: I890faf7493c38df1f2f2f7fae011d4946f1b9c33
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-09-20 09:40:48 +00:00
Henning Gruendl
21b9e6ac7f QmlDesigner: Add ProgressBar to StudioControls
Change-Id: I2d79e4af008fe7ef66ebbe2bf31813230451ee18
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-20 08:21:25 +00:00
hjk
f736c23afc Utils: Make PathChooser::path() private
Still registered as getter for the property.

Change-Id: I9a35bbe5f8bf4354670d09eba07288274eb7dd2b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-20 08:01:34 +00:00
Marcus Tillmanns
7f51ae7105 QDS: Fix warnings for GCC 11.2
[[maybe_unused]] leads to warning: ‘maybe_unused’ attribute ignored [-Wattributes]
when compiling with g++, so we instead completely remove the declaration instead.

Change-Id: I00650f78d61a0da18e76cd65908fc4a2abda174a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-20 07:58:17 +00:00
Christian Kandeler
8e118e9d5e TextEditor: Prevent unwanted reflowing of doxygen comments
... in rewrapParagraph().
One could argue that this functionality is only for pure text and should
not be used on code, but since it was apparently contributed with
doxygen in mind, we might as well go out of our way a bit to support it
a little better.
The simple approach here is to treat a doxygen command at the start of a
line as the end of the reflow region.

Fixes: QTCREATORBUG-9739
Change-Id: I5affee9c441bd9e862bdaf38930fcf8e770b6d97
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-09-20 07:44:18 +00:00