Commit Graph

86687 Commits

Author SHA1 Message Date
Leena Miettinen
76539a659e Doc: Update the IDE Overview
Use sections instead of a table and move or copy text from
other topics. This is to create a place for information that
becomes homeless when I remove other topics.

Task-number: QTCREATORBUG-29361
Change-Id: Ib3fcc2c345080e05f9f7ad4ed78e049c899e0855
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-19 15:28:14 +00:00
Eike Ziller
8a6d94235b Fix that window actions did not bring up minimized windows
Selecting a window from the Window menu didn't bring up minimized
windows from their minimized state, and resulted in two items being
checked in the window list (because the active window did not change, so
the checkmarks where not updated).

Change-Id: Ie89b87fa1273378bb99f69026a58ee92ea0b8f50
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-19 13:52:49 +00:00
Eike Ziller
814e84a5e7 Fix the window list when windows are closed
After a window is closed we don't only have to update the texts of the
action, but also update their visibility state and the checked item.

Fixes: QTCREATORBUG-30381
Change-Id: Id0c343b8a5930ec2e3de03f71bdc8f2628b492b3
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-19 13:50:46 +00:00
Eike Ziller
70f7e275e2 EditorManager: Avoid warnings about already registered actions
When opening new editor windows, we want the _window_ to have the
EditorManager context as well as the individual window context, but the
window _actions_ (close, etc) may only be registered for the individual
window context.

Add the corresponding option to ICore::registerWindow et al.

Change-Id: I67d0a6b386603e0047a77dfb357c207e7ffe99e6
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-19 13:50:38 +00:00
hjk
04d7f63186 Debugger: Fix Attach to QML Port
This does not yet fix the reported problem but at least attaches and
gives a working QML inspector in a QML-only debugging session.

Task-number: QTCREATORBUG-30263
Change-Id: Ieac517c2b7c5dde24792f3bbcffe0058073ddbd1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 13:21:08 +00:00
Leena Miettinen
5a05044c0c Doc: Turn Customizing the Build Process into a how-to topic
- Update the screenshot of Preferences > Build & Run > General
  (there is a new option that will be described in another
  change)

Task-number: QTCREATORBUG-29361
Task-number: QTCREATORBUG-30209
Change-Id: I62eaeef96b2d40dfec42022a4430da15c1590050
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-19 12:33:32 +00:00
Leena Miettinen
c28a388b1f Doc: Turn "Running on Multiple Platforms" into how-to topics
- Update screenshots of kit selector and Devices preferences,
  which now show the device status
- Turn running on QML and Linux into their own topics
- Remove conditions because the projects folder is excluded from
  QDS Manual

Task-number: QTCREATORBUG-30209
Task-number: QTCREATORBUG-29361
Change-Id: I869f6b577016c6712c6b37170dbee2249ded1f8e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-19 12:33:24 +00:00
Christian Kandeler
eea7fae890 RemoteLinux: Announce initial connection attempt
So if the device turns out to be unresponsive, users will not be
confused about the temporary freeze.

Task-number: QTCREATORBUG-30319
Change-Id: If65d6ea2777232239c8fb324b06352d92ad451c6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-19 12:07:04 +00:00
Christian Kandeler
4b042f1aeb Update qbs submodule to HEAD of 2.3 branch
Change-Id: Id0bdf4a85008f11de34953832cd02d2e0b46b3bd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 12:06:30 +00:00
Eike Ziller
8a532af3af Markdown: Fix the Show Editor/Preview buttons
Calling QToolButton::setCheckable on a button with a defaultAction
doesn't work as expected. It needs to be called on the action itself.

Amends acedf93ba3

Fixes: QTCREATORBUG-30382
Change-Id: Icbddb1d331fe6547622bf0428d890012fef0d9c5
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-19 11:48:28 +00:00
Robert Löhning
cfb26a06a7 SquishTests: Improve toggling filter names in "Issues" view
- Explicitly set a shorter timeout. After the menu appears, it
  should not take that long until the item is there, too.

- Warn when an item can't be found. This should not go unnoticed,
  because it either means that the GUI changed or that there's a
  bug in the test. Both require a fix.

Change-Id: Id7faa2b91926c392bd0d894214f498d8ba8edaa1
Reviewed-by: Jukka Nokso <jukka.nokso@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 11:25:48 +00:00
Robert Löhning
c4abbef0a8 SquishTests: Stabilize adding documentation
I noticed that Creator built on Qt 6.6.0 never needed longer than
two seconds to update the documentation after adding qtcreator.qch.
The same sources of Creator built on Qt 6.6.2 needed up to four
seconds. This subtle difference can lead to the situation that the
documentation was not yet updated when clicking "Getting Started"
in tst_WELP01, which then just displays an empty page.

Change-Id: I11ab2a902825190ed8ae27dad55a847f01ba44dc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 11:20:26 +00:00
David Schulz
95bad0c91d Debugger: add more debug output to the python cdbext module
Change-Id: I48b4fb6a65eb486b190238ff161ea358bf4d3bf5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 10:06:03 +00:00
David Schulz
0a2b6a910a Debugger: make last locals command debuggable in the cdbengine
Change-Id: I4d06cecbd23bdb2f16697b3713be5bca0a695fdb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-19 10:05:58 +00:00
Cristian Adam
d13a7dc9b5 CMakePM: Update cmake conan for auto-setup
Update to https://github.com/conan-io/cmake-conan/commit/
f6464d1e13ef7a47c569f5061f9607ea63339d39

Task-number: QTCREATORBUG-30169
Change-Id: Ibb8f3d353117c5c8ce21b8686cb6e2e5ee146698
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-19 08:30:47 +00:00
Christian Kandeler
1bd3c7d9e5 Wizards: Stop chasing The Current Thing in string construction
Guard against random deprecations by using a robust solution that works
across all Qt versions.

Fixes: QTCREATORBUG-30325
Change-Id: I00428d2454fcd6abffd3a25631946ea5d27cc4ae
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-16 13:45:41 +00:00
Eike Ziller
718b4b60b0 Add missing license file
Amends 2ceb1e2ad7

Change-Id: I3e6c1d1e1878a4502b6871cc5ea45b54f52327f8
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-02-16 10:55:00 +00:00
Christian Kandeler
64393a714d QbsProjectManager: Fix potential freeze when importing projects
We forgot to quit the event loop in the case of an incompatible build
graph, causing each such operation to take ten seconds instead of
fractions of a second. In directories with lots of qbs builds, this
could result in Qt Creator freezing for several minutes.

Change-Id: I9f3de2e23fd67a87e9f487eb2a1b6e45fbde6f31
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-16 09:31:51 +00:00
Christian Kandeler
2abe04ff34 CppEditor: Do not duplicate minimum clangd version
Amends 5516188290.

Change-Id: I1de7249c06c0e262d0c36f980cc687f0e792f755
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-16 09:31:27 +00:00
Jarek Kobus
8f23a64ac3 DocumentClangToolRunner: Fix isEmpty() condition
Since we were adding the parallel item unconditionally to the
tasks list, the if(tasks.isEmpty()) condition was always false.
The intention was to check whether any call to addClangTool()
added at least one task.

The fix is to add parallel item after the condition is checked.

Change-Id: Iafdf21f1ac0f8fdd547a462990313e09a2dc46fd
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-16 09:10:19 +00:00
Eike Ziller
198251db9b Bump version to 13.0.0-beta2
Change-Id: Ia03b43a4e3906350d79a2ba4dbfd800c5f80f77d
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-16 08:17:44 +00:00
hjk
7201fa0e4d Debugger: Create more uniform summary for debugger selection
Change-Id: I82ddcae84e4ff8d4776aa5fa988bb49b943b8d6f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-16 08:01:24 +00:00
hjk
7b198ea3ce Debugger: Select C++ debugger if there is nothing else selected
We want one-or-more debuggers enabled. This was accidentally not
done if the python debugger was the last one to unselect.

Change-Id: I1bcdb43a66dc110dc213eba0db079e6d02c00170
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-16 08:01:16 +00:00
hjk
8ab6b94c48 Debugger: Move string length annotation to type column
... and make it clear what it is.

Fixes: QTCREATORBUG-30065
Change-Id: Iccbe0f069569ef2682363eb889f34081e2c2b4d7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-16 07:32:39 +00:00
Jarek Kobus
d0ae84539e Axivion: Don't leak model on shutdown
Detected by memory analyzer.

Change-Id: I715c604f5769b958ad53da6444fd3763f3bdcc30
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-16 07:30:11 +00:00
David Schulz
2ceb1e2ad7 TextEditor: update ksyntaxhighlighting engine to v5.249.0
Task-number: QTCREATORBUG-22558
Change-Id: I0f75fd00828992df37f596148fac98069794248e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-16 06:28:19 +00:00
Jarek Kobus
f1f4422dce PythonSettings: Reuse Tasking::nullItem
Change-Id: I50675730fa7a7e228b151213610996456a8eacf4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-16 06:21:59 +00:00
Jarek Kobus
36241b4462 TaskTree: Add global nullItem
This might be useful when using conditional operator.
Might also be used in place of the default c'tor for GroupItem.

Add a test for it.

Change-Id: I622e5d3d94f7020dc294cf5bca643c53a0813d8a
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-16 06:21:53 +00:00
Jarek Kobus
d95fa019d4 PythonSettings: Don't leak running watchers
Detected by memory analyzer.
When shutdown comes while pythonsFromRegistry() or
pythonsFromPath() is still running, the corresponding
QFutureWatcher is leaked.

Employ TaskTreeRunner instead. It handles the cancellation
of the running tasks automatically on its destruction.

Make pythonsFromRegistry() and pythonsFromPath() cancelable,
by providing QPromise as a parameter and check for canceled
state on every iteration.

Change-Id: Iae7c7d1ed764646b8203bd7ca8b9580cb999b80c
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-16 06:21:44 +00:00
hjk
e3b62d0aa5 Debugger: Make DebuggerRunConfig sub-aspects direct members
Change-Id: I53979892598164b26c8fc1977b1366b0a56fa152
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-15 16:56:32 +00:00
Jarek Kobus
01f106b279 DebuggerRunConfigurationAspect: Don't leak m_pythonAspect
Change-Id: Icef93f08d0d24306c5f187c25cc4ca8d809a4c9f
Reviewed-by: hjk <hjk@qt.io>
2024-02-15 15:59:55 +00:00
Jarek Kobus
a6374bc5a9 ProjectManager: Add a hint on how to run the testSessionSwitch()
Change-Id: I4852d15bb3f17dd9f2495f44376f62e85046db36
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-15 15:57:46 +00:00
Jarek Kobus
3e7ef867dd QmlJSPluginDumper: Prevent potential crash when no results in QFuture
Ensure we don't reference non-existing QFuture's result.

Change-Id: I57668390e6ca83ae30c0b1de3e3a083a344ddbaa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-15 15:50:21 +00:00
Eike Ziller
894eaf9c06 Update change log with documentation links and missing item
Change-Id: I5260192b2b07fba0d915b1fa1e0625be60b671ae
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-15 14:18:30 +00:00
Leena Miettinen
75fa962eb4 Doc: Update info about QML live preview
Task-number: QTCREATORBUG-30209
Change-Id: I0c4717a192e7fd94924fa573994bc27d7687d1d3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2024-02-15 13:58:49 +00:00
Leena Miettinen
9d3b154ca8 Doc: Describe new search options
- Restructure the "Finding and Replacing" topic.

Task-number: QTCREATORBUG-30209
Task-number: QTCREATORBUG-29361
Change-Id: I107f366d99877a80a0ed8973c9156e46ee0ab312
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-15 13:49:17 +00:00
Marcus Tillmanns
4329b67c74 Clangd: Fix version check to use (remote) executable
Fixes: QTCREATORBUG-30374
Change-Id: I4a98a82ea24bb55a2ab3eed72f13d3d6f648df8a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-15 13:02:23 +00:00
Christian Stenger
6849c173c1 QtKeychain: Fix export for includes
Fixes the qbs build.

Change-Id: I8dc3427b35468685d03adfbf6bfffef9936015c6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-15 12:44:40 +00:00
Christian Stenger
b9671bcffc Axivion: Fix disabling filters
Enabling and disabling a layout does not do so for
its child components which had been assumed.
Explicitly disable or enable filters to avoid
crashes when accessing them without a project info.

Fixes: QTCREATORBUG-30371
Change-Id: I56633dad4b3ffbb1c0c7c7d154c2af5d3c3cde6b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-15 12:21:32 +00:00
Jarek Kobus
27df099c15 Axivion: Introduce CredentialQuery
Accompanied by CredentialQueryTask, to be used in Axivion recipes.
It wraps QKeychain::Job subclasses into one asynchronous task.

Change-Id: I78a06255d880b02cba657c822976ef09454ac261
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-15 10:27:17 +00:00
Jarek Kobus
035e948536 Axivion: Introduce postDtoRecipe()
For posting dto data to the server.

Change-Id: Id519c311f13e7c42c85b758f97fefd79fa2c41e9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2024-02-15 10:10:01 +00:00
Jarek Kobus
0b3b5b892c TaskTree: Add a test for progress reporting with onGroupSetup(false)
Also for the case when parent iteration isn't progressive.

Change-Id: I831b86de68d504a1e5e189d2be2b12ffc7d97c60
Reviewed-by: hjk <hjk@qt.io>
2024-02-15 10:09:19 +00:00
Jarek Kobus
02ac5deb4a TaskTree: Fix progress reporting with nested LoopUntil(false)
Fix also a case when parent iteration isn't progressive.
Add a test for it.

Amends e059b62421

Change-Id: Ic2f8c047d413ab2e2b98af4592f7cb60185bea06
Reviewed-by: hjk <hjk@qt.io>
2024-02-15 10:08:49 +00:00
Orgad Shaneh
029ac3c4a1 TextEditor: Simplify settings initialization
* Consolidate and simplify behaviorSettingsChanged callbacks.
* Do not call the callbacks during initialization, they are called later.

Change-Id: Ica4b601e091de2112c7737047cbffa8a98fc9f70
Reviewed-by: hjk <hjk@qt.io>
2024-02-15 10:01:54 +00:00
hjk
41131eadaa TextEditor: Drop TextEditorSettings::m_instance
This can be null when accessed too early. Using the function-static
global instance directly ensures initialization.

There is more simplification potential in this area, but I'd leave
that for master.

Change-Id: Ide35f4119e9fbcb392d1abac180ef46c02c16b87
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-15 10:00:54 +00:00
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
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