The ClangFormat plugin uses the LLVM API explicitly, so explicitly link
with the LLVM library when available, using its cmake target. This way
the linking is done no matter whether the target for the clang format
library declares LLVM as its public dependency.
Change-Id: I997c720935750fd01229d4d4c20c1bdcadca9ac7
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Add actions to get the full file blame at the current lines
revsion respective its parent revision and to show the whole
file at the lines revision.
Change-Id: I2c6a1e98967cd40d658afe6bfedf0a0d9e988186
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Context help is only triggered for the first widget in the focus widget's
parent hierarchy that has an IContext registered.
This change amends 411100b037 which
removed the TextEditorActionHandler by registering an editor-specific
IContext for the individual TextEditorWidgets.
The code editor in QmlDesigner registered an IContext for a widget that
_contains_ the actual editor widget and handled context help there. Now
the editor widget has an IContext, which means that the IContext that
QmlDesigner registered was never asked.
Directly register the QmlDesigner IContext for the text editor widget
itself, so it takes part in context help resolution.
Fixes: QDS-13248
Change-Id: Ib49129d9de20bdfa022a8e75ba454c7674040699
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Fix an issue that came up when using Qt 6.7. The title bar buttons of a
DockArea were still visible despite setting the proper flags to hide
them in the initialization process. A call to setVisible() with the
appropriate member variable in the constructor of TitleBarButton
resolves the issue.
Task-number: QDS-13246
Change-Id: I3cd4b587b9fe233ab792cb665342f69c5fd2cb05
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Also, change from .toString() to .path() which is the right thing
to uses in this context.
Change-Id: Ic1fe001267a729e9f68a313bea476eb17b718ba3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Since no object was moved to the started IndexerThread thread,
all signals scheduled to this object were dispatched
in main thread. So, the thread was started, but no code
was ever executed in there.
Remove the IndexerThread class and do some cleanup by the way.
Change-Id: I9ae185b8e0c38557e5b0ba3dd87f3c70141227d3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Limit code repetition by introducing convenient class template.
Change-Id: I90b45a305c5a6f28bf75a602c14ff055928cda48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
When some code adds or removes a bunch of toolchains at once, that
should be made explicit and also be reflected by the respective signal
emissions.
Fix some leaks and typos along the way.
Change-Id: I4a1f12a2378316c5faf70e85a88adc467f076caf
Reviewed-by: hjk <hjk@qt.io>
Q_WEAK_OVERLOAD
QT_DEPRECATED_VERSION_X_6_4("Use the 'qsizetype *suffixIndex' overload.")
[[nodiscard]] static QVersionNumber fromString(QAnyStringView string, int *suffixIndex)
We are now well-prepared to handle Qt version strings with more than
two billion characters before the suffix.
Change-Id: I2aed2c3b8650ff6fba68a174b13d826dc9ab446e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
The original "sendMessage" function sends a message to each client.
To send a message to a specific Language client the sendMessageForDocument
and sendMessageForDocumentWithId functions are added.
As a fix the way that settings are copied into the Lua wrapper and the id used
to find clients was changed.
Change-Id: I577ee1f9da983c80e4ef00b8e86ccb2bfe369314
Reviewed-by: hjk <hjk@qt.io>
In case of error, post the output of the simctl command in compile
output and issues pane.
Fixes: QTCREATORBUG-25833
Change-Id: I62a0f7b10b5188a7c8b4e1db543b66d0661d4e6a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
The injected files check would be wrong with remote paths.
Change-Id: I729d9fa9b1399d4ef5337004153e62ca287948cb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Avoid the potential side effects from the toString/fromUserInput round
trip.
Fixes: QTCREATORBUG-31259
Change-Id: Id004d71079b4ef8ac26b927921c5cd7a23531110
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
We in principle support a map of locale->string for keys starting with
"tr" like "trDisplayName". This didn't work everywhere.
We may not cast the value for these keys to QString before passing it to
`localizedString`, since that would result in an empty string if the
value is such a map.
Also fix the documentation since we remove all parts from '_' (to also
get rid of encoding parts).
Fixes: QTCREATORBUG-23575
Change-Id: I2be795053e645c8bf81417d0db69cd7e63eff022
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Hide some recipes in cpp, as they are used only locally.
Change-Id: I8d6855c93e4a1264b217b9fb55219ab4f5cf56f1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Refactor the case when running without deployment.
Reuse existing avd recipes and run a task tree instead.
Change-Id: If0b12d2779e64e218c8da6cd07c355d85afd2ec2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
They got replaced by the corresponding recipes.
Change-Id: I1b42a9fb230869fde3daf03feb33ca2d1e89bb01
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
The QVariant values of Store map are apparently of QStringList
type, not QString.
This fixes the following asserts triggered on every startup:
"sd.first().typeId() == QMetaType::QString".
Change-Id: I84eb6a942503632d047939b138727c75e9e7037e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>