Commit Graph

88653 Commits

Author SHA1 Message Date
hjk
064ebaf0a4 ProjectExplorer: Move autodetection checker creation
... to a later point in time, closer to its use.

Change-Id: I578f818a9e11f0cbdbaece58a4b2b55ed482f65e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-10-02 09:25:11 +00:00
hjk
58c8fe823c ProjectExplorer: Simplify autoDetectToolChain parameters
This leaves us larger freedom on what tool chain to construct
later in the process, hopefully allowing us to handle real GCC
and MinGW in one pass.

Change-Id: I6b0ca1af428129924cef0ae31d684e6bc2735213
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-10-02 09:23:13 +00:00
hjk
eb9d2d8f17 ProjectExplorer: Remove timing test code
Amends 1c5ecec393.

Change-Id: I679da19b5c7cdb6d401ee396d11e0df37d6cc026
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-10-02 08:30:28 +00:00
Orgad Shaneh
96abaa9d5d Meson: Add missing member initialization
Coverity-Id: 1568464
Change-Id: I13baf0f7c807475d4a8452771579407565d6a3e2
Reviewed-by: hjk <hjk@qt.io>
2023-10-02 08:22:48 +00:00
Miikka Heikkinen
42f231e4a2 QmlDesigner: Fix 3D view grid color when there are objects behind it
Fixes: QDS-10803
Change-Id: Ibbe1c9d308031b941df42750eb4f75cb2fe43c13
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-10-02 08:11:46 +00:00
Orgad Shaneh
b004a78645 ClearCase: Remove pointless function argument
Change-Id: I5545090a5f28994b126cedd97496678d891f5184
Coverity-Id: 1568460
Reviewed-by: hjk <hjk@qt.io>
2023-10-02 08:09:08 +00:00
Pranta Dastider
fc03a77ee1 QmlDesigner: Update Screenshot of Connection overview document
This patch updates the screenshot for Connection view documentation.
Changes the old "png" image to new "webp". It shows new design and
elements of the Connection view.

Fixes: QDS-10760
Change-Id: I2199afae5f044dc70ad4a6f51b59fd9c7f9c7f3d
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-09-29 17:07:11 +00:00
Cristian Adam
15903ad17a CMakePM: Allow http(s) Url navigation
The CMake snippets do have comments with the origin of the snippet and
this patchset allows navigation to the url in question.

Change-Id: I6eb2565e8f7b9100a1cc19dbf8ccda430c698613
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-29 17:03:45 +00:00
Cristian Adam
ba1e54b8a4 CMakePM: Add a sample Find Module CMake package snippet
This is taken from https://cmake.org/cmake/help/latest/manual/cmake-
developer.7.html#a-sample-find-module

And provides three customization points:
 1. $package$ - ZLIB
 2. $header$.h - zlib.h
 3. $library$ - zlib

This way users can easily create FindZLIB.cmake find modules which can
be easily used as target_link_libraries(my-app PRIVATE ZLIB::ZLIB)

Change-Id: Id5143c46ecfde09419d4f43b9a3ff156401a88f9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-29 16:54:41 +00:00
Marcus Tillmanns
0c806f1359 QtSupport: Fix VersionData cache
Change-Id: I90d2b7d152123118b6244c86539868d185fde51b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-29 16:45:57 +00:00
hjk
1c5ecec393 ProjectExplorer: Rewrite GccToolchain candidate identification
Change-Id: I9555588b64e0beeafc854d13a43dd0fad32662e2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-29 14:00:26 +00:00
Christian Stenger
f01c4c4055 SquishTests: Adapt to changed wizard
Test projects have moved to their own category.

Change-Id: If69aecffd19f40a3d24be1b88970f9cc0045272a
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-29 12:20:25 +00:00
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