Commit Graph

85691 Commits

Author SHA1 Message Date
Eike Ziller
aa4ff49f83 ExtensionSystem: Add total real time to profiling report
The original total only contained the time spent inside of plugin
methods, but a lot of things get delayed arbitrarily to the event loop
currently. That is included in the new "total startup".

Task-number: QTCREATORBUG-29540
Change-Id: I832bb972d85bc4cf82f098e4cbf5d3ff3800d14a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 026848eadd)
Reviewed-by: hjk <hjk@qt.io>
2023-09-25 07:11:49 +00:00
Eike Ziller
0c104914ab ExtensionSystem: Always generate profiling data
The overhead is minimal and can be shown at a later point even
when not printing profiling data to the terminal.
Move the data to the plugin spec for later retrieval.

Task-number: QTCREATORBUG-29540
Change-Id: I392ff85a8a8b5c01ecba07fefd06e5029f692bf6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 4da8430cab)
2023-09-25 07:11:32 +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
Tim Jenssen
963f92ef4b fix transientscroll.cpp compile against older Qt (tested 6.2.9)
(cherry picked from commit 9ab6c7186d)
Change-Id: I417aa1e0ef7c00181e85d8250e04b12ff6a24512
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-09-22 13:46:19 +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
Eike Ziller
b52f7a2e03 Add change log for 11.0.3
Change-Id: I702c876d1af8884349367dbc1f21436656a05c76
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-09-22 13:00:52 +00:00
Mahmoud Badri
e7e2fa7c0c QmlDesigner: Clear effect maker nodes on load
Otherwise closing and repoening a project will add a duplicate of the
effect nodes categories.

Change-Id: Ibfe65ab66cca0b86cf34b1744c17b2c90280bba4
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-22 12:25:53 +00:00
Thomas Hartmann
205af45177 QmlProject: Fix issues with cmakefiles.txt generation
If file names contain spaces we simply add quotes around the filename.
If file names contain special characters (!, % & etc), then we give a warning and skip the file to not break the build.

Task-number: QDS-10745
Change-Id: Iae9497725816769a8922a0ef38f0dc05fb1bb582
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-22 11:49:28 +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
Thomas Hartmann
9f08e3f611 QmlDesigner: Fix potential crash
The view is not guranteed to be attached. In my case I closed the project
and for now the dialog is not closed automatically in this case.

Change-Id: If006fae2ddd78d6eefe604f6b0c44eb9e1fb725a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-22 09:39:00 +00:00
Thomas Hartmann
27d25261f9 QmlDesigner: Fix merge for tooltips
Change-Id: Ic72817e01595ba47e4d510d136280b69057b7f5f
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-09-22 09:23:59 +00:00
Henning Gruendl
1968b5e407 QmlDesinger: Add transient ScrollBar FilterComboBox
* Add transient ScrollBar to FilterComboBox
* Apply new selected item style
* Remove selected item icon

Change-Id: Ic479cb23b3c0cff70447e5e7a89ab4e1b61f3489
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-22 09:22:17 +00:00
Henning Gruendl
3229c355b2 QmlDesigner: Deactivate auto complete temporarily
Change-Id: I5f76e25133f99174c6ea2e5d40f8589c384e47f3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-22 09:22:02 +00:00
Pranta Dastider
d1d23b09e8 QmlDesigner: Update Tooltips for Connections, Bindings and Properties
This patch update tooltip texts for the fields within
the Connections, Bindings and Properties sections of the
Connections view.

Fixes: QDS-10626
Change-Id: Iaf05aa8cdced051a3654ef0590cdbb36347625b6
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-22 09:03:53 +00:00
David Schulz
6728b4a550 Utils: remove unused FixedSizeClickLabel
Change-Id: I22236d922a236124debb56c67ffe44d210b01b72
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-22 09:00:29 +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
Christian Kandeler
5420f99d8f Update qbs submodule to HEAD of 2.1 branch
Change-Id: I1817cb737f2db33ad9b10be49baba37570f2c677
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-22 08:56:09 +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
Aleksei German
47ce3beecf QmlDesigner: Fix transient scrollbars in editor
Task-number: QDS-10731
Change-Id: I23f4fcabc4f39143b18918b76395489b07aed510
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2023-09-22 08:47:42 +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
Leena Miettinen
b0300ee48d Doc: Turn "Specifying Dependencies" into a how-to topic
Task-number: QTCREATORBUG-29361
Change-Id: I035ff1a99790c0af8c1abe12ab42f16411f346e0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-22 07:55:09 +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
Leena Miettinen
bd38c30759 Doc: Reorganize info on kits
Divide current topics into how-to and reference topics.

Task-number: QTCREATORBUG-29361
Change-Id: I0e64b2bbe9d4f6d403815dffe937a567eb9d4844
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-22 06:35:32 +00:00
Leena Miettinen
0ae0b84936 Doc: Edit "Specifying Code Style" and "Indenting Text or Code"
Turn these topics into several how-to and reference topics.

Task-number: QTCREATORBUG-29361
Change-Id: I8d6a7af2db7eff2c852c2cc491878ce29272b59b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-22 06:35:19 +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
Henning Gruendl
a4b1e1ccdc QmlDesigner: Deactivate layout shortcut for MCU
Change-Id: I80c247155aabae54b826e950e7c9a93ab75dfc47
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-21 17:31:39 +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
Henning Gruendl
3d1f5ba8d2 QmlDesigner: Remove layout import version
Task-number: QDS-10154
Change-Id: Ibd4dd77830010b9945731c21c34d3f0a63084bf0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-21 15:12:12 +00:00
Henning Gruendl
4cc7148f0d QmlDesigner: Disable layout context menu for MCU
Change-Id: If46a89ec138f60a58eb9f4b1336c6c4aaac796eb
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-09-21 15:12:07 +00:00
Miikka Heikkinen
15051d112e QmlDesigner: Preserve size of small asset view images
Small images get blurry if scaled up, so just show the original image
in the thumbnail if it is smaller than the thumbnail.

Fixes: QDS-10671
Change-Id: I76b5b1c5b316fb66e7df71602383b894dd7bc635
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-21 15:02:29 +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
Christian Kandeler
7a2b25ccf8 CppEditor: Move "rename" action closer to "find references"
... in the menus.

Change-Id: I5387b7024525226b70c1af484bad97228f9370c7
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-21 13:28:17 +00:00
Artem Sokolovskii
60a588215e DAP: Add Python output to Terminal
Task-number: QTCREATORBUG-28734
Change-Id: I6f8965af525286231f7ac51dcd140c1aab4b2f01
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 13:13:19 +00:00