Commit Graph

68765 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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ø
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
hjk
7a4e66992c Utils: Streamline QtcSettings interface
Change-Id: Icd9592c0fca5df1e52bdafb570665d92deeb70bb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-28 07:00:05 +00:00
Marcus Tillmanns
aeb05db3af CompilerExplorer: Disable Dock menu and close
Change-Id: I874e624cc35c337a7774377847f5f1a79b07a2b4
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-28 06:59:40 +00:00
Jarek Kobus
c05f9cacc6 CtfVisualizer: Fix multithreading issues
Simplify the CtfVisualizerTool::loadJson(). Don't create a QThread
manually, but use TaskTree with AsyncTask instead.
Move pure parsing into the separate thread, and leave the
nlohmann::json event handling in the main thread.
Avoid moving m_modelAggregator between threads.

Fixes: QTCREATORBUG-29657
Change-Id: I0c6a9a4ea8298dbbdbafcddd338d39ad73c3f82b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-27 15:09:56 +00:00
hjk
9c6bb1ac80 ProjectExplorer: Use less overlapping patterns in toolchain detection
Change-Id: I7de28d736e940d06267a16c9619e95d6fa2c6112
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-27 14:16:05 +00:00
Cristian Adam
695952f84b CMakePM: Integrate RSTParser into hover help / code completion
Change-Id: I1618be1aff83e8164c53040bb2c7230bcc1ec8ee
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-27 14:14:43 +00:00
Cristian Adam
94d7c76d67 CMakePM: Add missing features to RSTParser
To be able to parse the rst help files from CMake

Change-Id: Ibec21e8571324276d2080f81728b1268581601d0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-27 14:14:31 +00:00
hjk
50a4ece91f ProjectExplorer: Re-order some code
Change-Id: Iab4be8f5d55bc88518f7473cef20b024ef6cd26d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-27 14:12:20 +00:00
hjk
24f8990511 ModelEditor: Clean up exposed constants
Change-Id: Ic8b51dc2d121f7bfefb58a6b15a961e70ee8c74a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 14:10:15 +00:00
hjk
60d1fe4cb7 All: Even less #include <QSettings>
Change-Id: Ifbb2af34169036236e6f2f7b09ef115de5c6a6c7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 14:10:07 +00:00
hjk
018993fc37 ModelEditor: Simplify UiController
Change-Id: I3182f3e3c038d0c2d6daa94d59cb96865d2baf20
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 13:59:13 +00:00
hjk
0eacd0190d All: Remove some unneeded #includes
Change-Id: If9a8fb5e0b32424e3b37ecf3adefc060f86b3630
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 13:50:38 +00:00
hjk
b3c23435b4 ModelEditor: Simplify settings use
Change-Id: Ic9a82e09d65a9a8136baea785d01bebb5cea2c58
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 13:27:39 +00:00
hjk
342e066886 Utils, all: Standardize on QtcSettings
Change-Id: Id222016f15b1c3bfe6710fe5d0297666d4565ef1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-27 13:25:31 +00:00
Alessandro Portale
4924e5afec CMakeProjectManager: Fix warnings
Change-Id: I190646684a1cadbcc1a5906642ed48e9dd84ed88
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-27 12:57:12 +00:00
Christian Stenger
4629b0f69e ScreenRecorder: Fix handling of capture type
Amends 3ef401cd9a.

Change-Id: I09e6de09358843ee0109e906577c0f152b0ed22a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-27 12:50:14 +00:00
Christian Stenger
91c0b60752 ProjectExplorer: Fix build
Change-Id: Iee85ecce556df3235775e150466d5fcde9fab252
Reviewed-by: hjk <hjk@qt.io>
2023-09-27 12:21:18 +00:00