Commit Graph

72811 Commits

Author SHA1 Message Date
Pino Toscano
eee3fc6907 ClangFormat: explicitly link with LLVM
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>
2024-07-22 18:36:48 +00:00
Andre Hartmann
25bf06968a Git: Add full blame and showing file from Instant Blame
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>
2024-07-22 18:36:38 +00:00
Ali Kianian
0da625b616 QmlDesigner: Categorize application output for Connection Editor
Task-number: QDS-13244
Change-Id: I54ed1485a9b5781e4c16f121521d6462cfecd1d0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-22 17:02:26 +00:00
Eike Ziller
d410155395 QmlDesigner: Fix context help in code editor
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>
2024-07-22 13:41:10 +00:00
hjk
a9ee4ed5e8 Nim: Hide NimBuildSystem definition in .cpp
Change-Id: Ib6fe898ccb0c58725c336819e4a02a441a304c3a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 13:27:32 +00:00
Henning Gruendl
d4d6d13098 QmlDesigner: Fix DockAreaTitleBar buttons Qt 6.7
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>
2024-07-22 12:53:26 +00:00
hjk
750e9c3b6b Nim: Standardize Project classes setup
Change-Id: If95e98e406c1a9bacd75ccf3b58416185e6152a2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 12:07:44 +00:00
hjk
0982613a73 Meson: Simplify Command structure
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>
2024-07-22 12:07:15 +00:00
hjk
3197ef3ea6 Meson: Merge the tool wrapper files
Change-Id: I055006e29ee8c2067275e64043c7a7ffcc460390
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 12:00:40 +00:00
hjk
d09063de87 Meson: Hide the tool aspect implementation
Change-Id: Ib8cf56385d7e369a2c185d6cbd62613b4b28bc79
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 10:34:06 +00:00
hjk
95cf4a46ff ProjectExplorer: Remove left over assert
Amends 07df45cdeb.

Change-Id: Ic4520020cd57eac72631efee05ca9b55e62e34e6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-22 09:42:22 +00:00
hjk
00d26f4e8e Meson: Rename ToolKitAspectWidget -> MesonToolKitAspectImpl
Following the (changed) global naming scheme.

Change-Id: If98d644b52013af4f973540cd56d1186d3656e52
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 08:36:37 +00:00
Marcus Tillmanns
231de93b26 Core: Add Open next/previous document actions
Fixes: QTCREATORBUG-1208
Change-Id: I27c84e2c4fb64751b0aa92042518e8351eed0034
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-22 06:51:33 +00:00
Jarek Kobus
de7f0e3a2a ModelIndexer: Dismantle the fake thread
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>
2024-07-22 06:32:53 +00:00
Jarek Kobus
dcaa3afd6d Various Plugins: Replace setPaused() with setSuspended()
Fix warnings about deprecated QFutureWatcherBase::setPaused().

Change-Id: I7c4637bcaf141bbda46e34da48306a25c68f039f
Reviewed-by: hjk <hjk@qt.io>
2024-07-22 06:09:07 +00:00
Marcus Tillmanns
2145023c8c Fix compile error
Change-Id: Ibd4593381df017c80129ac9d56a5031e46bd908f
Reviewed-by: hjk <hjk@qt.io>
2024-07-22 05:48:46 +00:00
Jarek Kobus
2a5c2765c4 ProjectExplorer: Introduce JsonWizardGeneratorTypedFactory
Limit code repetition by introducing convenient class template.

Change-Id: I90b45a305c5a6f28bf75a602c14ff055928cda48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-22 05:37:40 +00:00
Christian Stenger
0d2ae24580 Haskell: Add wizard files to qbs build
Change-Id: I5aa07fa430baa8b860e3ae540d8b0c1e1ce765c5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-22 04:04:55 +00:00
Alessandro Portale
b534aac6ab ExtensionManager: Make links clickable
Change-Id: I9c98f9bf2e7e3baef42fa9d0d60012881418ef44
Reviewed-by: hjk <hjk@qt.io>
2024-07-20 10:38:15 +00:00
Christian Kandeler
9d0c144892 ProjectExplorer: Let toolchains be (de)registered in bulk
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>
2024-07-19 14:44:47 +00:00
Christian Kandeler
eb6c95b50d ProjectExplorer: Fix restoring toolchains
Amends ec5e055a90.

Fixes: QTCREATORBUG-31263
Change-Id: Ic86149d9916cdef6991fed4b9972f4d44dfe8b7c
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:43:48 +00:00
hjk
8830a38c7d ClangTools: Handle a Qt deprecation warning
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>
2024-07-19 14:42:23 +00:00
hjk
e9e793fb6a Autotools: Hide AutotoolsBuildSystem definition in .cpp
Change-Id: I7ef251452c522593da955a64024068682f7fdfb1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:41:57 +00:00
hjk
e7dcbb6b44 CompilationDatabaseProject: Simplify a bit
Change-Id: I83b6d2e77a4a5585af3c816aba1a7710d8d24ad6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:38:20 +00:00
Marcus Tillmanns
b0262115dd LuaLS: Add sendMessageForDocument
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>
2024-07-19 14:34:54 +00:00
hjk
68d00db242 Utils: Fix some Aspect::on*Changed names
Change-Id: Ic23cc6f5fe9cee6b7d54ea73fc2a35f6b3843269
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-19 14:19:29 +00:00
hjk
f2505ee90a CompilationDataBase: Hide build system definition in .cpp
Change-Id: I49fe7eae6bc323c4d618a463d701021591f4d15d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:08:51 +00:00
Eike Ziller
84cc7208de iOS: Improve error message when installation on Simulator fails
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>
2024-07-19 14:05:12 +00:00
hjk
c895f67b6a Vcpkg: streamline vcpkgmanifesteditor.cpp a bit
Change-Id: Iabb1056f789b1e30f95d469ea18ccfb04e978b46
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 13:51:09 +00:00
Marcus Tillmanns
afa121778b Lua: Hide REPL by default
Change-Id: Ieeac4bd49cd39dc16cf9637b1a487faf024bf44a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-19 13:44:09 +00:00
Lukasz Papierkowski
f4d8eaca00 LUA: Client and Utils bindings update
Change-Id: Icad01906aa9f9405004ce342399fcb42354e77df
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
2024-07-19 13:33:29 +00:00
Christian Stenger
95ef7c8ff0 Lua: Fix MinGW build for qbs
Change-Id: Ia0afe744add081d8f255ad6328b6ae55ca07fc11
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-19 13:04:42 +00:00
Marcus Tillmanns
a858e305d5 Lua: Improve SelectionAspect binding
Change-Id: I4fa4bd2ae64078ca702637625975cf8fbfa7c116
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 12:49:17 +00:00
Marcus Tillmanns
a1da3afdc9 Lua: Add AspectContainer::onApplied
Change-Id: I2f53479b2b81b86fb90778dd495d8733bde2118e
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 12:49:11 +00:00
hjk
e230acbb23 Autotools: Use new setup scheme for build steps
Change-Id: I4c228a1324e5d426ea2c288f105df2c097a972c7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 12:32:57 +00:00
Jarek Kobus
715240257d Android: Detect preNougat inside AndroidRunnerWorker
Remove setIsPreNougat() setter.
Remove m_isPreNougat field and provide isPreNougat() getter
instead.

Change-Id: Ie906024840be78a0b17fbd3d4df00667b4812cfb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 12:18:11 +00:00
Marcus Tillmanns
2b1001eb24 Lua: Add TextEditor::currentEditor
Change-Id: I4a2e4703bca2b557aac4240d7bc2519f7b50217b
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 11:25:55 +00:00
Christian Stenger
e6dc3fb008 QmlJS: Fix default command for qmlformat on Windows
Fixes: QTCREATORBUG-31257
Change-Id: I72797f3e67e0b71dac434fcd90777b0aa7334995
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-07-19 11:10:20 +00:00
hjk
b06c205a5d CPlusPlus: Replace one FilePath::toString() with path()
The injected files check would be wrong with remote paths.

Change-Id: I729d9fa9b1399d4ef5337004153e62ca287948cb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-19 10:52:24 +00:00
hjk
e8855f97d5 Utils: Expand FilePaths per part, not as a full string
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>
2024-07-19 10:04:21 +00:00
Christian Kandeler
af353119c0 Core: Allow users to open output window contents in scratch buffer
Task-number: QTCREATORBUG-31144
Change-Id: I474e60392281c5e3bd769d64719c3c6a31c57d2f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-19 10:02:30 +00:00
Christian Kandeler
69906c6525 Update qbs module to HEAD of 2.4 branch
Change-Id: If06b28c8b98c823e2020d3e3be0229605faf5913
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 10:01:33 +00:00
Eike Ziller
8a060b285a Fix in-wizard translation support
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>
2024-07-19 09:36:52 +00:00
Jarek Kobus
90d3a41e6e Android: Remove remaining unused functions from AndroidAvdManager
Hide some recipes in cpp, as they are used only locally.

Change-Id: I8d6855c93e4a1264b217b9fb55219ab4f5cf56f1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 09:13:09 +00:00
Jarek Kobus
2b0b5d8824 Android: Refactor AndroidRunner
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>
2024-07-19 08:06:17 +00:00
Henning Gruendl
50421642e3 QmlDesigner: Allow underscore in dynamic property
* Add PropertyNameValidator
* Add missing qml js keywords to model utils
* UI tweaks in the dynamic property popup
* Fix clipping issue in StudioControls TextField

Task-number: QDS-10451
Change-Id: I763fab5533b8d949fe3e4b967dcb62581fa02ff9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-07-19 07:38:00 +00:00
Thomas Hartmann
e77b5d91bc QmlDesigner: Signal declarations are always dynamic
Change-Id: I5caf85462c13488c1d775563727c5ccaf9750e97
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-07-19 07:37:54 +00:00
Jarek Kobus
3fb7008ac6 Android: Get rid of unused functions
They got replaced by the corresponding recipes.

Change-Id: I1b42a9fb230869fde3daf03feb33ca2d1e89bb01
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 06:33:09 +00:00
Jarek Kobus
1525f64b9a Android: Fix asserts triggered on app startup
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>
2024-07-19 06:05:51 +00:00
hjk
6ce086fcf0 BinEditor: Clean up a bit
Change-Id: Idc27f20ea8de5ac58b6e78efa6525a33e07e5e4f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 06:00:23 +00:00