Commit Graph

88532 Commits

Author SHA1 Message Date
Miikka Heikkinen
3f40da0978 EffectComposer: Fix qml warnings
Change-Id: I40abc68800b95888edae0450625f20d51fd8ed74
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-26 12:41:44 +00:00
Jarek Kobus
97ec97ff27 ClangModelManagerSupport: Skip explicit call to waitForFinished()
This is done by the FutureSynchronizer d'tor, so no need to call
it explicitly. Move the FutureSynchronizer as the last field of
ClangModelManagerSupport so that its d'tor is executed first.

Change-Id: Id38b8ec08579be8e4ade99ecadb511850ff37f8c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-26 12:30:56 +00:00
hjk
b5e03b8fe2 QtSupport: Reduce ExtraCompiler life time to plugin life time again
Amends 6467797af2.

The created extra compilers were parented to their factories, who gained
a life time extension from 'end of plugin live' to static destruction
when the factories were made static. However, this that time the likewise
static QObjectCache in GeneratedCodeModelSupport::update might be
destroyed already, leading to a potential crash in m_cache.remove(dead).

This change here re-establishes the original timing by using the
plugin itself as parent for the extra compilers.

Change-Id: Id868b7b87f00440c67af551b71359c47a5c29cba
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-26 11:57:23 +00:00
Marcus Tillmanns
b10df4c1b3 ProjectExplorer: Show full lines during compilation
Especially on Windows with VC2022 & Ninja, the output would often
display lines that ended in the middle until the next batch of output
was added.

This patch uses the Process facilities to only show full lines.

Change-Id: I38fcb2e8cb115637d15181b39374c533db150c1a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-26 11:55:34 +00:00
Leena Miettinen
6df43e8b61 Axivion: Improve tooltip
Remove wordiness and just explain what enabling the checkbox does.

Change-Id: Id4c03c1aa7fe7b87919036ffe39717e1a184d5f2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-26 11:54:49 +00:00
Orgad Shaneh
b890b35e11 SyntaxHighlighting: Fix MSVC warning
Implicit size_t -> int conversion.

Upstream MR: https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/601

Change-Id: I4208f0240c8a223fccf40add828499597e137c26
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-26 11:51:41 +00:00
Semih Yavuz
1b53c931c5 qmllssettings: Fix incorrect detecting of latest version
Update the latestVersion in the loop. Otherwise we always compare to
initial value and consequently the last installed version incorrecyly
becomes the latest version.

Fixes: QTCREATORBUG-30423
Change-Id: I7083928c5e371f0337677eacf1b3b4da50358a7c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-02-26 11:38:32 +00:00
Eike Ziller
98ffe3d9d0 AutoTest: Small fixes in translatable strings
Make the tool tip for useXMLOutput, quickCheckForDerivedTests, and
parseMessages consistent, use rich text instead of manual line breaks.

We use plural for the things that a locator filter locates (for filters
that don't trigger an action).

Beautify tool tip.

Change-Id: I6276e9a0894d59670a45937e1c4227405c346f38
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-26 11:22:42 +00:00
Jarek Kobus
17a9cce898 Async: Avoid potential leak of QFutureWatcher
Make QFutureWatcher a child of the receiver / guard inside
the onResultReady() / onFinished() handlers.
This prevents the leak of QFutureWatcher when the receiver / guard
got deleted and the future never finishes.

Change-Id: I5653593777ee394dff8cc3c4b7506d8c1907232f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-26 10:51:49 +00:00
Jarek Kobus
51ddffefd8 QLiteHtml: Update submodule sha to include the crash fix
Task-number: QTCREATORBUG-30427
Change-Id: Icc166c8bb895e5ce37887b12af97a5b785df2b29
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-26 10:24:42 +00:00
Christian Stenger
48a8fa4c5d Utils: Fix build with too old MSVC
Change-Id: Ib845a702eea3f61b3c453d3531f94a70db03a95e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-26 10:07:47 +00:00
Jarek Kobus
ff6e231170 CompilationDatabaseBuildSystem: Remove unused QFutureWatcher
Change-Id: I6dd6769cb5aa71149735a7920701c8f6ad98ee03
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-26 09:33:43 +00:00
Jarek Kobus
2bee865f80 CompilationDbParser: Ensure the futures are synchronized
Don't leave possibly running futures on Creator shutdown.

Change-Id: I8b0f800518edde638376013f993f5846df4d1753
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-26 09:24:19 +00:00
Christian Stenger
6dda17a2b3 Axivion: Take alignments into account
Change-Id: I3d14b88562dbd9eca79ba954e6d01206aaec450e
Reviewed-by: hjk <hjk@qt.io>
2024-02-26 09:23:25 +00:00
Christian Stenger
fdc84e8458 Axivion: Tweak path display
Change-Id: I9148530eff5dbc4757c2f4b46c1b55a895043f1f
Reviewed-by: hjk <hjk@qt.io>
2024-02-26 09:23:16 +00:00
Eike Ziller
76cd84b7cd iOS: Fix some missing full stops
Change-Id: Ie6c1b9dafc3e3fe349adcbe6011244136002cc01
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-02-26 09:09:47 +00:00
Eike Ziller
d2cec31f08 Git: Fix a label
Settings labels are lower case and end with ":"

Change-Id: I729d25569790899a8d26966914ee8b872a48bcb0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-02-26 09:06:49 +00:00
Eike Ziller
902a42a0f2 Perforce: Add missing full stop
Change-Id: Ic8e78fd3465ad3a0301f4bce65ced5f9948753f3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-26 09:05:47 +00:00
Eike Ziller
44f6bbf260 Python: Wrap some file paths and kit name with quotes
Change-Id: If147eae864013d410239d69184cdb9a4bc4479eb
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-02-26 09:05:34 +00:00
Cristian Adam
2d7af40007 CMakePM: Consider envvar QTC_CMAKE_USE_JUNCTIONS
This envrionment variable can be set globally or locally for a project
via '.shared' configuration.

See https://doc.qt.io/qtcreator/creator-sharing-project-settings.html
for details.

Task-number: QTCREATORBUG-30385
Change-Id: Ie28caac8f4232678c5761b54ce370d1aeb139389
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-02-26 08:59:51 +00:00
Eike Ziller
462caec278 Utils: Small string fixes
Change-Id: I2fd6bf14b1cb35f61ced841e3deea011fd54ff03
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-26 08:56:41 +00:00
hjk
5406f11a2b Debugger: Robustify lldb line parser
The original version might have missed to recognize a @\r\n
combination or multi-byte UTF-8 code units when they were
split across to readyRead() handlers.

Change-Id: Ib543fa0070b63d25b44be429a3759964d65e878e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-26 08:51:58 +00:00
Mats Honkamaa
417fbc7861 Doc: Add info about JSON backend function
Task-number: QDS-10961
Change-Id: I470fe9e1cda514e9b343d56f3e3bf34b95e3269e
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-02-26 08:23:04 +00:00
Jarek Kobus
b0592abbf0 DebuggerItemConfigWidget: Ensure the futures are synchronized
Don't leave possibly running futures on Creator shutdown.

Change-Id: I6f4253d657b2b61112c15c9c144be10fcc8ed0cf
Reviewed-by: hjk <hjk@qt.io>
2024-02-23 17:16:58 +00:00
Jarek Kobus
53f8956fb8 FunctionDeclDefLinkFinder: Ensure the old futures are synchronized
Change-Id: I68b271f85d2bb319230529d4b0b074c05c12ba4c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-23 17:16:53 +00:00
Jarek Kobus
5590efa30b FunctionDeclDefLinkFinder: Don't delete the watcher from its signal handler
Use std::unique_ptr instead, as QScopedPointer doesn't offer release().

Change-Id: Ifbe42dca5b266930e1000a50441995023b89b802
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-23 17:16:46 +00:00
Marcus Tillmanns
d061e29dd3 Utils: Allow different codec for Process stdout and stderr
Change-Id: Ie6a3fb74a447a599c492e38ec83a2330f3cb4cd8
Reviewed-by: hjk <hjk@qt.io>
2024-02-23 16:02:45 +00:00
Jarek Kobus
8b4578f0c4 Axivion: Amends the commit regarding column sizes
When resolving a conflit the key line got removed by mistake.

Amends 51998c5239

Change-Id: I74af26d23e7ac0180d1b351d7ecf6d6876499d89
Reviewed-by: hjk <hjk@qt.io>
2024-02-23 15:18:10 +00:00
Jarek Kobus
d5f50a3fa4 Axivion: Remove warning about unused lambda capture
Amends 09cc450797

Change-Id: I44a5ba2a0f83f9f75ba84b1b6470e875027c290b
Reviewed-by: hjk <hjk@qt.io>
2024-02-23 15:18:04 +00:00
Miikka Heikkinen
fb27084f38 EffectComposer: Generate property specifics for effects
With proper specifics sheet, the effect will show the available
properties nicely in property view.

Also introduced a new concept of FooBarSpecificsDynamic.qml
to provide property specifics. The difference to regular
FooBarSpecifics.qml file is that the dynamic version will
be reloaded always, which allows us to change it at runtime.

Fixes: QDS-11995
Change-Id: I744124182428c5c4607856e7970700d9a5e9972e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-02-23 15:15:11 +00:00
Jarek Kobus
51998c5239 Axivion: Make use of the column widths coming from the server
Change-Id: Idcce80ed987ed02cb0197cfca93d32deb715f95c
Reviewed-by: hjk <hjk@qt.io>
2024-02-23 15:03:39 +00:00
Christian Stenger
09cc450797 Axivion: Handle links more appropriate
If the user clicks on a row's column holding a location
information then use this explicitly instead of always
using the first available link.

Change-Id: Ifecbecac632a4bfd4d31614a8c43ab6c80de4819
Reviewed-by: hjk <hjk@qt.io>
2024-02-23 14:47:28 +00:00
Christian Kandeler
e3e8b62417 RemoteLinux: Make deployment method downgrade transparent
Fixes: QTCREATORBUG-29710
Change-Id: I27f3252f8a3d9bc03f2abd096aae6f0df4a6448c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-23 14:46:28 +00:00
Jarek Kobus
5ff64ed95c Axivion: Remove unneeded m_fetchingMore field
Use m_taskTreeRunner.isRunning() instead.

Change-Id: I2feed612cf8eabfc5ec160a4586b3158aa4d90b8
Reviewed-by: hjk <hjk@qt.io>
2024-02-23 14:36:52 +00:00
Cristian Adam
0acc91a6e8 LLVM: Use lldb-dap.exe on Windows for qtcreatorcdbext
LLVM 18 has renamed lldb-vscode.exe to lldb-dap.exe.

Change-Id: I4b0b108ebebc552a4c843f4c8a2fa563132176cd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-23 14:00:02 +00:00
hjk
026de59be9 Meson: Fix reading of tool settings
We were accumulating copies of the auto-detected system ninja setting
since the QVariantMap retrieved with toMap() was empty as it is a Store
nowadays.

Change-Id: Id983b5f1bf5ff18d6f43a71ebb406520e7655705
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-23 13:52:48 +00:00
Christian Kandeler
c0bbf285a7 CppEditor: Fix indentation with inline namespaces
After encountering the namespace keyword, we have to backtrack the state
change introduced by the inline keyword.

Fixes: QTCREATORBUG-22071
Change-Id: I543976622d1a56b2c61d68da6ec3eee8b6d0d5b3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-23 13:46:04 +00:00
Christian Kandeler
feb70c1d7b Update qbs submodule to HEAD of 2.3 branch
Change-Id: I62099a9605b2d9deeb6d36be3c43e088b9cd2578
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-23 13:41:53 +00:00
Christian Stenger
09c8bd841b Axivion: Improve sort icons
Palette colors may not be correctly populated depending on the
platform, so use some common available one.

Change-Id: I5f660aaefbd5882a255da4a25c3e15edc3fe3643
Reviewed-by: hjk <hjk@qt.io>
2024-02-23 13:35:42 +00:00
Mahmoud Badri
3d16642dfd QmlDesigner: Fix onIsHorizontalChanged warning
Change-Id: Ic39ed41e8276209dddf852118f0c62d8c4a1d81b
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-23 13:12:27 +00:00
Christian Stenger
d167b16ac2 Axivion: Redo lazy fetching of issues
Change-Id: I8c29c6494c651602fa443c76a6c9e3848f352a66
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-23 13:07:09 +00:00
Leena Miettinen
11c1e071d7 Doc: Update the docs about Python development
Task-number: QTCREATORBUG-30209
Change-Id: I3023fb6b9005092ecd76f62774942f366e1bd7d9
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-23 13:05:22 +00:00
Eike Ziller
a9c2be1071 Projects: Fix misc settings widgets if vanished targets are shown
When vanished targets where shown in Projects, clicking on the project
specific settings showed a blank page.

There were hardcoded indices for the target and the misc settings. Get
the right child for the index directly instead.

Change-Id: I725d470ad04f8a227c91938efada76a757a7442c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-23 12:35:58 +00:00
David Schulz
8feb31b2ac TextEditor: bound increase and decreaseFontZoom to a 10% grid
This allows to get back to a 100% font zoom with the keyboard shortcuts
by zooming to an odd zoom factor by other means.

Change-Id: Ie90853367b17c207e9c47fc108b8d6f451e0f838
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-23 12:01:29 +00:00
Leena Miettinen
9f7d8b06b2 Doc: Mention using CMake presets in "Share project settings"
You cannot use a .shared file to share CMake project settings.

Change-Id: I605ead2f42ed012da789c1eef3a4e6a51de62243
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-02-23 11:53:40 +00:00
David Schulz
787c2ccee9 Debugger: ensure final new line after debug messages collected by cdb
Since recently cdb seems to report messages without a final new line.

Change-Id: I6b15d6c5668b7a4bec207d56d86da5a0afa77cb4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-23 10:25:02 +00:00
Cristian Adam
b7a8ee92be Core: Mention Ctrl+Shift+K into the hide menubar messagebox
This way the user can trigger the "Show Menu Bar" action when the
Ctrl+Alt+M doesn't work.

Task-number: QTCREATORBUG-30114
Change-Id: I4e1d14b7bf7554ce1a262c4b1d2671f8d0b81b85
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-23 10:07:11 +00:00
Mahmoud Badri
5ab8fcad89 QmlDesigner: Fix collection editor's context
Change-Id: I9aceb9bf3f772f381006aad30eb7addfe3b1bea5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-23 09:56:01 +00:00
Jarek Kobus
55c12d022c Expected: Add a test ensuring the default c'tor has value
When docs aren't easily available, let's have a test for it.

Change-Id: Ic9cec669cc93a38e79b68ddec7cfcc5bccae5de5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-23 07:55:23 +00:00
Jarek Kobus
97ebd27253 QmlJsPluginDumper: Ensure we don't take results from the canceled futures
Amends 91c1c244a1

Fixes: QTCREATORBUG-30424
Change-Id: Ie0bddb79362945a040c6cb95edf37fbec3ed064d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-23 07:13:54 +00:00