Commit Graph

85691 Commits

Author SHA1 Message Date
hjk
61270e910f Core: Swap ICore and MainWindow "ownership"
Change-Id: Ibfa223da0f4d5195ae2f2783352346ca72b920bd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-29 12:11:38 +00:00
Marcus Tillmanns
c74ed31d67 QtSupport: Fix VersionData cache
Change-Id: I90d2b7d152123118b6244c86539868d185fde51b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-29 12:03:52 +00:00
Tasuku Suzuki
8d21274b28 FindInFiles: Add button to select directory from current document
Enhanced UI by introducing a button for users to easily set the
directory of the current document to the search path, addressing the
limitation of the existing 'Browse...' button.

Change-Id: If33f5c34428224ceb8854794b0dc222d588429cb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-29 11:48:50 +00:00
hjk
8ba5174415 Utils: Make UnixUtils a namespace
Change-Id: Id60c4165cf88af03d4010ee19cedc4bad39285e5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-29 11:40:51 +00:00
David Schulz
278ce651a2 LanguageClient: fix crash on inspector widget destruction
Avoid calling functionality of the LspInspectorWidget while it is
destructed by resetting the reference before the deletion.

Change-Id: I335cd1154fe4654be888a0d8cf02a0f6642edcb7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-29 11:27:26 +00:00
Artem Sokolovskii
fee2fb638b DAP: Fix start CMake debugging without executable
Task-number: QTCREATORBUG-29630
Change-Id: Ib7acb7d231fe45d52f816de9d8c85897e2808aec
Reviewed-by: hjk <hjk@qt.io>
2023-09-29 11:11:48 +00:00
Aleksei German
1aeade09c9 QmlDesigner: Fix MCUs project wizard
Task-number: QDS-10802
Change-Id: I94591458ced09ea483df75f8e5bfdd4b506baca0
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-29 11:06:29 +00:00
Christian Kandeler
088b0246d4 CppEditor: Let clangd quickfixes also appear in the "Refactor" menu
It was annoyingly inconsistent that they appeared on Alt+Enter, but not
in the menu.

Change-Id: I4cf19242719c79b60ba7758c4bcd433f97bb3251
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-29 11:02:13 +00:00
Eike Ziller
3601e18bc5 Deb: Depend on requirements from Qt
Qt requires libxcb-cursor0 and libdouble-conversion, so declare them as
requirements for the Qt Creator debian package.

Change-Id: I2ac9912e93d063ba47a45fffa880505baedb6e83
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-09-29 10:52:13 +00:00
Eike Ziller
3ac8185567 Markdown: Add missing actions for text styles
Change-Id: Ie3fcbd49158be4a12e1577ea24d3d6783489877e
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-29 10:51:30 +00:00
Eike Ziller
d6dd195861 ExtensionSystem: Fix copy & paste error for building without tests
Amends a8f6df546c

Change-Id: Ifff6ae60df631fd1ee9ab8801aea46c12bf15f2c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-29 09:32:42 +00:00
Eike Ziller
58972890cc Bump version to 13.0.0-beta1
Change-Id: Ibdf1ae2189f5dea88e2a02fccf551e3ed159bb02
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-29 09:27:12 +00:00
David Schulz
ed6595a66e Python: improve pyside tool detection
Look right next to the used python. For virtual env setups this should
be a lot faster than asking pip for the installed files. Additionally
this should work for pyside devenvs.

Change-Id: I2a8cf6877636785453426c348cfac252645aa4e1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-29 09:19:52 +00:00
David Schulz
80633a59aa LanguageClient: support additional goto targets in symbol support
Allow to follow to the symbol definition as well as to the type
definition for the symbol under the cursor position.

Change-Id: I8ff50b33a1e739f81b0832b1b28ffc525e1f7177
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-29 09:10:14 +00:00
Christian Stenger
23828a1d9c SquishTests: Adapt to changed behavior
We nowadays use pragma once by default for include guards.
Enhance former check to be able to check for both later on.

Change-Id: I0955158f53e056fed2e3751cf42f51855ff95515
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-29 09:09:21 +00:00
Tasuku Suzuki
e4ec7f0d14 Markdown: Enable action buttons with unselected text
Add appropriate indicators and adjust cursor position.

Change-Id: Ia4e3027899e0cedd83e94327bbeb0a2c4e518fdc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-29 08:59:03 +00:00
Eike Ziller
91975f98af Merge remote-tracking branch 'origin/master' into 12.0
Change-Id: I0e2c7f8afb1c036814414160934f9ca1ac22bba7
2023-09-29 08:03:51 +02:00
hjk
7a90fbaa0c Translations: Rename QtC::Bookmarks to QtC::TextEditor
Change-Id: I36a56bf3ec50c47a86f56cdd8428fd352defde8e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-28 14:55:17 +00:00
Marcus Tillmanns
4803c63423 CompilerExplorer: Add Icon
Also adds function to FileIconProvider to register a full icon instead
of an overlay.

Change-Id: I2d9415a3b57fa50ae313ad4e52fc929b418f9708
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-28 14:33:37 +00:00
Marcus Tillmanns
9e31654339 Terminal: Fix bash shell integration on KDE
Change-Id: I7c84cee276f1ee2fd902a447b763609534285911
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-28 14:03:06 +00:00
Cristian Adam
7235e977ff CMakePM: Fix concurrent access crash
Change-Id: I9ea11619860d4066cb06dfd4a60def8208f21add
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-28 13:51:31 +00:00
Christian Stenger
e5aaf90467 Core: Fix build for Qt6.2
Change-Id: Ifbe1bf349eca5462c83afdcb62a108f7e3f7b2af
Reviewed-by: hjk <hjk@qt.io>
2023-09-28 13:44:43 +00:00
Artem Sokolovskii
19faf1a25a DAP: Add watcher feature
It is possible currently to add/remove watcher. Also it saves
expanded structure during the debugging process.

Note:
It doesn't work for CMake because of the issue #25282.

Change-Id: Ia0a48ca5cd0062617ae427b56b001ef87d5894ed
Reviewed-by: hjk <hjk@qt.io>
2023-09-28 13:42:49 +00:00
Christian Stenger
32001b7e2a SquishTests: Adapt to changed ui
Change-Id: Ib1b13648b48e66e8932ee2c904cd783f8ccde727
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-28 12:47:15 +00:00
Artem Sokolovskii
6d92639a2d DAP: Update expanded variables over debugging process
Update and save expanded variables over debugging process

Change-Id: Iff35389fb5e56c0cde549565e88288e4bc9b52e7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-28 12:43:02 +00:00
Christian Stenger
f2451f8cd3 SquishTests: Improve lldb expectations
LLDB provides a couple of executables that are not usable as
standalone debugger - explicitly filter them out.

Change-Id: I293479adb6b47b1a63e6cad5a9d1ab34e255d9ed
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-28 12:30:01 +00:00
Christian Stenger
51fbe96728 SquishTests: Fix accessing navigation tree view
Change-Id: I0f392c39c75c553cc65ade4c1689cf1085f1c5a1
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-28 12:29:51 +00:00
Christian Stenger
6bbebaac51 SquishTests: Fix accessing clear button on find tool bar
Change-Id: I9af1e6c2eb622254e9011942acb2004bf7b01970
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 12:29:39 +00:00
Eike Ziller
a1585ea5c0 Examples: Adhere to filter when switching example set
Fixes: QTCREATORBUG-29652
Change-Id: I0ccea2da7338c98bd3c5bf919e137339ed12e837
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-28 12:22:47 +00:00
Eike Ziller
97518b3f6a CtfVisualizer: Do not crash on unexpected types again
And print a nicer error message.

Amends c05f9cacc6

Task-number: QTCREATORBUG-29659
Change-Id: I1db6bea0bedf1fae034fecbbbeae56bb2fee49ed
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-09-28 11:20:33 +00:00
hjk
963ff4381d Bookmarks: Merge plugin into TextEditor
Change-Id: I4c9438f3596daff2c18680a731764bf5010e1e25
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-28 11:03:02 +00:00
Cristian Adam
776c8670d7 CMakePM: Handle project FindPackage package variables
For example find_package(ZLIB QUEIT) will result in the package
variables ZLIB_LIBRARY ZLIB_INCLUDE_DIR.

The variables are available for both code completion and navigation.

Change-Id: I4ea6090f44a980dc91632fcabbda16987b0f0285
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-28 10:49:56 +00:00
Cristian Adam
d08f1c6e94 CMakePM: Allow navigation to project targets
They were available via Ctrl-K and "cmo <target_name>". But they should
be working also in the text editor.

Change-Id: Iaad72b784485364776b67d6dfdef7ba73dd2df70
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-28 10:36:40 +00:00
Cristian Adam
d915e22adb CMakePM: Add imported targets to code completion / navigation
This allows e.g. Qt6::Core to be specified as argument for
target_link_libraries and navigation via F2.

Also fixes a bug introduced with
695952f84b which removed the project
specific features due to project being nullptr.

Change-Id: I5efa28c498d337e6bab564533a5445e6c364b26b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-28 10:36:29 +00:00
Marcus Tillmanns
72bcaeaab4 CompilerExplorer: Add missing variable
Wrongly removed in previous patch

Change-Id: Idaa3a2010bdf90c0c2d303a61ecf0e741faae98d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-28 10:26:27 +00:00
Marcus Tillmanns
14e2294fb2 Utils: Allow hiding Dock close / float buttons
Change-Id: I18e17ebe4fa049699a731c00448cd615ad9c6c19
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-28 10:24:58 +00:00
Johanna Vanhatapio
4928c2a108 Doc: Describe configuring snapping
Task-number: QDS-10752
Change-Id: Idd622e34b034db0ba38411023b5cd6cf46c174f6
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-09-28 10:19:31 +00:00
Marcus Tillmanns
fe24faa12b Fix issues found by coverity
Change-Id: I1eba9b800fed419bea4169ec6d6042c2f99b505d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-28 10:06:28 +00:00
Christian Kandeler
1723af0206 ClangCodeModel: Enable clangd hidden features when server logging is on
Potentially useful for debugging.

Change-Id: Iada7f2809d0f42bd5445ac6f9a8161a03ffd9bb5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-28 09:53:39 +00:00
Eike Ziller
a0a4d9024e Merge remote-tracking branch 'origin/12.0'
Conflicts:
	src/plugins/python/pyside.cpp

Change-Id: I1f84ed56d38355cef6076797c72693fff4c1aa78
2023-09-28 11:02:38 +02:00
Tor Arne Vestbø
182d4540b3 lldb: Add summary provider basic debugging facility
Change-Id: I166ad0c2e7d4ed508b1f4a8eeaf5e1e2488a3b70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:54:23 +00:00
Tor Arne Vestbø
7033bbf7e0 lldb: Set environment variable to detect when running lldb from Creator
Instead of relying on __name__ being 'lldbbridge', which can also
be the case if the lldbbridge.py script is imported into a plain
LLDB process, we can now look at the environment variable.

This also lets us break out early from __lldb_init_module
if the user has a `command script import llbdbridge.py`
in their .lldbinit, or is automatically loading the bridge
via the Qt Core debug script.

Change-Id: Id8168c692ef66ce50119b7426ca85c7bc99d9503
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:54:13 +00:00
David Schulz
51a406900c Python: fix installing PySide wheels on Mac
Change-Id: I3f9f9ee5580176a65ca8e6b5c62b793fed170462
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:43:21 +00:00
David Schulz
b9e327bb10 Python: read installer settings for pyside wheel requirement
This should be more stable than relying on a specific folder structure
in the Qt Package.

Change-Id: I20dea176df43c9f6e768f4db69ac4eb70633f01a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-28 08:42:50 +00:00
Tim Jenssen
e39c6d4f41 McuSupport: fix build with latest QtcSettings adjustments
Change-Id: Iea1ff349ef00a8f4255651c0a1baf3656b5153b7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-28 08:18:20 +00:00
Christian Stenger
aef5a94c22 QmlJS: Remove unused functions
Amends eb5cdb4293.

Change-Id: I8d8627b9471547df0334f6035d4a0241a21c1f1f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-09-28 07:27:36 +00:00
Christian Stenger
4872532ef1 Fix build
Change-Id: I2edadc699c7177f3239a686dd01f92e54fa56bf9
Reviewed-by: hjk <hjk@qt.io>
2023-09-28 07:15:26 +00:00
hjk
071416fde3 Meson: Move some code out of visible plugin setup
Background for the activity here is that this plugin's setup activities
take on my machine around 0.2s on Creator during Creator startup and
I'd like to reduce that a bit.

Change-Id: I880a0b5ce5c4dce52a041b6a3ef9dc3cef346adb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-28 07:04:03 +00:00
hjk
7bf1b6e586 Meson: De-noise project parser a bit
Change-Id: Ic0b19e5a1e10057f750c2ad13f61c09f1105d05d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-28 07:03:57 +00:00
hjk
895f8e7396 Meson: Merge MesonProcess into project parser file pair
Only used there.

Also remove the translation line in the test project to help
with incomplete Qt 5 installations.

Change-Id: Id7029b499cec69a7e1733e2ac4ade9026c522951
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-28 07:00:21 +00:00