Commit Graph

88532 Commits

Author SHA1 Message Date
Leena Miettinen
c38c0fc863 Doc: Describe highlighting source lines matching assembly code
...in Compiler Explorer

Task-number: QTCREATORBUG-30209
Change-Id: I91d9e82ee8fac0ddb3196a39f9f5f0baf1cac184
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-14 12:51:14 +00:00
Eike Ziller
bcf0d8c319 Merge remote-tracking branch 'origin/13.0'
Change-Id: Iaf7373d449668bba57e53810858b58e2ec83dcc0
2024-02-14 12:48:53 +01:00
hjk
0a1783d656 Utils: Rename NameValueItem to EnvironmentItem (1/2)
Only used in Environments nowadays.

Change-Id: I64a645ebebd5cb57c50d5d8f72a5e4dba40e122f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-14 11:33:53 +00:00
Jarek Kobus
91c1c244a1 ModelManagerInterface: Cancel all running threads on session switch
On session switch we cancel all the running tasks.
We connect to the SessionManager::aboutToLoadSession()
signal, as this one is emitted just before loading
new session's projects. We don't connect to
SessionManager::aboutToUnloadSession(), since after
this signal is emitted the unloading may be canceled
due to e.g. showing the dialog asking for saving
changed files in the unloaded session (the user may
cancel the process of unloading).

In contrast to what we do on shutdown, we don't wait
for futures being finished here - it's just enough we
cancel all of them.

Fixes: QTCREATORBUG-25583
Change-Id: I01eeca00d150f6e98a80a050c6a19efb848b9954
Reviewed-by: hjk <hjk@qt.io>
2024-02-14 11:28:59 +00:00
Leena Miettinen
5639c141ff Doc: Describe Qt Translation File wizard
Task-number: QTCREATORBUG-30209
Change-Id: I9a5d04d59e836cb08dd3eafd9d4ea22106aea4a0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-14 11:17:14 +00:00
hjk
83eaeda954 Utils: Merge NamesValueModel and EnvironmentModel (2/2)
Rename namevaluemodel.{h,cpp} back to environmentmodel.{h,cpp}

Change-Id: Idfa528b0c1c307ef4cd9dd5869f18993647b98bc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-14 11:16:37 +00:00
hjk
090fd0e5f5 Utils: Merge NamesValueModel and EnvironmentModel (1/2)
The abstraction is nowhere used (anymore?)

In order to keep the diff small, this here merges environmentmodel.{h,cpp}
into namevaluemodel.{h,cpp} which will be renamed back to env* in a
second step.

Change-Id: I1e7c14012ec3d3f54d8557f4b737a59ede2283e7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-14 11:13:11 +00:00
Jarek Kobus
0d1831b462 Mercurial: Remove unused lambda captures
Change-Id: I5b308dc57b10624d140ed506a17ed41b3ec49491
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-02-14 11:05:10 +00:00
Christian Stenger
52f9709300 QtKeychain: Build lib with qbs
Change-Id: Ief16859fd26b130aef474c6caae64f2faacbe7f3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-14 10:51:45 +00:00
The Qt Project
0ea527c915 Merge "Merge remote-tracking branch 'origin/13.0' into qds/dev" into qds/dev 2024-02-14 10:46:30 +00:00
Burak Hancerli
bf5d094ef6 GenerateQmlrc: Do not create package if user cancels the operation
Change-Id: Ie8f2bed23d6c9b4c8496b9b75310fc8cda823088
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-02-14 10:23:19 +00:00
Tim Jenssen
6d632e0d93 Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I9e4eb40209acf04c66b12e595ec9e2234d859294
2024-02-14 10:10:03 +00:00
Leena Miettinen
321b245477 Doc: Describe Help > About Qt Creator > Copy and Close
Move the instructions for contacting Qt from the front page to
a how-to topic.

Task-number: QTCREATORBUG-30209
Change-Id: I4f4083927ad54bdca555e1825f817f494e30e860
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2024-02-14 08:35:28 +00:00
Eike Ziller
7b57ae31f6 Avoid automatic creation of performance data related .json files
Amends 1a84ae038d which enabled building
the Nanotrace library by default. The part that is used for startup
performance logging is only enabled at runtime with the `-trace` command
line argument, but some logging using the "hr" variant was automatically
created. Disable that part at compile time by default.

Fixes: QTCREATORBUG-30331
Change-Id: I8add207c760bfe2dde52534f55feb7b637ccb600
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
v13.0.0-beta1
2024-02-13 20:47:13 +00:00
hjk
a26aff7afd Debugger: Report full sizes instead of the elide setup
More direct communication of the meaning. Use 'length' when talking
about things like string lengths, and 'size' for sizes in bytes.

Task-number:  QTCREATORBUG-30065
Change-Id: Ifed84a5dab4ed890973c1abf4d427655eb50a61a
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-13 17:01:23 +00:00
hjk
02d930b210 Debugger: Improve display of elided string data
This was not adding the length before.

The problem that the size is suddenly off by a factor of two for
QString as elision counts bytes is still present.

Change-Id: Ibcb595dc2d9aaa73b3feec955b4d14613307797f
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-13 17:00:23 +00:00
Jarek Kobus
fc9863c768 NetworkQuery: Support more operations
Make it possible to PUT, POST and DELETE.
Add setWriteData() method, to be used with PUT and POST.

Change-Id: I99da38b60120b7efdab391db9b4d638f17d555df
Reviewed-by: hjk <hjk@qt.io>
2024-02-13 16:57:56 +00:00
Christian Kandeler
322dcd2c45 CppEditor: Re-add function decl/def switch handler
Was accidentally removed in 3771eb196b.

Fixes: QTCREATORBUG-30363
Change-Id: Ifef1266b144d2eb5b7b69ff3e721f781b4455e96
Reviewed-by: hjk <hjk@qt.io>
2024-02-13 16:27:28 +00:00
Leena Miettinen
5d8cf8ce09 Doc: Describe setting environment variables for run configurations
...in Preferences > Build & Run > General > Application environment >
Change.

Task-number: QTCREATORBUG-30209
Change-Id: Idd58652b25ef6cfebf7bfda1a237f4c661b4c3b6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-13 15:02:49 +00:00
Jarek Kobus
e7670dd9db Axivion: Simplify string constructions
Change-Id: I6dfefbcba47486a16f793c46c281c7f0fb2e888d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-13 14:28:23 +00:00
Marcus Tillmanns
4cd5bdc4f6 LinuxDevice: Show warning if terminal open fails
Change-Id: Ifb7a628e7d3f253d834cf8e6503db087def64e0f
Reviewed-by: hjk <hjk@qt.io>
2024-02-13 14:21:04 +00:00
Marcus Tillmanns
f905ad1aa6 Terminal: Fix handling stub timeout
Change-Id: Idaf18ac404d878382d5912793a667200bd7fe6f9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-02-13 14:20:31 +00:00
Christian Kandeler
5937f1b78e Update qbs submodule to HEAD of 2.3 branch
Change-Id: Ideb5c401beb5f512e47ab3e6f7c32fe6e7edda1e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-13 14:15:11 +00:00
Tim Jenssen
adcac7cb6b Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I242c01e82fc1b0db1f5e88c35d526f91dd022337
2024-02-13 14:33:35 +01:00
Eike Ziller
15b308c621 Update change log for 13.0.0 beta
and add JIRA links

Change-Id: I949f60c547058592d92b0d1a7475ae1b85867304
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-02-13 13:14:35 +00:00
Marcus Tillmanns
e8ad29d3af LinuxDevice: Add disconnected state
Change-Id: Ic2c909e3375a9fb025a335c1ca65621fa031d000
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-13 11:49:47 +00:00
Knud Dollereder
ea03bfea10 QmlProjectManager: Cleanup cmake generator
- Consider qmlModules file like any other qml module
- Use ${CMAKE_PROJECT_NAME} when possible
- Break up big functions into smaller ones
- Reorder arguments for tpl files

Change-Id: Ie73cca8596b22adf67eba1019610a00c34976421
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-02-13 10:15:35 +00:00
Christian Kandeler
39527bbcad ProjectExplorer: Get rid of mysterious "keep size" mode
... in MiniProjectTargetSelector.
It's unclear what the intention was, but the effect was that the widget
was growing after every project switch.

Fixes: QTCREATORBUG-28954
Change-Id: Iea83243194c08ebb3caf78bc058774f17f23eced
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-13 09:41:41 +00:00
Henning Gruendl
211ae49130 QmlDesigner: Close PopupDialog on QtDS inactive
Close a PopupDialog whenever the main application becomes inactive by
e.g. focusing another app. This prevents the PopupDialog being drawn
on top of that any other application.

Task-number: QDS-11870
Change-Id: I2d5dce4a7a54d43382010dedee3ba214a70d2eb8
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-02-13 09:40:11 +00:00
Leena Miettinen
d8a6654717 Doc: Describe Vanished Targets in Projects mode sidebar
Task-number: QTCREATORBUG-30209
Change-Id: Ia4a05d18262e97ea6fbfc03fb6874662ac67bec5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-13 09:14:20 +00:00
Jarek Kobus
231e7da761 Axivion: Drop known namespace specifiers
Add more "using namespace".

Change-Id: Ib207d14c79c692eb87d52cbc95917539c88f0536
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-13 08:43:26 +00:00
hjk
9c4bd40f7c Debugger: Fix Qml debugger rampdown when not fully started
Fixes: QTCREATORBUG-30355
Change-Id: I3e7c1ef56db1fe48f5b571d21f89d20b7936cfb7
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-13 08:32:59 +00:00
Jarek Kobus
acb449bb2b TextEditor: Fix a leak of CompletionAssistProvider
The c'tor of QmlJSEditorFactory allocates QmlJSCompletionAssistProvider
and sets it via setCompletionAssistProvider.
The QbsEditorFactory subclass allocates QbsCompletionAssistProvider
and overrides the previous one via setCompletionAssistProvider.
So, the old one was leaking.

Use std::unique_ptr to ensure the ownership.

Change-Id: I6fb7da2b97c50919e422482c858d3503403b788d
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-13 08:26:23 +00:00
Marcus Tillmanns
8313190ee9 Terminal: Fix nullopt access
Change-Id: I758dadc481b3ebe6b7274ab0dde52ec5f2d7dfa3
Reviewed-by: hjk <hjk@qt.io>
2024-02-13 08:21:54 +00:00
Teea Poldsam
ba536a5e9a Doc: Fix a broken link
Fixes: QDS-11930
Change-Id: Ide113597e9a1f3b1958946431db4fceaad41b069
Reviewed-by: Esa Törmänen <esa.tormanen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-02-13 07:35:56 +00:00
Ali Kianian
4c4e90062c QmlDesigner: Update the value of the color picker for CollectionEditor
Fixes: QDS-11796
Change-Id: Iaf3f6bc06771f461c4119d55ae3c3a294d3d8564
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-13 07:14:17 +00:00
Christian Stenger
f8383a44aa Axivion: Tweak fetch for issues
Fetch issues for all kinds of issues instead of just
style violations.

Change-Id: I23508ae3c051cabab644f359daec4924034cb65c
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-13 06:29:56 +00:00
Miikka Heikkinen
e66b19d4c4 EffectComposer: Add confirmation dialog to clear all effect nodes
Fixes: QDS-11445
Change-Id: Iedd41e2799148c6d8f4eb3bca77dd5f1b7b053e6
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-12 15:52:34 +00:00
Miikka Heikkinen
93993c322e EffectComposer: Fix effect preview zoom
Zoom must scale the component showing the preview, not the source
image. This way the effect stays consistent regardless of the zoom
level.

Fixes: QDS-11899
Change-Id: I550eb9ff693c24a853f5c25d9d79fa146448663f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-12 14:32:37 +00:00
Ali Kianian
c90970afed QmlDesigner: Insert proper value for booleans to CSV exported files
Fixes: QDS-11823
Change-Id: I4d5a73b982261f59192d7877fe682057c5181d7b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-12 14:22:43 +00:00
hjk
844e005363 BinEditor: Use a few more qint64 instead of int
Change-Id: I4907cba425fd213cc2411d20919ff67e2dce71c4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-12 14:07:18 +00:00
hjk
ff85a58ce5 BinEditor: Use 64bit positions in a few more places
This fixes drawing of search hits across the 2^31 boundary.

Searching itself is still buggy.

Change-Id: Icac1722e2693585aa7afe62076ccec9459c18f3a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-12 13:22:05 +00:00
hjk
dbc68fe3aa BinEditor: Allow selections beyond offset 2^31
Fixes: QTCREATORBUG-30282
Change-Id: I18c6ee313b07d3e0606b7fc1e661ef6c90e026e9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-12 13:10:50 +00:00
Alessandro Portale
1726d8a0c8 Welcome: Fix font sizes
Fixes: QTCREATORBUG-30305
Change-Id: Ib00bd75c091c6caadd110aaf8e2c12abcbe16cea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-12 13:10:19 +00:00
Ali Kianian
1f9e41ac9a QmlDesigner: Keep the order of columns for imported jsons
Fixes: QDS-11670
Change-Id: Ia068bbb864065b648cffcab2c3477d3cec7f25f8
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-12 12:37:14 +00:00
Michael Weghorn
4aaf7f2689 Debugger: Add debugging helper for std::tuple
Add debugging helper for std::tuple and add
a corresponding dumper test for it.

With this in place, the std::tuple variable and its elements
in the "tuple.cpp" sample program from QTCREATORBUG-25865 are
shown as expected on both, Linux (libstdc++) with GDB or LLDB and with
an MSVC build with CDB on Windows.

A debugging helper for libc++ had already been added in commit
34ff9c97e6.

Task-number: QTCREATORBUG-25865
Change-Id: I24b3d36b5daa26fd4fcb073c4df79015dfe752fc
Reviewed-by: hjk <hjk@qt.io>
2024-02-12 11:55:18 +00:00
Cristian Adam
7f1e16172a CMakePM: Traverse the whole inheritance tree for Presets
Regarding QTCREATORBUG-30288, before this change I was getting on macOS
presets for Linux and Windows.

Fixes: QTCREATORBUG-30236
Fixes: QTCREATORBUG-30288
Change-Id: I4772ab7d14dec857b68164d4c24e6e904f20c88b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-12 11:45:15 +00:00
Christian Kandeler
1af555ad09 ClangCodeModel: Let users configure the clangd index location
Fixes: QTCREATORBUG-27346
Change-Id: I9bc59f759682e70b761c0f22a011868008fc0360
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-12 11:38:57 +00:00
Artem Sokolovskii
0afe354952 Android: Update Android Stidio jdk detection
Fixes: QTCREATORBUG-28866
Fixes: QTCREATORBUG-30322
Change-Id: Id7908301a6c6acb540e6a7d575cc6b8b95cdf5d6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-12 11:38:20 +00:00
Marcus Tillmanns
291a893f5f VCS: Allow remote vcs operations
Both VcsBaseClient::vcsBinary() and VcsBaseClient::processEnvironment()
get an additional parameter "FilePath target" to allow selecting binaries
and environment based on where the repository is located.

This allows to select e.g. a git binary on a remote device, and the
environment of the remote device for each VCS operation.

A bunch of file path operations are either fixed or ported to actually use
FilePath correctly.

Change-Id: I6afc645772fde3dff3ec19c13efe538e5888e952
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-02-12 11:25:06 +00:00