Commit Graph

57748 Commits

Author SHA1 Message Date
Christian Kandeler
25c7390d0a ClangCodeModel: Start fallback clangd on demand
E.g. when a non-project source file is opened.

Fixes: QTCREATORBUG-29576
Change-Id: Ia99346a7a1016c4c7dcdb41ad6c8dbbc85ed95ff
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-26 08:52:28 +00:00
Christian Stenger
658e2a3197 CMakePM: Fix build with Qt6.2
Change-Id: Iac128851da0aa7895d5c2352be550702fbc1e7f9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-26 07:49:03 +00:00
Marcus Tillmanns
d7ef2f816c CompilerExplorer: Fix saving
Change-Id: I7f6770170c76d636fa2d3631d9ff462da9e227bd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-26 07:21:10 +00:00
hjk
e85f750deb ProjectExplorer: Remove a few toolchain friends
Change-Id: Ibc665d3ce0c9e1d65a5eee5dcc31e9c3369fd331
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-26 06:40:39 +00:00
David Schulz
6ff28649c2 ProjectExplorer: speed up clang-cl toolchain detection
Do not guess the extension when we already it's clang-cl.exe

Change-Id: Ifd0d069f466d4b01bc3cfadc456ea6c97ea30743
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-26 05:24:05 +00:00
hjk
359f6e54b8 ProjectExplorer: Reduce scope of projectexploererconstants include
plus a bit of cosmetics.

Change-Id: I744b28ebf4285bd61b948988a0192632f5b360a8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-25 15:55:40 +00:00
hjk
e0f6ed0fe7 ProjectExplorer: Move some code from derived GccTCFactory classes
... to base as preliminary step to merge the factories. Combining
the code paths is not part of this change to keep it mechanical.

Change-Id: Ia1a43000a1e3978eae85be36493a67a18ba0c3e6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-25 15:53:21 +00:00
Christian Kandeler
e374f809ad QmakeProjectManager: Remove bogus condition from importer
Fixes: QTCREATORBUG-18150
Change-Id: If9c7aaa7745b9cd0ef57d3ecd71308ffb2991c48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-25 14:00:12 +00:00
Cristian Adam
cd94514dbb CMakePM: Add hover help for CMakeEditor
Fixes: QTCREATORBUG-25780
Change-Id: I954023f701e6c1c6ca5e25190b37f8b9a8becfb5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-25 13:41:44 +00:00
Cristian Adam
05614ab740 CMakePM: Display help details for code completion
The first 1024 bytes from the CMake .rst files are displayed raw data.

A .rst to html or markdown would be needed for nicer user experience.

Change-Id: Ie6adbb404d844ae88b868b465d4125c2177e6cfe
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-25 13:41:34 +00:00
Eike Ziller
4e101b4223 Merge remote-tracking branch 'origin/11.0'
Conflicts:
	src/app/main.cpp
	src/libs/extensionsystem/optionsparser.cpp
	src/libs/extensionsystem/pluginmanager.cpp
	src/libs/extensionsystem/pluginmanager_p.h
	src/libs/extensionsystem/pluginspec.h

Change-Id: I81f5872262e4ec7a631505c586d9470570c0453a
2023-09-25 15:18:07 +02:00
hjk
90050c05f3 ProjectExplorer: Merge LinuxIccToolChain into GccToolChain
Change-Id: I181a98f534c6f3006f750f99190b2f81a3f5a13b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-25 12:31:15 +00:00
hjk
f71c89d44a ProjectExplorer: Merge MingwToolChain into GccToolChain
Change-Id: I8f817aa69d54b58d9a0b865c1e081559fcf9799e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-25 12:30:01 +00:00
hjk
6e9568cb34 ProjectExplorer: Merge ClangToolChainConfigWidget into GccTCCW
Change-Id: I002356b886015e6a07c13700168c45056279b4f3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-25 12:27:25 +00:00
Christian Kandeler
cb2f24569a QmakeProjectManager: Fix QmakeProjectImporter
Presumably broke with e1d5e7c01f.

Change-Id: I9d05b552e68b8ea10b50501841d65578d51652f2
Reviewed-by: hjk <hjk@qt.io>
2023-09-25 12:24:22 +00:00
hjk
b68bdbafce ProjectExplorer: Remove ClangToolChain as class of its own
Change-Id: I92109855503d8696666a17f6e992bd5ca20cbf68
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-25 09:13:09 +00:00
hjk
c4c76c8642 CVS: Disable by default
It's very likely not /that/ common anymore that everyone needs it by
default.

Change-Id: I516d612cc587df6b7184f15eafff213274b8f32e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-09-25 09:00:11 +00:00
hjk
080cb86761 Core: Pimpl MainWindow
I'd like to disentangle things a bit, and there's quite a bit
non-window-ish stuff here.

Change-Id: Iad1e1d17ccd10b3ffff14251039ae2a5d6bfb675
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-25 08:47:45 +00:00
hjk
4282aff307 Core: Fix saving of session value keys
Amends 621a2850d.

Change-Id: If98ca4022cec76f5945db71dae29b4b9bb030128
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-25 08:31:22 +00:00
Christian Kandeler
92f76a3355 CppEditor: Do not call CanonicalSymbol::operator() on a temporary
Somewhat surprisingly, the returned symbol is owned by the object.
Prevent future instances of this mistake by making the function lvalue-
ref-qualified.

Change-Id: Id903ce160986d60cada55e181ad2f6eb2c7488da
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-25 08:30:06 +00:00
Marcus Tillmanns
ee51a1cbdf Docker: Remove superfluous default
Change-Id: I05eee8021b48dae49cfe3a97a4bc8f89550b51be
Reviewed-by: hjk <hjk@qt.io>
2023-09-25 07:43:56 +00:00
hjk
68359f96a9 Debugger: Make more noise again
... when attaching in connection with Run-in-terminal fails due
to strict yama scope settings.

Change-Id: I27731e36f07d99f817f606cb4625dc3a39dabc72
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-09-25 07:42:26 +00:00
Artem Sokolovskii
1640b74dfb DAP: Fix the same name variables expanding
Before when several variables had the same name it could be a cause
that wrong variable will be expanded.
Now the needed variables will be expanded.

Change-Id: Icc945e573721d033db82cac85e2ed4dabb6ad25a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-25 07:16:47 +00:00
Alessandro Portale
db00f56386 ProjectExplorer: Remove unnecessary visual gap in runsettings
Some Run Settings widgets had an unnecessary 2-pixel gap on the top.
This removes it.

Change-Id: Ie958940e6d2301ca0e51d93ddca9dc77f9ccaed1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-22 18:06:58 +00:00
Alessandro Portale
2e3c656ee1 ScreenRecorder: Fix warning
Change-Id: I83130abbf61c43ab7835ab012b3005287aa6d2f4
Reviewed-by: hjk <hjk@qt.io>
2023-09-22 15:30:38 +00:00
Cristian Adam
53b8f0e495 CMakePM: Speed up CMake introspection
By listing files instead of running cmake and asking CMake to provide
the information.

For properties and modules now the information is taken from the active
CMake version and not from the Syntax-highlighting file.

Change-Id: I0974cc816d990fd382d9e855eb08416b50d0368b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-22 15:26:07 +00:00
Cristian Adam
45a8dc4e44 CMakePM: Support local functions and variables for code completion
... and also navigation via F2.

Change-Id: I0f1242c6ff502973de180643b369c635636b0112
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-22 13:26:10 +00:00
Christian Stenger
66317f0145 CompilerExplorer: Fix Windows build with Qt6.2
Change-Id: Iacca1e17aec875b43e19000cea54daab5730838f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-22 11:26:15 +00:00
Christian Stenger
d87e6db168 Axivion: Handle some SSL related issues
...when using QNetworkAccessManager.

Change-Id: I2b1a6173052ce76e7aeed0897f3d6389ace36206
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-09-22 10:35:22 +00:00
Cristian Adam
0632648be6 CMakePM: Remove the CMake introspection after CMake project load
Will be done in the CMake editor. No need to slow the project loading
when you don't do any editing of CMake files.

Initially I wanted to have it already loaded when code completion is
done, but doing once when a CMake editor is opened is better.

Change-Id: I1eda2a64e708bfa4fab5ab749059a08769800eba
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-22 10:33:36 +00:00
Alessandro Portale
3ef401cd9a ScreenRecorder: Decouple capture type from host OS
On Linux, we want to support more screen capture options than just
x11grab. Also, on Windows, we might want to support alternatives to
ddagrab.

This change replaces host OS specific control flow with a setting based
one. If there are multiple capture types available for an OS (not the
case with this initial change), a combobox in the settings page allows
the user to select one.

Change-Id: Ic57be4a47d14f09f53635e53167aa20a5d74669b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-22 09:50:34 +00:00
David Schulz
7c28cc0565 Editor: transform the encoding label into button
Like for the line number label: Having a button instead of a labal makes
it more obvious that there is an action triggered when clicking the
label.

Change-Id: Ied15c05658c0b0b7df75cbcf1704808e94f6985d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-22 09:00:24 +00:00
Alessandro Portale
5d4849f058 ScreenRecorder: Remember the last used export format
Requires unique format names, thus the lossy WebP is now "WebP/VP8".
Default export format is WebP (lossless).

Change-Id: I26ccfb86417787d300afbb986c8202713ab1cbba
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-22 08:53:16 +00:00
Alessandro Portale
9503f62f49 ScreenRecorder: Add setting for capturing mouse clicks
Only available for macOS/AVFoundation, and off by default.

Change-Id: I30b3e6e472c62b5bb68b609c2cd945aa4fd70127
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-22 08:53:09 +00:00
Alessandro Portale
d079ef5e2a ScreenRecorder: Add setting for capturing the mouse cursor
This adds a boolean setting for capturing the mouse cursor which is by
default true. macOS would otherwise not capture it by default.

Change-Id: Ic70eb4c70e1be8c452ff32ef6c54f072ccc31caa
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-22 08:53:02 +00:00
David Schulz
0a323274d4 Editor: transform the line column label into button
Having a button instead of a labal makes it more obvious that there is
an action triggered when clicking the label.

Also fix the flickering introduced by
f0bb7e8bfa by saving the maximum width of
the sizeHint. Since the width can get big if we have a selection we do
not save the size in that case to avoid blocking the width when the
selection is removed again.

Change-Id: If8210ecbabb8c6449c4f88652fbed99f8526057d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-22 08:33:36 +00:00
Christian Kandeler
8f27d2f79f CppEditor: Properly group the menu actions
Introduce four groups of actions (symbol, selection, file and global) and
arrange them accordingly in the UI, with separators between them.

Change-Id: If2468c8e88036c83c8ab7f040c5998f7ec8ffed6
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>
2023-09-22 07:55:11 +00:00
Christian Kandeler
3861608c63 AutoTest: Create sub-menu for "run test under cursor" actions
No need to add all four variants to the top level of the context menu.

Change-Id: Iffed7abdf06be5d6811b4dde83f27aa865627134
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-22 07:53:57 +00:00
Cristian Adam
ed1568309b CMakePM: Add CMake Profiler action
Change-Id: I17f258834724c37f0933d18b6214851be1965913
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-21 18:39:53 +00:00
Alessandro Portale
1d5ecdb5c7 CMakeProjectManager: Non-toolbar icon variant for "Reload CMake Presets"
Change-Id: Ieadbe94ce22367eaf0ea0da220150051e924a266
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-21 18:18:23 +00:00
hjk
cd0f917886 ProjectExplorer: Don't consider a host named icecc to be a compiler
Change-Id: Ie916d3477cc187707a908e8bcc01999c4fc6c7f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-21 15:48:24 +00:00
Artem Sokolovskii
ffea46707e DAP: Fix debugger stopping when python script is finished
Change-Id: If5fda34c4b570ba49067260252323e031007a3b3
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 15:14:15 +00:00
Artem Sokolovskii
c7dbea2cab DAP: Move logCategory to source file from header file
Change-Id: Idb18175b830b7a79454dcb867d7910804785d3ca
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 14:28:31 +00:00
hjk
41856dd254 Core: Disentangle SettingsDatabase access
There's nothing inherently tied to the main window here.

Change-Id: I48ae09777a4408fc4c955d23fdee3483d8a97dd0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-21 13:50:02 +00:00
Artem Sokolovskii
5ec327d66d DAP: Fix remove breakpoint in Python engine
- Added acceptsBreakpoint function needed for mixing debugger

Change-Id: I6d4bc707527ce3d5e334a5332d1a806a27201d39
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 13:46:58 +00:00
Artem Sokolovskii
16018b3834 DAP: Add attach option to Python engine
Change-Id: I3f7254387904441fa28ffb797646b81d100bf9e9
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 13:46:52 +00:00
Andreas Loth
fc9059d180 Axivion: Store origin URL besides payload gotten from Dashboard
This prepares using (relative) URLs gotten from Dashboard instead of using
hard-coded ones.

Change-Id: Iea19c4010eac1e3f30a33d495a738d37738dc083
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 13:39:16 +00:00
Andreas Loth
1439d3170b Axivion: Set accept header
Without correct accept header the server tends to react in unexpected ways in
non-good cases.

Change-Id: I79e5084c2f0921679ece7e88ec9572f2c4f3beec
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-21 13:38:49 +00:00
Andreas Loth
5b7d671375 Axivion: Update Dashboard API (DTOs)
Change-Id: Ice8d1746cddad1cb6f0c9a7ab2778b8d9dc26ca9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-21 13:34:29 +00:00
Christian Kandeler
a219db1c91 CppEditor: Split up CppEditorPlugin::initialize()
Change-Id: Ib2b1ac670138ca87edb908a32f44aba16410035a
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-21 13:28:33 +00:00