Commit Graph

85780 Commits

Author SHA1 Message Date
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
Artem Sokolovskii
6c93ca2e66 DAP: Add proper stack frame selection
- Fixed locals view freezing when scope is empty

Change-Id: I1e64217b061937ab66abf3508e2156e9a2c1460c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-21 13:13:13 +00:00
Marcus Tillmanns
dedfc3dbe7 Utils: Fix StringAspect ui connection
QLineEdit::textEdited is only called when the user types.
It is not triggered if the text changes due to undo/redo.
QLineEdit::textChanged is triggered for all changes.

We also have to make sure that we don't call
QLineEdit::setTextKeepingActiveCursor unnecessarily
as that would clear the undo/redo stack of the QLineEdit.

Change-Id: I19562d0804e6a34b11f19e86abd256a807e147d6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 13:01:13 +00:00
Marcus Tillmanns
4bdc023e32 CompilerExplorer: Enable undo/redo
Change-Id: I06bba06181784de07f89f01a3bfe586513d63c66
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 12:58:06 +00:00
Amr Essam
502aed8cfb QmlDesigner: Add ShaderToolsPrivate lib to effect maker plugin
Task-number: QDS-10499
Change-Id: Id9807cfc50198f29a31d22b046d89ec9485367e0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-21 12:46:56 +00:00
Marcus Tillmanns
3c5de27af4 Docker: Cleanup
Change-Id: I38a0b3177bea4276b3758a6a2ecfd24118be15e3
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-21 12:46:38 +00:00
Eike Ziller
f5a517e87a Work around issue in OptionPushButton with Qt 6.7
We want to suppress the push button's behavior to
open the menu on the `pressed` signal.
In Qt 6.7 this internal connection was changed to a
C++11 style connection to the push button's private,
so we have no direct way to remove this connection only.
Remove all connections to `pressed` (which we do not use atm)
and document the behavior correspondingly.

See qtbase/9ef16d94719b186051174d1df1d75b758f9a98c9

Change-Id: I0d50af23e80d98063da3a47713e5f59de4458819
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 12:41:53 +00:00
Marcus Tillmanns
b32643e996 Utils: Don't store widgets in StringAspect
Change-Id: Ibeabd5c933210fefede7748cdfba416ed33b27bf
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-21 12:35:56 +00:00
Henning Gruendl
f47e7d9d6c QmlDesigner: Fix transient scroll bar disappearing
Task-number: QDS-10689
Task-number: QDS-10690
Change-Id: Ib74e27f06ca24ff13f3000297c88306a7a9bb579
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-21 12:23:06 +00:00
Jarek Kobus
e753c4585c CMakeEditor: Fix unused variable
Drop a call to currentProject(), as currentBuildSystem()
already implies currentProject() isn't nullptr.

Amends a998269d7e

Change-Id: Ibf902dc78af5c59c6475366f52d0b3489e989789
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-09-21 12:05:19 +00:00
Marcus Tillmanns
84ba3c58c2 Utils: Replace BaseAspect::pushUndo
Moving the logic into Undoable::set() reduces allocations.

Change-Id: Ib4a10d1e41da8d42d66bfe9ef24a667c5bfd8c0c
Reviewed-by: hjk <hjk@qt.io>
2023-09-21 12:01:46 +00:00
Miikka Heikkinen
0fa45358a4 QmlDesigner: Always add QtQuick import when creating a new component
Fixes: QDS-10733
Change-Id: I916a7d9da82a2c28c4cef81f6777fb65728b9c2a
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-21 11:51:30 +00:00