Commit Graph

68765 Commits

Author SHA1 Message Date
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
a8f6df546c ExtensionSystem: Restrict export of privates to building with tests
Change-Id: Ie75fbd38770c832aab443c977b8f5c34094d17c7
Reviewed-by: hjk <hjk@qt.io>
2023-09-25 13:35:35 +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
Burak Hancerli
794cb89c2a QmlProject: Fix skipping some nodes with QDS prefix
This patch also contains the test data and updated test code for the
converters to test QDS prefixed version of .qmlproject file.

Task-number: QDS-10503
Change-Id: I496ba6f3d4d3cf90e75c2959c4196f4607677ea1
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2023-09-25 12:35:49 +00: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
Miikka Heikkinen
d493563adb QmlDesigner: Change 3D grid stepping immediately on interval change
Changes in position snap interval cause visible changes, as helper
grid stepping is tied to this interval, so we notify puppet
about every change to snap interval rather than just notifying the
value when popup closes.

Fixes: QDS-10750
Change-Id: If84f79530634c81f1d17f49d21929a442ff544f1
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-09-25 12:25: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
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>
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
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
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
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
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