Commit Graph

89152 Commits

Author SHA1 Message Date
Christian Kandeler
d635151c0b Wizards: Bump default minimum Qt version for new QtQuick projects
Fixes: QTCREATORBUG-31168
Change-Id: I5a4411bcce348c89151fc2a193f8d19dc00343ef
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
(cherry picked from commit 0142d59258)
2024-07-01 14:32:35 +00:00
Christian Kandeler
0142d59258 Wizards: Bump default minimum Qt version for new QtQuick projects
Fixes: QTCREATORBUG-31168
Change-Id: I5a4411bcce348c89151fc2a193f8d19dc00343ef
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-01 14:19:21 +00:00
hjk
62ebdfd406 ExtensionManager: Make remote repo access optional
Off by default.

Change-Id: Ib27fa134f095be7c923cc4ce41ef4e2f6ec01ff0
Reviewed-by: hjk <hjk@qt.io>
2024-07-01 14:10:30 +00:00
Alessandro Portale
7fb28d6bdc Mode icons: Update Welcome, Edit, Project and Build icons
- New house/Welcome
- Pen/Design points to bottom left
- New wrench/project without circle
- New hammer/build with attached handle and rotated 45 degrees

Task-number: QTCREATORBUG-31080
Change-Id: I97499ead9e097d523c36d9b08a4b65240e3a5042
Reviewed-by: hjk <hjk@qt.io>
2024-07-01 14:08:21 +00:00
Marcus Tillmanns
ab493600ee Lua: Fix meta name
Change-Id: I81a70bc8a010a53e9a741e7dea0710e8b2525205
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-01 13:52:54 +00:00
Leena Miettinen
b6f253548f Doc: Describe the "Use SSH port forwarding for debugging" option
... in Preferences > Devices for a Remote Linux Device.

Add links between developing for remote Linux and debugging
remotely with GDB.

Task-number: QTCREATORBUG-30604
Change-Id: I149447ce5e30409452c203fecc41417822a3d8b2
Reviewed-by: hjk <hjk@qt.io>
2024-07-01 12:58:28 +00:00
Leena Miettinen
e8c32fe472 Doc: Omit "native" when discussing debuggers
Also avoid talking about "debugger plugin".

Change-Id: Iba60f8ad9c655812b6a48e38c1523ddce4f8dcb6
Reviewed-by: hjk <hjk@qt.io>
2024-07-01 12:58:17 +00:00
David Schulz
2ef07ef02d LanguageClient: show number of children in call and type hierarchy
Change-Id: Ia4b0d651992d6a17b1adb73624eb8cec4de2f7e9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 12:51:20 +00:00
Christian Kandeler
f175ec933f ClangFormat: Fix build with current LLVM main branch
Change-Id: I27b3fb41091aeeeda0bdb4786d8f1793beb0376f
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-07-01 12:24:22 +00:00
Christian Kandeler
2a313f45c9 CppEditor: Fix mistakenly inverted condition
Introduced in f09a694cfc

Change-Id: I1983c9258ab3fc4f924580f759193d786bb24f2e
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-01 12:14:11 +00:00
Christian Stenger
315e08a684 Core: Fix painting custom delegate
Fixes: QTCREATORBUG-30775
Change-Id: I553f6e095353765756597fe2d6014fe7a2fa8046
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-01 12:10:34 +00:00
David Schulz
ccdc293697 Editor: remove TextDocumentManipulator
Change-Id: Iacd7cd40ace77c79eecca3e4e699eb308d0c27de
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-01 11:49:07 +00:00
David Schulz
9ad0a5a641 Editor: reduce complexity of TextDocumentManipulator
Move implementations either to the TextEditorWidget, TextDocument, or to
the caller side. This makes the TextDocumentManipulator basically a
repeater so we can easily replace it with a TextEditorWidget in the
next step.

Change-Id: I04de3cb295b56fbaae99145f8e579fe405b065a5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-01 11:49:02 +00:00
Christian Kandeler
f09a694cfc TextEditor: Move TextDocument::setIfdefedOutBlocks() to CppEditor
... where it belongs.

Change-Id: I4e7f344ed2d4af626965cf1f8a318de56a03a8bc
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-01 11:45:58 +00:00
Eike Ziller
476401aa0c JsonWizards: Fix wizards for Design Studio
Let Design Studio directly change the location where the pre-installed
wizards are located

- clearing wizard paths to set a new one is call order dependent and
  therefore fragile (as can be seen)
- it doesn't really make sense to prevent user templates

Also fix addWizardPath, even though it is then no longer used in our own
code.

Amends 3249b106e5

Change-Id: I404387aea1bc85aef5f229e6699bd9802b218e65
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 10:58:53 +00:00
David Schulz
c9b74decc2 TextEditor: fix unindent on backspace for mixed multi text cursors
Fixes: QTCREATORBUG-31158
Change-Id: I141e01f51531dffee10835c74370d2df11c3fcc7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 10:20:14 +00:00
David Schulz
3f318fe628 TextEditor: collect tab and typing settings only once
... and not for each cursor in a multi text cursor when handling the
backspace key.

Change-Id: I1e6b9409163306ee665f4519afe11cb87997c270
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 10:20:07 +00:00
Eike Ziller
0283b81392 Merge remote-tracking branch 'origin/14.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs

Change-Id: If39fe80197537c489361810e91ee221c6c52ea01
2024-07-01 12:01:27 +02:00
Cristian Adam
4125bc94d1 GitHub Actions: Only upload one release.md
actions/upload-artifact@v4 complains if you try to override an existing
artifact.

Restrict only for one runner.

Change-Id: I0a8a8cd0fcdf34dc956de175eeb4c33b40ce1a8d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-01 08:24:17 +00:00
Alessandro Portale
c954b75672 Mode Icons: Make "Play" triangle less squeezed
Play icons usually are equiangular, i.e. not squeezed. This unsqeezes
the new play triangle.

Task-number: QTCREATORBUG-31080
Change-Id: I7243253255a015e78bf87bce273c2381dd96ee1b
Reviewed-by: hjk <hjk@qt.io>
2024-07-01 06:48:04 +00:00
Leena Miettinen
0afe7caaeb Doc: Mention that perf profiling is supported for app manager apps
Task-number: QTCREATORBUG-30604
Change-Id: I32353849a64459244ccda60ac986b52bbe9813f1
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
2024-07-01 06:47:29 +00:00
hjk
af4da1277d AutoTest: Some code cosmetics
Change-Id: I568194134bbd84f517f27a31a440f1061f91e971
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 06:25:37 +00:00
hjk
9671c426e4 QmlJsEditor: Code cosmetics in qmljseditordocument.cpp
Change-Id: I915fbabaefcc018f2fa5211f8d09da8136b446ce
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 06:24:47 +00:00
Eike Ziller
e867f9ef11 Welcome: Fix the order of Qt versions for examples
There are two sources for examples: Qt versions directly, and "example
sets", which are just a tuple of display name, documentation path,
examples path.

The Qt installer registers an "example set" for Qt versions, so to avoid
duplicate entries we match Qt versions to example sets, if found. This
destroys any order the Qt versions might have been in before.

Order the results by Qt version (and other sets last) by first creating
all the items regardless of origin (noting their Qt version in the user
data), and sorting them before adding to the model.

Also use constants for the different user data fields.

Fixes: QTCREATORBUG-31108
Change-Id: I827be892a3abe17fa6afcd3c6f39bf225f7af494
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 06:05:39 +00:00
Alessandro Portale
105be75c07 ExtensionManager: Fix host_os field for extension service request
The used QSysInfo::productType() provides various code/distribution
names which in some cases have little to do with the "host_os" that is
expected by the extension service API.

This change involves osTypeToString to instead return plain OS names.

Change-Id: I24b8070342c1de9de9040adcf5e06be967b6a180
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-01 05:27:00 +00:00
Cristian Adam
ee54b2cfca Terminal: Remove TOO_OLD_WINSDK check from libptyqt
Qt Creator will always use newer Windows SDKs, as we require at least
Windows 10 1809.

The define for TOO_OLD_WINSDK was done arbitrarily and broke
(LLVM-)MinGW builds.

Change-Id: If8e1fd4e0e3615bda23483877e67988ca04ea9f7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-29 07:31:27 +00:00
David Schulz
9d8dc1d056 Debugger: remove put item code from cdbbridge
unneeded nowadays

Change-Id: I8e7d46f7344157459e86cbea95563194a579cd6e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 13:22:21 +00:00
David Schulz
b245912b56 Debugger: merge put array code from cdbbridge into dumper base
Basically the same. Only the type lookup of the inner type needs to be
avoided for performance reasons.

Change-Id: I2747ab44c23b764482b4a063d3618fae2e3c4d46
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 13:22:17 +00:00
David Schulz
9733957862 Dumper: merge put pointer functions from cdbbridge into dumper base
And remove the now unused DumperBase.Type.targetName helper function. We
can use the typeId nowadays for this. This reduces duplicated code and
simplifies adjustments in the base implementation without breaking the
cdbbridge.

Change-Id: If76297b83f088d98493c6f5aceea8fa93093e42e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 13:22:11 +00:00
Eike Ziller
06a01d56a5 Bump version to 14.0.0-rc1
Change-Id: I09803077f7387a2ace85a074498c9f503a7d190a
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-28 12:35:35 +00:00
Christian Kandeler
d79d4f2527 ProjectExplorer: Optionally deploy dependent projects
... rather than just building them.

Fixes: QTCREATORBUG-27406
Change-Id: I5ddbb9ee4a05c6843bd78cf01746c57c6cacda3c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 10:25:17 +00:00
Marcus Tillmanns
691c4adeec GoCmdBridge: Add golang based command bridge
Change-Id: I3b791febafc09f897afbf6d9da999deeca6f5115
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-06-28 09:44:23 +00:00
Burak Hancerli
e311a3bf61 QmlProjectManager: Fix main qml file path and duplicate signal connection
Task-number: QTCREATORBUG-30685
Change-Id: I3d3a0d1bee85b56e43b8bb2e591aa56528554e06
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 08:15:54 +00:00
Leena Miettinen
5308b11fd2 Doc: Describe new testing preferences
- Timeout can now be turned off and on
- Limit Files to Path Patterns adds filters for scanning
  for tests

Task-number: QTCREATORBUG-30604
Change-Id: Ia0ab109c2dd2958804fea6f6faa1eb9a80377fe3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 08:07:08 +00:00
hjk
cdf8d79adb QmlJsEditor: Partially aspectify settings
Only the non-gui part for now.

Change-Id: I97e59f6cb251bfb1be4dd88cc2c2f9c2e71ce219
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 07:50:29 +00:00
Christian Stenger
37a061aabc Debugger: Add comment for revert
Amends 2364448f91.

Change-Id: I1b34c7b69c0817460d20c8ea892bdc54d7658e4a
Reviewed-by: hjk <hjk@qt.io>
2024-06-28 07:46:01 +00:00
hjk
878d4c74b7 LayoutBuilder: Add object guard in slot
Change-Id: I1912c206f5056cb19a8a7b73cfbe4dfd45978a2a
Reviewed-by: hjk <hjk@qt.io>
2024-06-28 07:35:15 +00:00
hjk
803c068c30 QmlJsEditor: Merge LS settings files into main settings file
Collecting relevant pieces in preparation of settings aspectification.

Change-Id: Ia221de3babf301f4f5d3583d346eeb9f91046aa4
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 07:12:50 +00:00
hjk
66853bacf7 Git: Fix two QMultiMap deprecation warnings
#if QT_DEPRECATED_SINCE(6, 0)
    QT_DEPRECATED_VERSION_X_6_0("Use insert() instead")
    iterator insertMulti(const Key &key, const T &value)
    {
      ....

Change-Id: I94c79e16776775b6b2032113e690e73b63a03dc9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 07:12:26 +00:00
hjk
68adb2c086 Debugger: Enable another dumper test for LLDB
Passes nowadays.

Change-Id: I616f989c23b16a1a89d24461480dd676ce62bccd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 07:12:16 +00:00
Eike Ziller
38e005692e Plugin meta data: Add full stop to descriptions
Where they were missing. The text is shown as a paragraph in the
extension manager.

Change-Id: I6e15c89fe4023b222e9c476f4312e13fcb0905c0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-28 06:46:52 +00:00
Christian Stenger
5333082054 Debugger: Silence soft assert
Amends c83a0be72d.

Change-Id: Idb62b20af8052ee7d20f7df2c82125cd12e26738
Reviewed-by: hjk <hjk@qt.io>
2024-06-28 05:26:41 +00:00
David Schulz
2364448f91 Revert "Debugger: simplify interrupting windows processes"
Ctrl+C events are only handled properly for console applications. When
gdb debugs a GUI application the CTRL+C events are not handled. This can
be even reproduced with a plain gdb started from CMD.

This partially reverts commit 9d88da6c2b
and 670b4ec729.

Fixes: QTCREATORBUG-31131
Change-Id: I11c9d9dc08b4dbe450f38e27559b130dd317b675
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 05:14:33 +00:00
Christian Stenger
0dfe7213eb ExtensionManager: Fix qbs build
Amends 6ffe1a8061.

Change-Id: Ibb35fe606f25bd1e1b7a5d457062299f50f80af1
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-28 05:05:44 +00:00
Cristian Adam
4f4c90f8b0 ExtensionManager: Fix compilation error
Amends 5960bb33ef

Change-Id: Ib20b537791001317a65ee5c63d39cc2775b6ecb0
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-06-27 17:29:19 +00:00
Cristian Adam
b5d6348b67 CMakePM: Update initial CMake variables also on failed CMake runs
A failed CMake run configuration could be the result of an compiler
update which then would cause CMake to fail.

Make sure to offer an upgrade path to the new Kit compiler values.

Change-Id: Ibabeb853259e23fe012d8b00e3d48979deee61a5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-27 16:01:35 +00:00
Cristian Adam
af7382fee8 CMakePM: Fix compiling projects upon MSVC Compiler/Linker update
Visual Studio is getting a fair number of updates. This involves also an
update of the Visual C++ toolchain.

This implies changing directory paths from "MSVC/14.39.33519" to "MSVC/
14.40.33807".

The linker "link.exe" is also stored in the same directory as the
compiler "cl.exe".

This commit makes sure that the linker also gets updated, not just the
compiler.

Change-Id: If8cd6e716604bc948ec8990921a14425ebcc7c30
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-27 16:01:28 +00:00
Cristian Adam
e2be8f9d16 CMakePM: Fix having duplicate CMAKE_CXX_COMPILERS entries
Do not apply the changes directly to the model, cache and then apply at
the right time.

Fixes: QTCREATORBUG-27005
Change-Id: Id099f21196900cd0e9787ac27887f2eec36f8045
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-27 16:01:19 +00:00
Cristian Adam
3572fdce03 CMakePM: Fix Qt SDK Kits when ninja is missing
Qt SDK is setting "Ninja" as default generator, make sure to get a
working generator when CMake is newly registered as a default tool.

Fixes: QTCREATORBUG-31129
Change-Id: I6b93a8904696eedadec04c882495c644db7ddce7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-27 16:01:11 +00:00
Alessandro Portale
5960bb33ef ExtensionManager: Draw icon of disabled items with less intensity
Since recently, the green background is used for enabled plugins and
grey is for disabled ones. With that change comes the requirement to
draw the icon for disabled icons with less intensity, to make it really
appear disabled.

I took this opportunity to unify the drawing of small/big enabled/
disabled pack/extension icon variants in a central helper function.

Change-Id: Ia68218c774ccb8e9e7ed48620ac36f4bca0724fd
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-06-27 15:23:26 +00:00