Commit Graph

82976 Commits

Author SHA1 Message Date
Eike Ziller
a490625394 Merge remote-tracking branch 'origin/11.0'
Change-Id: Ie4b1f249d1a5b7835022f367ee6b1c8a3c953f0b
2023-07-04 12:57:47 +02:00
David Schulz
81e8c67686 Utils: add convenience function to ChangeSet
Creating a QTextCursor just for the ChangeSet gives no benefit for the
calling code, but reduces the readability.

Change-Id: I34acb6083b6f7ab54fce042e29cd6e80498338ef
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-04 10:46:40 +00:00
hjk
e1c97d4e47 Debugger: Remove some path mapping
This reverts 67607e4bc6, which seems
not needed anymore.

Change-Id: I7c995fc158bb26acf3b4a8ad4b810fa427fcf009
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 10:35:02 +00:00
David Schulz
4eceb76bd5 ClangTools: remove unused function
Change-Id: I7551f30b6b9c925290837f53b9ad4ceca66b5fab
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-04 10:33:16 +00:00
hjk
9f44032840 QtSupport: Use better value for remote QTDIR env variables
It does not really seem to be used in earnetst anymore, but
it shouldn't contain the scheme://host decoration.

Change-Id: Ieba416e0a73d247d80d1c5cce79858b1896e13ea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-04 10:30:37 +00:00
Jarek Kobus
5aa3e6655c IosRunner: Do some cleanup
Move some public methods into private section.
Remove unused / no-op functions.
Make some functions const.

Change-Id: Iffcac68aef12db939bfc60b3a01272cf07c67c89
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-04 10:17:06 +00:00
Eike Ziller
0c31474ed3 Wizards/CMake: Make sure GNUInstallDirs is included
Qt 6.4 automatically includes GNUInstallDirs, but before that it didn't.
And for the "plain" projects Qt isn't even used. Since the project
templates use CMAKE_INSTALL_LIBDIR etc, they must ensure themselves that
these are actually available.

Fixes: QTCREATORBUG-29067
Change-Id: Id304b829301a33720d8f6c4a9c89157e8fc1c4a9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2023-07-04 09:29:20 +00:00
Christian Kandeler
3f61223c0f CppEditor: Adapt some test data
... so that the tests pass with both the built-in indenter and
ClangFormat.

Change-Id: I0f870c507dabd80ccfc35f1d3021b2ddabe422d2
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 08:39:51 +00:00
Christian Kandeler
20cb9b6e69 ClangCodeModel: Do not call FilePath::exists() on random strings
Fixes: QTCREATORBUG-29356
Change-Id: I6f4d89a6823829a7ecf16200786621321fea61a5
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-04 08:36:40 +00:00
Leena Miettinen
7977d3ac37 Doc: Update Copilot docs
- Update screenshot
- Add disclaimer
- Describe rejecting suggestions

Task-number: QTCREATORBUG-28996
Change-Id: I5b30c8f8760f5684e31beb534754d03684d3c394
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-04 07:29:54 +00:00
Jarek Kobus
c1f6d70445 RunControl: Remove initiateFinish() / finished()
The only difference between initiateFinish() and initiateStop()
is that the initiateFinish() deletes the RunControl automatically
after the final state was reached.

Add setAutoDeleteOnStop() property and reuse initiateStop()
and stopped() instead.

Change-Id: I8e842978831b19587a8658b4443c96a04eb7a6df
Reviewed-by: hjk <hjk@qt.io>
2023-07-04 07:29:23 +00:00
hjk
418482b3e2 FakeVim: Assume UTF-8 for source also on Windows by default
... but make it configurable.

Fixes: QTCREATORBUG-29320
Change-Id: Ib377c78e51afb7d06167c66306250a281aa9279c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-04 07:05:43 +00:00
Christian Stenger
acad4b6b2e AutoTest: Improve QRegularExpression usages
Use static const if possible to avoid re-initializations.

Change-Id: Ibee9e320dccb90cd928737b809db3b56369961ec
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 06:59:50 +00:00
Christian Stenger
a85d7ef538 AutoTest: Avoid some unneeded fetching of snapshot
Change-Id: I002b3537c2f1b468c52b08017e30efd4c969aeb2
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 06:59:44 +00:00
Christian Stenger
91bdbb61ec AutoTest: Avoid some snapshot copies
Change-Id: Idc57027029c0f399a031bc716b9cba731cb34590
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 06:59:38 +00:00
hjk
1d1eb9c3a2 Templates: Use C++17 compact namespaces in the plugin template
Change-Id: If4c8540e4d1d9b42efcd1c039c28f85bd0fb98fd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-04 06:52:07 +00:00
David Schulz
b721d98476 Editor: optimize annotation cache cleanup
Looking up the last visible block is not for free since it calculates
the bounding rects for all blocks between the first and last visible
block. Avoid one calculation by postponing the annotation cleanup after
the paint event and only if we reach a certain amount of cached entries.

Change-Id: Ibfab49301f82237e16d5a69ce1531539907e7ed8
Reviewed-by: hjk <hjk@qt.io>
2023-07-04 06:41:09 +00:00
Eike Ziller
cedd37fc01 COIN: Use https
because http is now broken for master.qt.io.

Change-Id: I861e86e7a1f345a2810883b707d9392b101516d3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Patrik Teivonen <patrik.teivonen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-04 06:05:40 +00:00
hjk
1e6eb1ba28 RemoteLinux: Un-publish MakeInstallStep
... and move definition into .cpp.

It is by now only needed there, and we don't want to encourge
re-using bits and pieces of step implementation by inheritance.

Change-Id: I12899c5e6a6c94cc9cfb23a2756621a4213f5dae
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-04 05:26:17 +00:00
hjk
f2aaf68b0c ProjectExplorer: Use FilePathAspect(s) in ExecutableAspect
In the read-only case, make it look like the previously used
StringAspect with LabelDisplay.

Change-Id: Ica76c1ba23bf9b3946c227e303cc1336f3f8d5b4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-04 05:23:24 +00:00
Christian Stenger
e38cd151cf AutoTest: Make scan thread limit customizable
Allow users to specify the tread limit used when scanning
for tests.
By default we continue to use a fourth of the available
logical CPUs.

Task-number: QTCREATORBUG-29301
Change-Id: Ic92a4d0908093c0664aa1ba924e0c17dfd0082f9
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-04 05:20:48 +00:00
Christian Stenger
a213de7a50 AutoTest: Fix seed ranges
Tweak the default range of 0..99 resulting from using
a QSpinBox to some wider range.

Change-Id: Id1a64e283bee96d31df8bbad2f6e8039675df817
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-04 05:19:34 +00:00
David Schulz
56772fbcc6 ClangTools: filepathify replacements
Change-Id: I22b6f4786cda39c79cf332dba4a6a7952fd5c8b7
Reviewed-by: hjk <hjk@qt.io>
2023-07-03 16:56:22 +00:00
David Schulz
3c051a8b88 LSP: remove unused functions
Change-Id: I56d4fbe09897b920e9a987ceb081f1da6c1706bc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-03 16:56:10 +00:00
Marco Bubke
c572855b95 Utils: Use _cpp_lib_constexpr_string to test for constexpr std::string
Seems not all compiler already implemented constexpr std::string.

Change-Id: I588ef56767125a38fd80d0798ea954c11c8f6237
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-07-03 15:58:16 +00:00
Jarek Kobus
3f6dcf6ad1 RunControl: Remove unused isStopping()
Change-Id: Ib294a3728bbd106665dc237623deff7ee8cd4bd5
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-03 15:16:44 +00:00
Tasuku Suzuki
6e59fa4305 Remove unimplimented method declaration
Change-Id: Idea9e31ccca7de4a00a8cd9cde5c40491ae1dcbc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-03 15:00:38 +00:00
Leena Miettinen
db140d7d57 Doc: Update screenshot of Axivion issue count view
Task-number: QTCREATORBUG-28996
Change-Id: I1a54a8d299dfde44082f155977fff80d7e93a83a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-03 14:59:33 +00:00
hjk
f38d08fc42 Qmake: Rudimentary support for prompt() in .pro file
This is good enough to open Qt5's toplevel .pro, but not much more.

Ideally, prompt() should not be used in files that are meant to
be used non-interactively.

Task-number: QTCREATORBUG-18220
Change-Id: I842d3c1a8c742d55cbe89a8d0980f34d179ec011
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-03 14:17:09 +00:00
Robert Löhning
c654e389c6 SquishTests: Update repository of Creator's sources to v6.0.1
6.0.1 was released on Qt 6.2 and was the last
version which could be built on Qt 5.14.

How I got to this:
0. Verify on Linux that the test passes with qbs 2.0.2
   from Creator 10 to have a combination which is known
   to work correctly.
1. Upgrade sources to v6.0.1 and write the tree which
   qbs 2.0.2 and Creator 11 generated from those.
2. Run the test with qbs 2.1.0 and Creator 11 and update
   the expected tree. This only meant removing a couple
   of lines.
3. Verify on Windows that the test passes with qbs 2.0.2
   from Creator 10 to have a combination which is known
   to work correctly.
4. Upgrade sources to v6.0.1 and write the tree which
   qbs 2.0.2 and Creator 11 generated from those. Remove
   all lines from the expected tree which were not found.
   Most of those contained forward slashes instead of
   backslashes.
5. Verify that the result passes with qbs 2.1.0 and
   Creator 11

Change-Id: I41579feb719324cf1fc605c73fe1d7566cf82202
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-03 14:08:17 +00:00
Robert Löhning
015b2f14fb SquishTests: Update expected tree of tst_opencreator_qbs
Disclaimer: I don't know why all those lines disappeared from the
tree. I only removed the lines which are not being found anymore
and updated a few more.

Change-Id: I916362247022b2ea84f5fa4255c6df6585311271
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-03 14:07:17 +00:00
Robert Löhning
eab484717b SquishTests: Configure Creator's sources on Qt 5.14
Change-Id: I973a34e16630050a500db70986a653c102a79da2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-03 14:04:58 +00:00
Orgad Shaneh
ce082bb09f Terminal: Simplify OpenTerminalParameters construction
Change-Id: I4dcc2146f227e4a408c88de62f7594953c8ccb66
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-03 13:30:43 +00:00
Jarek Kobus
d222cc2dbd AndroidRunSupport: Remove unneeded overloads
Change-Id: Id6a8a5a387acb4f33752ad61ab27893a138bac9b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-07-03 13:30:38 +00:00
Marcus Tillmanns
57ff63bb96 Device: Don't cache qmlRunCommand
Caching makes the settings page less snappy.

Also fixed searching for qml runtime if not set in
QmlProjectRunConfiguration

Fixes: QTCREATORBUG-29341
Change-Id: Ia3ce72f3e3b857a857f706694794304dcbf1793c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-07-03 12:25:40 +00:00
Henning Gruendl
d2425f6e12 QmlDesigner: Fix states editor object name
Fix setting the states editor object name on the QQuickWidget instead
of its QWidget.

Change-Id: I90cfa5d312c04eafa95eef6ab49cc52572928db7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-03 12:22:33 +00:00
hjk
857f22e6c9 Coding-style: Mention extensions by plugins implementing callbacks
Change-Id: I03a8c1808e46a44c0c59aad1c5537a906442e5a7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-07-03 11:44:34 +00:00
Christian Stenger
d9933abe71 Squish: Expect configured settings
...when trying to execute the server settings wizard.

Change-Id: I221198639aed53fc90146ac536ea83d2dff8002d
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-03 11:24:59 +00:00
David Schulz
61fc1fd452 ClangFormat: remove identical prefix and suffix from replacement text
To reduce the changes done to the document iterate from the start and
back of the replacement text and check whether the document already contains
the proposed changes.

This also fixes the misplaced snippet part in the if else snippet.

Change-Id: I4519ed101cc03e7c49b3a9b775087361c3fd158d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-03 09:24:00 +00:00
Leena Miettinen
c4bc23e86f Welcome: Add a "Learning" category to the Tutorials tab
With links to videos from the learning courses.

Change-Id: Id2f3d32fcbe39c729ae5c3140b064b88f112283b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-03 08:59:36 +00:00
The Qt Project
bb159da60d Merge "Merge remote-tracking branch 'origin/11.0'" 2023-07-03 08:58:27 +00:00
Christian Kandeler
a39119669c CppEditor: Format quickfix code only if formatting is enabled
... in the ClangFormat settings (rather than the default of just
indenting).
As opposed to files generated by the wizard, quickfixes are often touching
existing code, and since ClangFormat works on line granularity, users
will experience unexpected re-formattings when ClangFormat is in indent-
only mode.
Therefore, do the formatting only if the user has enabled it in the
ClangFormat settings.

Change-Id: Icb30f166f2b6fb94113a8f25c4a5f92ff8bca9b0
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-03 08:47:42 +00:00
Eike Ziller
26e96bfad8 Merge remote-tracking branch 'origin/11.0'
Conflicts:
	src/plugins/debugger/debuggeritemmanager.cpp

Change-Id: I9d99d13feff9315f52eacbd84857c63cb69bf804
2023-07-03 10:24:09 +02:00
hjk
64c8c37bd4 Aspect: Fix recent regression in signal emission
Amends 379e7f906

Change-Id: Ia1599613e3c2575c7406cf49f3dd9487c9a1284a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-03 05:42:21 +00:00
Jarek Kobus
297ff3b9b1 AndroidRunnerWorker: Remove no-op code
Since there is no call to recordData()
with ANDROID_PRESTARTSHELLCMDLIST or
with ANDROID_POSTFINISHSHELLCMDLIST, the recordedData()
will always return empty variant.

Change-Id: I2d96ddee12181c614a0282f5103fba3fc06b6486
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-01 21:23:17 +00:00
Orgad Shaneh
a3b4006627 Terminal: Fix icons and improve msys2 integration
Change-Id: I93b994716a8c22231d42b313ca2f688ddc100de3
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-06-30 14:45:51 +00:00
hjk
5d69944ead Qmake: More [[fallthrough]] warnings
Change-Id: I45acf2b2f6bd11a144786e076d87398d729fe2d8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-30 12:45:06 +00:00
Cristian Adam
c529a87240 Terminal: fix keypad Enter key handling on Windows
On Windows it looked like nothing happened when pressing the keypad's
Enter key.

By using the same handling as for the Return key, the terminal works as
the user expects it.

Fixes: QTCREATORBUG-29348
Change-Id: Ia49f0bb98aef8393f208671042d608a124cb431f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-30 12:16:39 +00:00
hjk
5b93ecdd05 Docker: Add sanity check in start container
Change-Id: I633685402f27a3af317a58fd6f3c1d58174db989
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-30 11:44:00 +00:00
Miikka Heikkinen
ffb1bb11d1 QmlDesigner: Require explicitly enabling qsb generation for shaders
Attempting qsb (Qt Shader Baker) file generation for some reason fails
the lights baking process. Since autogeneration of qsb files for
shaders is only necessary to be done once, disabled it by default in
NodeInstanceView, so only the main instance of NodeInstanceView will
attempt to do it.

Fixes: QDS-10206
Change-Id: Ie2b273929c9dde4ab857f6ab47f7daef47808f19
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-06-30 11:20:38 +00:00