Commit Graph

82875 Commits

Author SHA1 Message Date
Eike Ziller
a3ef2a6d00 Merge remote-tracking branch 'origin/11.0'
Conflicts:
	src/plugins/projectexplorer/miniprojecttargetselector.cpp

Change-Id: Ie831644eb1c69beed6791cbc67cbfb9309dcd351
2023-08-29 08:47:29 +02:00
Eike Ziller
b506179145 Update readme for translations
- added link to mailing list
- added hint on using stable branch
- fixed instructions for new languages
- added information and a step for running ts_<lang>_cleaned target
- added information about QtC:: contexts
- added hint on accepting translations in Linguist

Change-Id: I1a1ae8408f64ff91894db9959bea33d2488bae74
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2023-08-29 06:31:34 +00:00
hjk
aa7c817f7a Utils: Temporarily introdce Key Id::toKey()
To avoid complications on the user code side during the Key/Store
transition.

Change-Id: I49ae9d496c9c1ee07f17245616fdefefe9abfc2e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-29 05:48:34 +00:00
Marcus Tillmanns
d2acb8049b Terminal: Support yama/ptrace_scope=1
We set "PR_SET_PTRACER" to "PR_SET_PTRACER_ANY"
which will allow the debugger to attach to the inferior in both
mode 0 and mode 1 of yama/ptrace_scope. Mode 2 and 3 are still not
supported.

Fixes: QTCREATORBUG-29554
Change-Id: I61d9ef3d9128f03769436010c6f250ccdada52bc
Reviewed-by: hjk <hjk@qt.io>
2023-08-29 04:45:06 +00:00
Artem Sokolovskii
d304e82e63 DAP: Add engine chooser
The Engine Chooser empowers users to select the desired
debugging engine when initiating DAP debugging sessions.

Change-Id: I070ff2620b318494ee715c5ac369765d4a9dc616
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-28 15:29:42 +00:00
Artem Sokolovskii
b80cef815e DAP: Fix rootWatchItem deletion
Change-Id: I2fcdf7547a361dcb136cd1a03325e7f5186b273a
Reviewed-by: hjk <hjk@qt.io>
2023-08-28 15:29:04 +00:00
Eike Ziller
db49f3af71 QtSupport: Avoid an unneeded update of examples
When starting Qt Creator with the examples page visible.
Avoid emitting the selectedExampleSetChanged signal twice in a row, but
guarantee it once.

Change-Id: I6a2c4032a53d531a8e7d2ac612e88d4b4bdbb6b5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-08-28 14:22:29 +00:00
Cristian Adam
edee2afe11 QtSupport: Load examples / tutorials only when visible
This speeds up QtCreator startup a bit by not loading the examples all
the time, but only when the user clicks on the "Examples" button.

Change-Id: I8fb3656e871cf3f2f884c5eb12270eba427cd999
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-08-28 14:22:18 +00:00
hjk
e6a1d6685e CompilerExplorer: More Key and Store
Change-Id: I49a79e672915503359380e776b994e53b210eda9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-28 13:30:38 +00:00
hjk
2e3b6fcf61 BareMetal: More Key/Store
Change-Id: Id2b1744103f702ba4f743662b9ec25f8a437d276
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-28 13:30:13 +00:00
David Schulz
4526e1908c Editor: remove duplicated path is empty checks when saving
Change-Id: I1fdaacd44918a63e55bce9f15f3f80782ddcbe55
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-28 13:01:40 +00:00
Marcus Tillmanns
eb17f4c2bf Debugger: Improve libc++ std::string dumper
Use isLldb and isGdb instead of exception.
Uses name based lookup in case of gdb instead of try/except

Fixes: QTCREATORBUG-29526
Change-Id: I6c3aa94503a519331395bd4249c6bf6488c8333f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-28 11:41:08 +00:00
Jarek Kobus
541719d443 TaskTree demo: Simplify task creation
Change-Id: Ia47c6599e872a7400b521ca77b109ff369bdd836
Reviewed-by: hjk <hjk@qt.io>
2023-08-28 11:38:46 +00:00
Jarek Kobus
213b2e5698 TaskTree: Pretend TaskInterface::start() is protected for qdoc
Otherwise, the docs are not shown.

Task-number: QTBUG-114877
Change-Id: I0cc3e3890c57cd3c5970c0bc9f0350e9934748c5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-08-28 11:19:12 +00:00
hjk
23149b27ab Utils: Introduce variantFromStore and storeFromVariant
These are functional replacements for
  QVariant::fromValue(QVariantMap) (or QVariant::fromValue(Store)) and
  QVariant::toMap() (or QVariant::toValue<Store>())

We will have a few code paths in the end that need to explicitly
operarate on both QVariantMap and Store (e.g. actual reading/writing
to keep format compatibility etc), so these can't in the end be
simple to/fromValue(OneType) but need an internal 'if' or such.

Change-Id: I954f3cb24fa8fe123162b72bbd25d891dd19b768
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-28 11:16:40 +00:00
Jarek Kobus
bb59dfd636 TaskTree: Adapt docs to the recent changes
The registration macros got removed recently.

Change-Id: I69fe5a898d6d975b66a79e64e5e9425960745772
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-08-28 11:02:26 +00:00
Christian Kandeler
8277e2f7d9 QbsProjectManager: Prevent premature profile setup
E.g. on Windows, the kitUpdated() signal can be emitted during start-up.
In this case, do not set up the profile right away, in accordance with
our on-demand policy.

Task-number: QTCREATORBUG-29546
Change-Id: I191dba51763a84abf32b8c3e3f6b1bb5dad6fa36
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-08-28 11:01:28 +00:00
Eike Ziller
1766002a97 Build/deploy: Move call to macdeployqt to deploy.py
And get rid of deployqtHelper_mac.sh

Change-Id: Iab8ba3e36f43c94b21f86a842eb1781a5ca462f2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-28 10:13:50 +00:00
Eike Ziller
1db2fea90b Build/deploy: Move llvm deployment to deploy.py
Moving things away from deployqtHelper_mac.sh

Change-Id: Ifadbf763fdbf12b5e22fc037986eb1b018b96aef
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-28 10:13:43 +00:00
Eike Ziller
1555ab3094 Build/deploy: Move qt.conf creation to deploy.py
Moving things away from deployqtHelper_mac.sh

Change-Id: I41810ac060bde63f3b11af852bb2e2f37d822bf4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-28 10:13:25 +00:00
Eike Ziller
db4d424b43 Build/deploy: Move copying translations to deploy.py
Moving things away from deployqtHelper_mac.sh

Change-Id: I0c37d111cdfb88c1ef2452d03ca2bcc542600521
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-28 10:13:19 +00:00
Eike Ziller
fbc95f77bd Build/deploy: Move copying imports to deploy.py
Moving things away from deployqtHelper_mac.sh

Change-Id: Ib12b3105cb632833b713b04596c8bffd80f15131
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-08-28 10:13:13 +00:00
Eike Ziller
fc29c72b65 Build/deploy: Move copying plugins to deploy.py
Moving things away from deployqtHelper_mac.sh

Change-Id: I0470432a0ffa33437e3249d3fb3766d511073caf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-28 10:13:06 +00:00
Eike Ziller
fe18525326 Build/deploy: Move copying qtdiag to deploy.py
Moving things away from deployqtHelper_mac.sh

Change-Id: Ic71ad9a8ed522dc8c4eaa745ec519d9d705d1073
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-28 10:12:59 +00:00
Leena Miettinen
22476fc26f Doc: Divide "Creating Projects" into an explanation and how-to topics
Task-number: QTCREATORBUG-29361
Change-Id: I623d824e423da950df9643c42d85b485daccfe4b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-28 09:55:57 +00:00
Leena Miettinen
4c4719f4d0 Doc: Turn Qt for Python wizard docs into tutorials
Remove the Python instructions from Creating Projects and
turn them into Qt Quick and Qt Widgets tutorials.

Turn the Developing Qt for Python Applications topic into
a How-to.

Change-Id: Ia3b547fbefd5f8e6b67d673b9724cd6e3f0b4424
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-28 09:55:01 +00:00
Marcus Tillmanns
1bcc5b137d CompilerExplorer: Add Mimetype
Change-Id: Id267d6d164a4ce8b1527ccb9dc6d1e4b6b289833
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-28 08:39:04 +00:00
Eike Ziller
71765041b8 Help: Add option for disabling antialising of fonts
For the backends that we can do it for (litehtml, QTextBrowser).

Fixes: QTCREATORBUG-12177
Change-Id: If64a279f74f878b6797bf43d8129058c6183919b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-08-28 08:29:39 +00:00
David Schulz
ddb4aa0151 TextEditor: add json indenter
Use an EditorFactory that sets up a custom indenter for json files.

Change-Id: Id5ade9f9f551835131a62e381a972f0b6032e7c0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-28 08:18:59 +00:00
David Schulz
28742774fe TextEditor: add rename symbol option to editor context menu
... if the action handler supports the rename option.

Change-Id: Ic1bad19a490aaccc8e96afd1f74741596bf6efc3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-28 07:52:52 +00:00
Marcus Tillmanns
a331f0a8c8 CompilerExplorer: Implement saving documents
Change-Id: Iccfd300a9f0fc25bafae9892c14f172874a99ce1
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-28 06:54:03 +00:00
Marcus Tillmanns
9664f47cd6 Utils: Add storeFromMap / mapFromStore
Facilitate conversion from QVariantMap to Store to allow easy
serialization via QJsonDocument::fromVariant / QJsonDocument::toVariant.

Change-Id: Icb5c764ccdfdbaf402045224f5b02e4818d7ee2f
Reviewed-by: hjk <hjk@qt.io>
2023-08-28 06:50:24 +00:00
Eike Ziller
6c9d4a60e0 Update yaml-cpp to 0.8.0
With removal of unneeded files similar to the original import,
the patch in patches/0001-... generated with

    git format-patch -D HEAD~1

to show just the removed files.

Change-Id: Ibfe64439bae5d1b1baa6b6bc47caf1ae030b3f9d
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>
2023-08-28 06:29:55 +00:00
Eike Ziller
1a43983ea6 Fix that target selector accumulated labels
for kit aspects. The widgets added to the "KitArea", including the
created labels for the kit aspects, are children of the widget itself,
not the layout, so since we do not delete the KitArea widget, we need to
explicitly delete the labels too when updating, the same as we do for
the aspects' widgets.

Fixes: QTCREATORBUG-29519
Change-Id: I605edd4969345d18064c1c00ec4d617499de8eb7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-08-28 06:27:52 +00:00
David Schulz
be54b3db2f Python: check for pyside in qt installation
Fixes: PYSIDE-2153
Change-Id: I91ec24eb6a71d4f29edaf7a707b3c49a4deb725a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-28 06:04:08 +00:00
David Schulz
a137f2b23d LanguageClient: cancel find link at requests on rerequest
This avoids triggering the callback if we already requested a find link
at for a different position. Additionally we also cancel the request if
the document changes or the cursor moves inbetween requesting the link
and receiving the response.

Change-Id: Iffc7b08012a649397e7ca7dfc99d314a1bbf19f7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-28 05:58:24 +00:00
Christian Kandeler
098ddf11e8 CppEditor: Introduce testing infrastructure for symbol renaming
Also add two example tests.

Change-Id: Ia76c4d92e7643971c1f201081b3df1f77f1e89a5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-25 12:12:28 +00:00
hjk
d7d78df9da Plugins: And more Store and Key
After this one, is compiles with the opt-in macro. Not changed yet,
though.

Change-Id: I29a66ecb5daa71d0d97566b81fd9f47d92f6368a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-25 11:45:22 +00:00
Christian Kandeler
b237cd5e25 Update qbs submodule to HEAD of 2.1 branch
Change-Id: I7cf53617cd6b9769d26b90036fc6be615d8b1702
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-25 10:37:43 +00:00
Eike Ziller
c9fd5465eb Merge remote-tracking branch 'origin/11.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs

Change-Id: I0b0394dd68cf89b2579d623af897f55dc01aeea5
2023-08-25 11:50:14 +02:00
Eike Ziller
549e17ee84 macOS: Allow apps be debugged via process stub
This fixes debugging with "Run in Terminal".
We usually do not use the disclaim tool when debugging,
because LLDB does that itself, but it looks like not having
get-task-allow prevents that in the first place.

Add that and disable-library-validation (which is needed for
get-task-allow when notarizing) to our process stub.

Fixes: QTCREATORBUG-29497
Change-Id: I86c184b2b108b62822bf89d80ea2b4ca9190f5b8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-25 09:45:10 +00:00
Eike Ziller
170f9acfb4 ClangTools: Add support for yaml-cpp 0.8
They renamed their target from `yaml-cpp`
to `yaml-cpp::yaml-cpp`

Still support < 0.8 though.

Fixes: QTCREATORBUG-29537
Change-Id: Iafa6e75998f0120610542b4c744b205aee3392a3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-25 09:21:42 +00:00
Cristian Adam
bd36af75eb CMakePM: Add F2 jump for CMAKE_SOURCE_DIR and more
This will allow opening CMake files via F2 when using include statements
like: include(${CMAKE_SOURCE_DIR}/cmake/api.cmake)

CMAKE_BINARY_DIR and CMAKE_CURRENT_BINARY_DIR are also supported.

Fixes: QTCREATORBUG-29467
Change-Id: I9adb417d98e8a8fccf6cd3e5038562db02cb28c2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-25 08:51:34 +00:00
Marcus Tillmanns
79d5493d36 Utils: Warn if restoring FancyMainWindow fails
Change-Id: Ia8321605d7aecab3149d1e9f7d9720bb9c3c27e6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-25 08:46:12 +00:00
Marcus Tillmanns
a280abe0c1 Installer: Add README.md for mac specifics
Change-Id: Ifd207bd7b1ec79f53060691dcc2bbfd6ebe6cd01
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-25 08:46:05 +00:00
Eike Ziller
e98cc72980 Editors: Fix that history of editors could grow
The "history of editors" is supposed to contain the order in which files/
documents were recently accessed. It is used for the "open documents
window" (the Ctrl+Tab popup). In contrast to the "navigation history" it
should contain each file/document only once.

Since 324de13b4e items for suspended
documents with the same file name were no longer removed. For suspended
documents it is necessary to check for the same file name.

This was so far not vital, but when we save the editor history in the
session, these do not have a document when restoring, which would lead
to an evergrowing editor history.

Amends 324de13b4e

Change-Id: Ia4b7848a1265024d0463afbf7c1cd69189c4be97
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-25 08:23:59 +00:00
hjk
8d0aa34bfc Plugins: A bit more Keys and Store
Change-Id: Iee55eeaa881dd9f2047fdbe95ad8d827f4ba34e0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-25 08:00:02 +00:00
hjk
e1e1af36d2 Some more Key and Store
Change-Id: I78d2c7cfda1f8ece3c6fd9a7d741ec526a9aa6e4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-25 07:40:04 +00:00
hjk
b9f9d2574e Utils/ProjectExplorer: More Key and Store
Change-Id: Ic9cc3a36b320c7413c362d1a1cdf024298d25027
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-25 07:33:53 +00:00
hjk
648efd6524 Utils etc: Even more Key and Store
Change-Id: Id2405d8a89c47ea766439eec91db36ed7313eb92
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-25 07:20:00 +00:00