Commit Graph

88653 Commits

Author SHA1 Message Date
Amr Essam
02abf29fa5 QmlDesigner: Complete shaders baking for effect maker
Also add versioning support

Task-number: QDS-10499
Change-Id: If75222e3569d361b0d7bece70867e4020132c1bd
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-09-25 10:03:59 +00:00
Marco Bubke
533f743edc QmlDesigner: Fix warning about missing move constructor
Change-Id: I79b2e7cc79ea3b6172133dfd07222451951249c6
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-09-25 09:15:40 +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>
v11.0.3
2023-09-25 07:42:26 +00:00
Marcus Tillmanns
9923992755 Utils: Fix nullptr check in StringAspect
Change-Id: Ibf649c7a00c9cc1ec778590c3c6b64bea9ad552a
Reviewed-by: hjk <hjk@qt.io>
2023-09-25 07:29:30 +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
Eike Ziller
424ef68bd2 main: Warn if -installsettings points to a path without settings
Especially confusing is that the "QtProject" part must be omitted, so
include that information in the warning.

Change-Id: I4214502fd045b0e13a55c50fa036194dec6dab35
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 07:13:41 +00:00
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