Commit Graph

88653 Commits

Author SHA1 Message Date
hjk
c6aeb2cde1 TextEditor: Fix initial loading of settings
Amends e784b1e58b.

Done-with: Orgad Shaneh
Change-Id: I727983a96ac9aae204974adfabfa7a794bf99907
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-15 10:00:48 +00:00
Christian Kandeler
f00666a985 ProjectExplorer: Accept plain folder nodes as drag & drop targets
As opposed to just project nodes.

Task-number: QTCREATORBUG-26545
Change-Id: I33eb2623763fdfacb9b6b8bb1bcd6b4626b3d71e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-15 09:40:57 +00:00
Christian Kandeler
837e951b29 CppEditor: Add curly braces for more control statements
Fixes: QTCREATORBUG-24542
Change-Id: I3e0893e1c736730d94e2c9ab2baa0aa580393fe4
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-15 09:39:56 +00:00
Christian Kandeler
e24ce364ce QbsProjectManager: Do not create language client without build system
A session without a build system can happen via the project importer.

Change-Id: I04e77a790e595e9a5249b27569a0e79033fddad1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-15 09:37:18 +00:00
Christian Stenger
c2f25f72a7 Update qlitehtml to latest master
Fixes the qbs build.

Change-Id: I0860acd2d63cf727696dfdb4f35ee2dd83c51dbe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-15 08:45:51 +00:00
Marcus Tillmanns
f6ad82a0eb CompilerExplorer: Use global network access manager
Change-Id: I03589a1b5abd42b36281c1c733adf20fcb51d272
Reviewed-by: hjk <hjk@qt.io>
2024-02-15 07:42:04 +00:00
Christian Stenger
a5c4c34c9a Raise minimum supported libclang
ClangFormat needs 14.0+ nowadays.

Change-Id: Ib5e38c79c5ec629fed4e5d8da5435769a71b2626
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-15 07:16:28 +00:00
hjk
4c4d297d15 Core: Use ActionBuilder in a few more places
Change-Id: If578ea89fd8af9aca9d5f137dab5c4dbebfaa2e8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-15 07:15:40 +00:00
Eike Ziller
65fcb9b746 Help: Update litehtml to v0.9
And adapt the attributions to use the attribution.json from the
qlitehtml repository, so it is automatically in sync.

Fixes: QTCREATORBUG-29169
Change-Id: I96343162880b6aa0e38ee356b3b5f98db4a85cc3
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-15 07:02:23 +00:00
The Qt Project
10e2ff5362 Merge "Merge remote-tracking branch 'origin/13.0'" 2024-02-15 07:00:47 +00:00
Eike Ziller
046ae752f6 Fix ODR violation with Spinner
Spinner is already added to and exported by the Utils library. Do not
add it again to more (plugin) libraries.

Fixes: QTCREATORBUG-30368
Change-Id: I6ddf43f8bf1c4972b786b82dbafd3201bc8e0a0e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Tim Blechmann <tim@klingt.org>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-15 07:00:30 +00:00
Jarek Kobus
61cf8702a3 Axivion: Separate fetching Dto data from credential handing
Change-Id: Ibddafa055c73614797235921ba5cb62096b5980f
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>
2024-02-15 06:42:39 +00:00
Jarek Kobus
bc4c3b87df Axivion: Add Username field
Change-Id: Icafedc1c79ceb48349975576b99a7da7dd39f353
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-15 06:42:28 +00:00
Jarek Kobus
e059b62421 TaskTree: Fix progress reporting with LoopUntil(false)
Advance the progress value by the group's children count when
LoopUntil handler returns false on the first iteration.

Add a test for it.

Change-Id: I3783dd295dfaa16c09c5eda299f365ff981b3be7
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>
2024-02-15 06:42:07 +00:00
Christian Stenger
cf53f157f7 ExtensionSystem: Fix initialization and silence logging
Avoids crash on start when running tests.

Change-Id: I924290f1d7c5d079ed96112e3d2375e53428221f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-15 06:02:39 +00:00
Christian Kandeler
e1b3c3e357 ProjectExplorer: Warn against "special" characters in build directories
There are still tools around that have problems with such setups, so we
turn this warning on by default and let the user opt out.

Fixes: QTCREATORBUG-20834
Change-Id: I01a2e0fa931bec74add43b37cb042712635f3175
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-14 17:12:42 +00:00
Ali Kianian
e4fe45f237 QmlDesigner: Add beta tag to the title of the Model Editor view
Change-Id: I2eff47c56928a6e49405b646ff7a98b205d9d6fe
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-14 16:00:20 +00:00
Leena Miettinen
d6b2c205ad Doc: Describe how to navigate QML code
F2 now lets users move to the C++ implementation of a QML type.

Task-number: QTCREATORBUG-30209
Change-Id: If364451d7e94fcd18da82321839dede18bf704a4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-14 15:08:36 +00:00
Marcus Tillmanns
b39b192518 ExtensionSystem: Refactor PluginSpec
Splits the functionality between plugin type specific and general.

Allows Plugins to be loaded after the first pass, e.g. for Lua scripted
plugins.

Change-Id: If2712817a672c49d554fdc308250cb06ca7eb3f8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-14 14:33:16 +00:00
Leena Miettinen
7c86b0d2cb Doc: Update info about iOS 17 support
Task-number: QTCREATORBUG-30209
Change-Id: I7ba61e3626d268bf21b659afa3a2f87891bf2c8e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-14 14:23:13 +00:00
Leena Miettinen
9f155ecc82 Doc: Describe the Enclose in QByteArrayLiteral() quick fix
Task-number: QTCREATORBUG-30209
Change-Id: If802af529a12ce9729fddd4d3f37372b593fc47e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-14 12:55:56 +00:00
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