Commit Graph

85691 Commits

Author SHA1 Message Date
Henning Gruendl
3612039365 QmlDesigner: Remove smooth from image specifics
Remove the smooth property from image specifics as it is also available
in the advanced section.

Task-number: QDS-8726
Change-Id: I842a7978e65d4578434b158340484649abe4956f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-26 12:57:21 +00:00
hjk
fbbb78ee7e ProjectExplorer: Actually instantiate the DeviceTypeKAFactory again
Task-number: QTCREATORBUG-29647
Change-Id: Ic2d29ae8d053f6526d6c5e4f4370153ab5b7d902
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-09-26 12:03:22 +00:00
Cristian Adam
ec13beff1c CMakePM: Initial import of the RSTparser
Change-Id: I45bc3d53df3358c1f52ca219b53a1dec8e85a4ca
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-26 10:43:34 +00:00
Semih Yavuz
ef88a5c3d0 designer: Fix livepreview crash
Show Live Preview can be triggered with key sequence Alt+P even if you
are not in the designer view which results in access to invalid
pointers. To fix this, replace the check in action handler with
safer isValid which checks the validity of view and initialize live
preview for valid contexts.

Fixes: QTCREATORBUG-29642
Change-Id: I9dd1741f1de2722a7ac715a2726b6effbe91529c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-26 10:30:46 +00:00
hjk
75cfa8a222 Project: Avoid a temporary in gcc toolchain autodetection
Change-Id: I4bd1ee6b63cf2e18ddd83649ee869566011b990f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-26 10:24:58 +00:00
Marcus Tillmanns
bb8961c893 CompilerExplorer: Cleanup
Split up EditorWidget constructor into member functions.

Change-Id: I4c762671263b802612a750568f608ac1823b41a4
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-26 09:57:28 +00:00
Marcus Tillmanns
6e1c9825e8 CompilerExplorer: Add python template
Change-Id: If838a2a89df98763dc424fb6285daa4699cce7ab
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-26 09:57:21 +00:00
Marcus Tillmanns
b60a4705d0 CompilerExplorer: Add wizard template
Also include "src/plugins/**/wizard.json" into .gitignore.

Change-Id: Ib0576df15af4c112a4a27101d337522db6c19f25
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-09-26 09:57:10 +00:00
hjk
9e241add5f ProjectExplorer: Remove an unused include
Change-Id: I46e5a2e3cdd4b3abc6108a8d07f35d7a4d6a51f1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-26 09:47:10 +00:00
hjk
e5f74d217b Core: Merge mainwindow and icore file pairs
So far the main window acted a bit like ICore's pimpl.
Aim at making that a bit more similar to other places.

The files are kept for now to not have to adjust #includes
all over the place and there's some hope to move code back there.

Change-Id: I150e2dd0971bfab44cba89e0c51bb3f37062b8d3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-09-26 09:41:45 +00:00
Orgad Shaneh
1c24ef6406 Welcome: Fix initial display of side area
If the main window un-maximized size is small (below the threshold for
hiding the side area) and the maximized size is large, the resizeEvent
is called twice - once with the original size, and then on show, it is
called again with the maximized size.

The second call (with the delayed QTimer::singleShot), is called after
delayedInitialize() is done, so the side area remains hidden for a few
seconds before it reappears.

The commit that exposed this behavior is 0b85fc5aa0, which changed the
expensive toolchain loading to happen in delayedInitialize.

Solve this by emitting the signal only after the widget is visible.

Change-Id: I0ad2c16a42742046da6847a5f108b797f91fabff
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-09-26 09:33:33 +00:00
hjk
4d2f3e8b01 ProjectExplorer: Merge GccToolChainFactories further
This replaces the four classes from the GccToolChainFactories
hierarchy by a single (parametrized) GccToolChainFactory, but
makes the "RealGcc" one responsible for all autodetection.

This is a hack to move closer to a "scan only once" setup, and
temporarily necessary as there is currently one factory creates
one type of toolchain, so we need four factories for the current
four gcc-ish toolchain types.

Change-Id: Icbecb1be6e89cf5efad76baf92ef38ac63be074f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-26 09:26:59 +00:00
Marcus Tillmanns
61048fa737 Utils: Add AspectList::clear()
Change-Id: Ic3e90bc76d271c1bb3b84e545fae5ba1c7a10468
Reviewed-by: hjk <hjk@qt.io>
2023-09-26 09:02:45 +00:00
Christian Kandeler
873a719174 QmakeProjectManager: Speed up project importer
Change-Id: I0cc5661f76c1d8f9182473d5f8da18452e3f85bf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-09-26 08:55:06 +00:00
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
a43191497d Utils: Fix StringSelectionAspect
Previously the undo state was not updated when the value
was set from the outside before the gui model was setup.

Change-Id: I380916f888edd120f512089bdb94762977c11978
Reviewed-by: hjk <hjk@qt.io>
2023-09-26 07:37:44 +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
Christian Stenger
8ebcd73e13 AutoTest: Provide a couple of test related snippets
Unfortunately there is no easy way to enhance existing providers
based on conditions or by extending the snippet collection with
plugin internal paths.
So, add snippets to known snippet providers.

Change-Id: I55da59389b5dc28aa27bb2974699aa4674c0bbf2
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-09-26 05:51:31 +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
Tim Jenssen
8e0e097f55 QmlProjectManager: use qmlpuppet as qmlRunCommand only at host
Change-Id: I7a8e33bdf1007f26e45514abde378ca9b6799c81
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-09-25 18:34:27 +00:00
Aleksei German
67605661df QmlDesigner: Bump MCUs version
Task-number: QDS-10768
Change-Id: I8033319eee6a5a48c02d4883a739b2dac86c521e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-25 15:56:23 +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
Marco Bubke
53e2115f63 QmlDesigner: Move the static function from ModeNode to ModelUtils
ModelNode is already quite big and there is no need add more utility
functions.

Change-Id: I5e81c320c4934fc452c05f21b3c878354f857424
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-09-25 14:22:27 +00:00
hjk
a7d2658520 Utils: Bark when encountering a default-constructed QDir::Filter
This would always result in no hits, contrary to NoFilter.

Change-Id: I22591581373eed10fb1d1f660f705992e9653d5a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-09-25 14:13:44 +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
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>
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