Commit Graph

72811 Commits

Author SHA1 Message Date
Marcus Tillmanns
7daee3d681 Remove unused qt-breakpad
Change-Id: I33937cc3e50d5dd03d38c64675dc3883c816290a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-02-07 10:17:49 +00:00
hjk
ad2230b1e1 Vcs: Move VcsEditorFactory closer to its product
Change-Id: Iaf2e6bdb4f04f0f1314ca7725feb63394a693511
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-02-07 09:58:23 +00:00
Jarek Kobus
d7d6f94c86 Axivion: Optimize combobox insertion
Keep the user data outside of combo boxes.
Use addItems(), which should probably be the fastest
insertion method.

Change-Id: Iec7e3fbe551a30e6a0e477e93add9c474c7f41fc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-07 09:25:19 +00:00
David Schulz
e4191b3219 LanguageClient: correctly unassign clients documents on project close
Change-Id: I82e041e787eb7a983de28b66b6ba6589a0548e42
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-07 09:23:52 +00:00
Christian Stenger
0e47028565 Squish: Fix missing impl for add shared script
The action is present for some time, but so far it had been
unimplemented.

Change-Id: I75722282cbe08aad6656e193822a5cb517ba17b3
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-07 09:09:31 +00:00
Cristian Adam
426dbc2f94 Terminal: Escape spaces for powershell paths
For the users that have a space in their user name, the location of the
shellintegration.ps1 is a path with a space in it.

This patchset fixes the escaping of that space.

Change-Id: Iae84b2e8a8f1b4e2b7e523e28417caaeb77bc5cd
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-07 08:24:40 +00:00
Cristian Adam
03c19e81ed CMakePM: Only overwrite Qt version for autodetected CMake versions
Amends b360776b1f

Change-Id: I6c52013096f156e05b647ca4c66d1b9bf16872c9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-07 08:23:45 +00:00
Marcus Tillmanns
3ec09a1c3d Terminal: Fix powershell integration
Previously a "1" was printed every time a powershell terminal
was started.

Change-Id: Ibd6f9dc9de8ba11ede98e13ca2f65ba5a99536fb
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-02-07 08:05:11 +00:00
Marcus Tillmanns
3259b1cb25 Terminal: Fix Cwd escaping
The shellintegration script escape the current working dir.
We were missing the code to unescape the paths.

This was particularly visible on Windows powershell
where backslash was escaped by "\x5c".

Change-Id: If697722986c72ebbc19d5ec8e3930321f3af7b6a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-07 08:05:04 +00:00
hjk
a39d38d187 Vcs: Merge basevcssubmiteditorfactory.* into vcsbasesubmiteditor.*
Not worth a separate translation unit anymore.

Change-Id: I579c81c811cd84d89fd39755dca2fbeffae017de
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-02-07 08:03:26 +00:00
hjk
7da257e6c2 Core: Remove version control tests from public header
Change-Id: Ifc74b939fd8d9f1f1e4def7927ecfbef6a7fb7a3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-07 08:03:18 +00:00
hjk
8b90a2b1cb TextEditor: Use more ActionBuilder
Change-Id: I959c973012873cb8d56442cfdfc86fac5db9faa0
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-07 08:02:47 +00:00
hjk
980605ecb0 Vcs: Make submit editor setup a bit more compact
Change-Id: I14c4c51a456f7b3b04b79b63b476f89eb58d3ea0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-02-07 07:53:48 +00:00
Eike Ziller
c9ea3c6a51 OutputWindow: Add "clear" to all context menus
Change-Id: I989b15eb602d3224813510eacf020e3fdc90c650
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-07 07:52:21 +00:00
David Schulz
42c8e82b4d CMakePM: fix optional check
Change-Id: I4145b1f29a63bd69fefb0385aff92c6a23939b5f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-07 04:12:01 +00:00
David Schulz
c28e37453e Debugger: always try GetSymbolTypeId before iterating over modules
This seems to even out some of the huge lookup spikes here.

Change-Id: I594c84dfd053be5626cd1f8c423ef00c7c77f37c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-07 03:59:04 +00:00
Cristian Adam
86b6d852b4 CMakePM: Allow CMake peset kits refresh without configuring first
This allows the user to reload the presets kits after editing
CMakePresets.json without configuring the project first.

Fixes: QTCREATORBUG-30238
Change-Id: Id448dd8e821591f6357ec9618f114733c13a3121
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-06 18:23:51 +00:00
hjk
c06dfdb237 ProjectExplorer: Move plugin unit tests definition to new class
This removes it from the central public header.

Change-Id: Icf1c552f9136a2e262e1bc48ae164b2fdd8edc79
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-06 17:17:59 +00:00
hjk
48d47faa4b Vcs: Rename VcsBasePluginPrivate to VersionControlBase
The classes derived from this had a dual role of implementing the
version control interface (IVersionControl) and as the plugin pimpls.
The name was focusing on the latter, but plugin pimpls are being phased
out in the new 'setupFoo()' world, so only the version control interface
part remains.

Change-Id: I60396f1729c736bc6c9e4fca250a5926e9d60f51
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-02-06 16:34:44 +00:00
Miikka Heikkinen
c5f86ea0b5 QmlDesigner: Implement effect item visibility handling
Now effects made with effect composer can be hidden/shown using
visible property.

Fixes: QDS-11786
Change-Id: I44782246adfa3ba3cd0a8203fa67b3f5412535f7
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-06 15:22:27 +00:00
Jarek Kobus
cf50a2d230 QmlDesigner: Compile fix against C++20
Move the initialization of the traceToken into c'tors.
Otherwise, the following error occurs:
internal compiler error: in assign_temp, at function.c:986

Change-Id: I20abfbf70e01fc6268ae6d4245272ef3a89daed5
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-02-06 15:17:31 +00:00
Jarek Kobus
947eaccea8 Various plugins: Fix remaining C++20 warnings about [=] captures
Change-Id: I3aab5f6fac0d30ff7e31dc524d2f42565b80bdb0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-02-06 13:08:30 +00:00
Marcus Tillmanns
d5c5e612d1 Aspects: Fix ValueAcceptor handling
Previously returning std::nullopt from a StringAspect::ValueAcceptor
would not cancel the change.

Change-Id: I7a329f9fe32f6d798c10102a0b68dcd638fb2398
Reviewed-by: hjk <hjk@qt.io>
2024-02-06 11:17:49 +00:00
Jarek Kobus
b6a6480084 LookupContext: Replace QSharedPointer with std::shared_ptr
According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews
QSharedPointer impl is poor and it's going to be removed from Qt 7.

Change-Id: Ia7ec4b427c5971d6bd375659b291a9aad2ead253
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-06 11:03:16 +00:00
hjk
a1cc8551cc Core: Add a ActionBuilder::bindCommmand()
Useful for unnamed action builders that want to give access to their
command to outsiders.

Change-Id: I71ba40776eee1d2eaeeded7c2b912c8e1d07f466
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-06 10:24:45 +00:00
Jarek Kobus
8bcc78a044 Various plugins: Fix some more C++20 warnings about [=] captures
Change-Id: If20aac4320c84096a07d67cc137886638286acf8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-02-06 08:34:44 +00:00
Andre Hartmann
97e582c3c0 Git: BranchView: No "Add..." action for remote branches
It has been wrong forever, but it just doesn't make
sense to have an add action for remote branches.

Change-Id: Ia9a96d85f95821f27215e0a172435f38abcd685f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-02-05 17:27:14 +00:00
hjk
fb609817bf CppEditor: Move some factory class definitions to .cpp
Change-Id: Icceae7f93ac52fe371813608ecec0de1feed317b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-05 17:08:43 +00:00
Jarek Kobus
6744c1e69c FunctionDeclDefLinkFinder: Replace QSharedPointer with std::shared_ptr
According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews
QSharedPointer impl is poor and it's going to be removed from Qt 7.

Change-Id: I41b753f52d06bb35988d1a57478e06daaec04f31
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-05 16:57:28 +00:00
Jarek Kobus
2f81936218 CppElementEvaluator: Remove not very useful method
Change-Id: I73545f6366e0f8ca856e15dc4ea28603351a93f1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-05 16:57:21 +00:00
Jarek Kobus
90c227b034 CppElementEvaluator: Replace QSharedPointer with std::shared_ptr
According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews
QSharedPointer impl is poor and it's going to be removed from Qt 7.

Change-Id: Id82e0908f4084e06531bba47f4f17138e5878f3e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-05 16:40:14 +00:00
Andre Hartmann
d3385ebb65 Git: Branchmodel: Fix fetching all remotes at once
We want to return an empty string when "Remote Branches"
is selected, instead of an empty optional.

Broken by 224e4eeb59

Change-Id: I5af06fafec48910226fdedf4a15079444cc54b6e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-02-05 16:37:59 +00:00
Knud Dollereder
8b97598011 QmlProjectManager: Add new cmake generator
Automatic cmake generation can now be enabled by setting
the qmlproject property enableCMakeGeneration to true

Change-Id: I98523a9479d0cd812e43a9bd0b700120358260f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
2024-02-05 16:21:24 +00:00
Marcus Tillmanns
78d42d2d54 IOS: Don't save default values needlessly
Change-Id: I127ee409f6bb0011704fcb08ef720a71fd084a16
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-05 15:28:36 +00:00
Jarek Kobus
813961babb ProgressManager: Replace QMap with QHash
The key is a pointer, so use QHash.
Simplify some lookups.

Change-Id: I58245193e9a94bca0629cced057ba1465214d812
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-05 15:22:12 +00:00
Jarek Kobus
dc0a1bd3f3 DocumentModel: Replace QMap with QHash
The key is a pointer, so use QHash.

Change-Id: I95de27642be2b1b595247def9c800f1e349eca62
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-05 15:22:01 +00:00
hjk
705dba388f Core: Simplify Cycle Mode Selector Styles action setup
... and remove unused m_saveAllAction member.

Change-Id: If6ebb448b68c5ed776b9ed7eda872321723cc48f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-05 15:19:06 +00:00
Eike Ziller
727de45687 FancyLineEdit: Fix too large icons
When we ask QIcon for a pixmap, we should afterwards respect the
resulting pixmap's devicePixelRatio, regardless of what we requested.

Task-number: QTBUG-121764
Change-Id: I289823f7d1a5ae1e341a78cc7ce3ff897be092f3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-02-05 15:18:38 +00:00
Ali Kianian
c58efc4310 QmlDesigner: Implement new data store structure for Model Editor
Task-number: QDS-11778
Change-Id: Ia98fee976e5d81acc608b6209da270cbee2f9c61
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-05 15:15:11 +00:00
Jarek Kobus
9eca0b7c5b TaskTree: Remove unneeded nullptr from RuntimeTask's initializer list
Get rid of Q_DISABLE_COPY, as copy c'tor is implicitly deleted
anyway because of std::unique_ptr<> field.

This should fix the issue when compiling against C++20,
where the aggregate initialization is disabled for classes that
declare any c'tor, including "= default" or "= delete" declarations.

Change-Id: I9b08fd9c35ce91f8e7368995105f04b98f010c07
Reviewed-by: hjk <hjk@qt.io>
2024-02-05 14:34:13 +00:00
hjk
324d0f7271 Git: Also show binary path in the settings
More similar to svn, cc, bzr, and Gives the user a chance to specify
something different. Plan is to make this also work with remote setups
[and possibly a per-device option, or automatism]

Change-Id: I18c1a90642c9cbe2ef9419103f3919c4a19122e5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-02-05 14:19:08 +00:00
Miikka Heikkinen
ca9e72fe6c EffectComposer: Delete obsolete resource files at effect save
If a new version of same effect is saved, remove files that are
no longer part of the effect from the effect import dir after the save.

Fixes: QDS-11737
Change-Id: Iae4da39f9f4713c2e26f1b90263881c8c9e13d78
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-02-05 13:41:21 +00:00
hjk
89896698fe Debugger: Drop explicit (re-)expansions that are done by aspects now
Change-Id: Iae7d07db09642614620cc80658e08a7e900b57aa
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-05 12:08:17 +00:00
hjk
d6e7290df8 Utils: Expand strings in StringAspect
When needed. Take a short cut on empty strings which can't have macros.

Change-Id: Icc2fb8f001da6be7a9dfec73951d9ac14d2f356f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-05 12:08:01 +00:00
Dominik Holland
943d5bb208 RemoteLinux: Add a fallback option when killing the process group
Using the pid as the process group only works when the process created
it's own process group, which depends how it was started.

If no matching process group exists, kill returns with an error code
and we can try to kill the process itself using its pid instead.

Change-Id: I3ef775458edfb06c02b4445e079badd3ade691a6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-05 12:06:26 +00:00
Dominik Holland
6112bbd990 SshProcessInterface: Fix sending control signals
For QDB devices make sure to only use `appcontroller --stop` when the
process was also started with the appcontroller.
Otherwise fall back to the SshProcessInterface implementation.

Change-Id: I482f7ac9783f57eb8d85bb2b536ff00d428a2c3f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-05 12:06:06 +00:00
hjk
4b7b04cb73 CppEditor: Move some items from cpptoolsettings to cppeditoroutline
These are only used once.

Change-Id: I7b6ca19ba1ef483d1e4cae34661e7d78e72eff67
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-05 10:53:42 +00:00
Christian Kandeler
05d9e50aff ProjectExplorer: Check full ABI, not just word width
... when choosing the default MSVC for clang-cl.

Fixes: QTCREATORBUG-30060
Change-Id: I59c4e7dbf227596cbd57c5421eb5a3da7a16c0a0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-02-05 10:44:13 +00:00
Eike Ziller
220237d029 Merge remote-tracking branch 'origin/12.0' into 13.0
Conflicts:
	src/plugins/ios/iosdevice.cpp
	src/plugins/texteditor/bookmarkmanager.cpp

Change-Id: I92931f29c3992054dac84dbfa2dfc0c1bfb31430
2024-02-05 10:52:42 +01:00
hjk
b5b87cbd12 CompilationDataManager: Fix position of main action in menu
Amends 56f9493445.

Change-Id: Ia00f25dab559422500b1287643cce7a7a6730ee4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-05 09:12:17 +00:00