Commit Graph

88532 Commits

Author SHA1 Message Date
David Schulz
3517123ff4 LanguageClient: fix assist provider leak on client destruction
Change-Id: I2d932c2123f48a65be1c6406ed669feda03c93ea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-05 13:32:48 +00:00
David Schulz
118e39cae2 LSP: fix placeholder key
see https://microsoft.github.io/language-server-protocol/specifications/
lsp/3.17/specification/#textDocument_prepareRename

This fixes the empty replacement input field when renaming a global
symbol with current clangd from the llvm main branch.

Change-Id: I6539a17c6172e7c96088645ab7234d9b0213170c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-05 13:32:17 +00:00
Eike Ziller
911c486ff0 Qt/Help: Fix the "Highest Version Only" setting for the online installer
The Qt support has the option to only register the documentation for
"the highest Qt version", which is enabled by default.
That is based on finding the help files for registered Qt versions and
only registering the right set depending on the settings.

Unfortunately the online installer additionally registers the Qt
documentation path as a separate documentation set in the install
settings. (This was originally introduced to support documentation for
components that are not directly related to a Qt version.) The Help
plugin that handles this setting doesn't know that the Qt support
explicitly doesn't want the documentation of some Qt versions
registered.

Let the Qt support explicitly tell the Help plugin about documentation
files that should not be registered, even if they appear in the separate
install setting.

Change-Id: I0512adc0dfe9969481ce83094f5349a49aae5d9f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-05 13:09:43 +00:00
Artem Sokolovskii
25c0fc9c45 Android: Add output about JDK path issues
Change-Id: Ib72c5e8e2e23aa1f24d5181a060c72aaa2006d37
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-05 13:06:05 +00:00
Eike Ziller
ac67df7e73 main: Fix leaking of a QtcSettings object
Amends b619f24396

Change-Id: Ic93d33a09eb2b49dd899470ba88f3a7d71f5400d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-03-05 12:34:57 +00:00
hjk
feeb72d78c Debugger: Rework timeout handling
Extend the range to start with 10sec, but default to 40secs.

Change-Id: Iede37afca0da2c9ba8fc0bb3fda65d403b8d0bcc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-05 12:14:56 +00:00
David Schulz
3691053760 TextEditor: fix finding whole words
'_' was handled as a word separator, in contrast the global search did
not. So the user received different results when using find toolbar or
the advanced search while searching with the same option and pattern.

Fixes: QTCREATORBUG-10276
Change-Id: Ie07303fbaa35475bb98bdb813358169474c3ba1d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-05 11:48:49 +00:00
Teea Poldsam
cbd91b0167 Doc: Update Log In UI - Timeline
Edited the tutorial and added some images.

Fixes: QDS-11191
Change-Id: Icfc9bda96472a7d5bd82822ff5dac66c6a5c5849
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-03-05 11:16:02 +00:00
Marcus Tillmanns
568118af8b Terminal: Fix copying Japanese text
Previously if you tried to copy text such as "惣流・アスカ・ラングレー"
an invalid char would be added after each character. This patch
fixes the code so that "-1" cells are ignored.

They are created because the previous cell had a width of 2.

Change-Id: Iff8e60d3a4080068e188b08ded13a8c78df952f2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-05 10:24:41 +00:00
Thomas Hartmann
f6a377a322 QmlDesigner: Fix regression in ConnectionModelBackendDelegate
Since we do not set the parent anymore, we have to keep
the model as a member.

Change-Id: I1a850b82366c4c1e26c4b5fe42e61f40adf47baf
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-05 09:34:29 +00:00
Teea Poldsam
968b88edf9 Doc: Update Log In UI - States
Edited the tutorial and added some images.

Fixes: QDS-11190
Change-Id: Idb25b9bbe2274185ff279528fa6815a0a74abb94
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-03-05 08:34:24 +00:00
Eike Ziller
58f6a3a459 COIN/GitHub: Use Qt 6.6.2
Change-Id: Ib9303ea53eb8b14851c670c144ed6a3261c2d6cb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-05 08:09:37 +00:00
Eike Ziller
db5ac2dc15 Utils: Fix build on macOS < 13 with C++20
The Clang implementation of span is incomplete until
LLVM 15 / Xcode 15 / macOS 13.5

Change-Id: Iac8514fc84643cb4dae9cfaac603df5e798f9ff4
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-05 08:09:18 +00:00
Marco Bubke
b3718ad783 QmlDesigner: Enforce lite plugin if lite is enabled
You need to remove the build or set the project storage option too.

Task-number: QDS-12102
Change-Id: I45eb30fa18f56c170344afdaf94275b944230fa5
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-03-04 17:22:23 +00:00
Marco Bubke
d4426f3424 QmlDesignerLite: Add plugin
If the Qml Designer Lite plugin is loaded a flag is set in the qml
designer base plugin. That flag then can be used to change the qml
designer plugin.

Task-number: QDS-12044
Change-Id: Ie685a4308637fe6b51a489dcddbe6830fd1a1533
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-04 17:22:05 +00:00
Marco Bubke
12760b3032 QmlDesigner: Add explicit ownership to binding editor
It is much better to desribe the ownership explicitly instead of using
the hard to read parent child mechanism.

Change-Id: I488a6ca1fb08f4bf3b3a540c0bb7d9ffb03895d0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-04 17:21:52 +00:00
Marco Bubke
f6025c4e04 QmlDesigner: Use automatic resource management to color tool
Change-Id: I1915577cf06769e69cad41639c5ca170b2d2dae8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-04 17:21:39 +00:00
Thomas Hartmann
6cd5f09941 QmlDesigner: Fix warning in PopupDialogButton
We should use the templates in this case.

Change-Id: Ia727f8c082de36222fff09ee72997c9899e07e97
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-04 17:11:55 +00:00
Burak Hancerli
bfb5a152c9 QmlDesigner: Unify Qrc and Qmlrc package builders
This patch removes the redundant codes from qtquick-components and
qmldesigner and merges them under qmldesigner.

Task-number: QDS-11990
Change-Id: I52ba6754182410ac7fadb2e891539e42ef821edf
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-03-04 15:45:48 +00:00
Thomas Hartmann
9517e82d86 QmlDesigner: Remove Core depedency from QmlDesignerUtils
Change-Id: I8affc32f5a3231884314f2d3b4b13d0061a169dc
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-03-04 15:17:01 +00:00
Thomas Hartmann
61038a42f1 QmlDesigner: Use simplifiedTypeName instead of qualfiedTypeName
This reduced the number of corner cases.

Change-Id: I12f6622577caf3b5e661cbe13479893d37f02dc3
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-03-04 14:32:06 +00:00
hjk
6d6ec00cdb Core: Wrap moribund dialogs into QPointer
There's no guarantee that items in the collected list don't die for
other reasons before it's their turn in the loop.

Change-Id: I5e81a25c3c205646eece30d6dd1a95f4b97eda05
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-04 14:17:45 +00:00
Eike Ziller
c4e8963d8d Remove unneeded version checks
After we raised the minimum Qt version.

Change-Id: Ife81a25c3c205646eece30d6dd1a95f4b97eda01
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-04 14:16:15 +00:00
Mahmoud Badri
88c52f0c25 QmlDesigner: Add CustomComboBox to StudioControls
CustomComboBox requires a custom popup. This will be base for an
upcoming multi-select HelperWidgets Combobox.

Change-Id: I92869d064b69c11f577b297fc48a38f76c423060
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-04 13:56:22 +00:00
Eike Ziller
50c4046593 Deploy qtplugininfo
It is useful for inspecting Qt Creator plugins and doesn't hurt.

Change-Id: Ifefb3b17193e16b0f592b854477374dbcb5ab1b4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-04 13:41:39 +00:00
Mahmoud Badri
0db0e06592 QmlDesigner: Fix effect composer doesn't open by double click
Fixes: QDS-12158
Change-Id: Ie3512cd933438806cbf7dd7f44ca4dab2546df3d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-04 13:34:54 +00:00
Christian Kandeler
fbe244fd46 Cpp Editor: Fix serializing clangd settings
A "store with default operation" makes no sense on the level of the map
itself, as it does not have knowledge about the current on-disk
settings.
This reverts commit a4fbc5f00d.

Change-Id: I008b0b5c24428c71182dac5d1f151d25cf4f7467
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-04 12:47:13 +00:00
Eike Ziller
ff04dc53ef Require Qt 6.4.3 for building Qt Creator
And remove unneeded conditions from CMake files

Change-Id: Ibb4646f83599c5a91fbd18ce3489103e4150c49f
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-03-04 11:15:36 +00:00
Thomas Hartmann
387fb176d0 QmlDesigner: Fix importmodule.qmldir.tpl
Module -> module

Change-Id: Ib441f6aa2fb3b9c4d7d69654acce8db83c4f93fe
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-04 10:43:20 +00:00
Christian Kandeler
f56fd04c8d Revert "Clangd: Avoid client restart after modifying open documents"
The whole point of tracking external changes to files is to use the open
files as a sentinel to indicate that non-open files (on which we don't
have a watch) have likely also been changed.
This reverts commit cff26d813a.

Change-Id: I5a8b3e6709eda881b912916cf0838b45d1ff4fa4
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-04 10:36:53 +00:00
Cristian Adam
cf8a8974ed CMakePM: Suppress error message for valid build preset
Fixes: QTCREATORBUG-30373
Change-Id: I2e2ec83c0b14d188096ace61468435ccbd36d84b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-04 10:34:29 +00:00
Pranta Dastider
555772130c QmlDesigner: Update instructions in the QML Modules with Plugins doc
This patch updates instructions in the QML Modules
with Plugins document. It also includes a new image
to give a visual idea about the instruction.

Fixes: QDS-12065
Change-Id: I35f0c7f96196c772cbcdd728817ea409318ff952
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
2024-03-04 10:06:54 +00:00
Leena Miettinen
add834577b Doc: Update info about autotests
- Split the topic up into how-to and reference topics
- Add and remove descriptions of preferences
- Move general information to the overview
- Describe qdt locator filter

Task-number: QTCREATORBUG-30209
Task-number: QTCREATORBUG-29361
Change-Id: Idb29eebaeb2f77326ebbb5e6b5654c135473f329
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-04 09:38:35 +00:00
Christian Kandeler
36c7d971c3 LSP: Fix missing icons in call hierarchy
Change-Id: I8b10392ac28689ce80dc818cba5ff58f21becb81
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-03-04 09:06:11 +00:00
Eike Ziller
832fde9e0e CMake: Exclude non-project CMake files from search
All the CMake files the belong to packages found with `find_package` are
part of the project tree, but we shouldn't include them when searching
through "files in the project".

Set listInProjects to false for these files.

Fixes: QTCREATORBUG-30372
Change-Id: If39d477f14dc3207f4e2dd66b2f3969811dbd863
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-03-04 09:01:02 +00:00
Christian Kandeler
5d41ab126f ProjectExplorer: Expand selected details widgets in target setup page
Rationale:
  - Selecting and unselecting should behave symmetrically.
  - The user is informed of and can easily change the set of
    pre-configured build configurations.

Fixes: QTCREATORBUG-30412
Change-Id: I86e6a41c3baed280df9a694d6cf6eb631cb537f9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-03-04 08:47:27 +00:00
Marcus Tillmanns
44b6dea740 CompilerExplorer: Use volatile
Currently the user can't change the Url. This is for the future.

Change-Id: I7854c1dc0e680c9aa4bbb41d44dbcb9540a3b34b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-04 07:48:41 +00:00
Leena Miettinen
642c4beac1 Doc: Split up Refactoring into how-to topics
- Move info about viewing search results to the Search Results View
  reference topic
- Remove the Refactoring top-level topic (the general info is now in
  the Overview topic)

Task-number: QTCREATORBUG-29361
Change-Id: I4072e628368905ed1d5006ececae1b9eaa02fa10
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-04 07:37:47 +00:00
Leena Miettinen
51ca09c2d7 Doc: Describe the "Edit Checks as String" option for Clazy
Task-number: QTCREATORBUG-30209
Change-Id: I56d2f9d9a18f474ab0228c9c64bbde2101d49429
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-03-01 15:17:01 +00:00
Leena Miettinen
217b6eae03 Doc: Describe using junction points on Windows
Task-number: QTCREATORBUG-30209
Change-Id: If6692b697e92a6d3fdffaaddc268cab82f50afd4
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-03-01 15:11:02 +00:00
Christian Kandeler
bb15322af8 Update qbs submodule to HEAD of 2.3 branch
Change-Id: I3c4dd9307c74e3fef12bccdc54c13f96dd252e97
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-01 14:33:22 +00:00
Leena Miettinen
5e5c86fecb Doc: Update Axivion docs
You can now view and filter issues from selected results.

Task-number: QTCREATORBUG-30209
Change-Id: I175f71589755af3bd75813eea237487128f36c42
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-01 14:30:39 +00:00
Artem Sokolovskii
810c9e7106 ClangFormat: Fix vague error message
Change-Id: I321d74a80c1735dad3edb6e542451cab3a71a3f7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-01 13:46:51 +00:00
Robert Löhning
c5cce4233d SquishTests: Update tests for Welcome screen
Some tests are failing because of QTCREATORBUG-30466
unless someone resizes Creator's windows manually.

Task-number: QTCREATORBUG-30466
Change-Id: Ibeecc2abd85839be3497691912e411862c465a89
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-03-01 13:26:11 +00:00
Ali Kianian
f7530458c4 QmlDesigner: Remove CollectionSourceModel
Task-number: QDS-12032
Change-Id: Id0b999500a0a8cae16a90a59d051cd725417e431
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-03-01 13:17:42 +00:00
Teea Poldsam
9f024eb5cd Doc: Fix broken links to keyboard shortcuts
Fixed the broken links to keyboard shortcuts.

Fixes: QDS-12122
Change-Id: I461bbe2aa8f30e8f7fea202b15d7e66cfa23083f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-03-01 12:52:10 +00:00
Eike Ziller
6a59cb891b Qt/Documentation: Avoid automatic loading of unrelated help files
On Linux/KDE systems, the KDE documentation files can be installed in the
Qt documentation directory. This leads to a great of documentation files
to be loaded by default, which we try to avoid for performance reasons.
Restrict the pattern for .qch files to start with a 'q', which still
matches the Qt documentation files. If the user wants the documentation
of KDE libraries, they can register them manually.

Change-Id: Ib658c3b2c26a97ca69a8c0e46a5057a58b5a7ec7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-03-01 12:45:58 +00:00
David Schulz
262dcc6643 Core: do not activate open documents entry on right click
If we activate an entry before we handle the context menu event we might
switch into another mode. For example when right clicking on a ui File.

Fixes: QTCREATORBUG-30357
Change-Id: I8de78c3a6bbd9d62e2766ccd2059ee3ee4ef0870
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-01 11:29:17 +00:00
Eike Ziller
3ff56b8079 Bump version to 13.0.0-rc1
Change-Id: I5b4efa41aabce4b007308a53ea9ac291a3a3ad58
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-03-01 11:24:18 +00:00
Eike Ziller
5b276d5940 Android: Use more ICore::dialogParent()
This is usually the better choice because it takes dialogs into account.
I had one message box vanish behind the rest of Qt Creator, which could
be better with this.

Change-Id: I47b93e120a9e86f9f81da8e542477f1c6274bf87
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-03-01 10:11:16 +00:00