Commit Graph

82795 Commits

Author SHA1 Message Date
Jarek Kobus 922da1fbb3 Process test: Prevent empty loop from being optimized out
This should fix the macOS "Run tests" on GitHub Build Bot.

Change-Id: Iae185d47fa33c97c63480b10d5a25a1d4c13f532
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-30 07:35:25 +00:00
hjk 271405e08e QtSupport: Don't save QtVersions directly after creation
Change-Id: I379262734bf11776d77576b8fca698ce691654b8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-30 07:22:53 +00:00
hjk 7fccf02be7 Core: Use QtcSettings in NavigationWidgetFactory::restoreSettings()
Symmetric to saveSettings() now, and allows for central Key conversions
later.

Change-Id: I3fbf81c51197c9882b1f64ef591398b83aa0d633
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-30 06:56:30 +00:00
David Schulz e788deb1fc TextEditor: add force update current Editor in action handler
This can be used to update the editor widget connected in the action
handler if the editor widget inside one editor changes.

Change-Id: Idc9ea119aa2eaab34bd249c59ab9dfb255556fa1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-30 04:15:58 +00:00
hjk 79bf9acd1b Utils: Allow storeFromVariant(QVariant())
This appears in reality.

Change-Id: Ib09a737a3378e26d88397dceb32a38c3857ec9b2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-29 14:35:31 +00:00
hjk 735e9fc58e ProjectExplorer: Remove ToolChain updating code from 4.3
The current format is apparently stable since May 2017.

Change-Id: I8be705c87578f0e93dbb9494206ccf3e5d8b9e64
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-29 14:10:25 +00:00
hjk bd89cc1fd5 ProjectExplorer: Avoid a QTC_ASSERT for a legitimated situation
Change-Id: I07ce3a286e366c039497379f8bfd2a7be9523c75
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-29 13:41:03 +00:00
hjk 5839a09e72 Utils: Key/Store fix for Qt < 6.5
Change-Id: Ibf11f01a9502ab7da052db7630b5df2fdeda09ab
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-29 13:30:23 +00:00
Cristian Adam d9a8eba35d CMakePM: Enable cmake format action only if the tool is present
If the tool is not present the menu action is disabled.
Also add a link to the Qt Creator cmake-format documentation.

Fixes: QTCREATORBUG-29415
Change-Id: I4afb33f0d5ce08975b0964d6bee80dfb41cfcde5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-29 13:29:13 +00:00
hjk 52d1cd47cb Utils: Write Key/Store to settings
We claim that we still store QVariantMap to keep the format unchanged.

Change-Id: Ie7b0a83febfeb2cb3cfc9ee42b8423453cf3b1c4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-29 12:28:57 +00:00
hjk e5afe02556 Utils: Register Key/Store related metatypes
Change-Id: If7b0a83febfeb2cb3cfc9ee42b8423453cf3b1c4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-29 12:16:59 +00:00
hjk 4c81af8c0a QbsProjectManager: Create QbsProfileManager on request
Task-number: QTCREATORBUG-29546
Change-Id: Ib50ce8cacb4ef26346d0b43401f97093c1c75155
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-29 12:09:50 +00:00
Artem Sokolovskii 12fb4e93bd Python: Fix debugger start
Change-Id: I9a26c591d174f5f079c4a673a6bf1aedd5cd709c
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-29 09:11:33 +00:00
David Schulz 4451da7037 LanguageClient: use json editor in language client settings
Change-Id: Ib2b8dae730a701d71ae39a4eaf401f5feab7f921
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-29 08:12:58 +00:00
David Schulz 201f5291eb TextEditor: add json auto completer
Change-Id: If502ccb3b75d3c5a5d7ae555acfeb51644ffcd71
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-29 08:12:51 +00:00
Jarek Kobus 36316e2d17 JsonEditor: Fix warning about unused argument
Amends ddb4aa0151

Change-Id: I722b5615bec11796a9a003b288ced8d0da7b1d4b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-29 07:48:46 +00:00
hjk b0d78aefff ProjectExplorer: More Store/Key in KitAspect
Change-Id: I6b6e497fac7a3d0f041af727601428bb5c3c441d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-29 07:47:03 +00:00
Jarek Kobus e4ab99990e DebuggerPlugin: Fix assert on Creator startup
Add toolbar action to the perspective before calling
setToolButtonStyle(), otherwise the m_toolButton isn't
created yet and the assert is triggered.

Amends d304e82e63

Change-Id: Idac207464d8844565c96718ac65a7b820f05d4b7
Reviewed-by: hjk <hjk@qt.io>
2023-08-29 07:42:59 +00:00
The Qt Project 47c2d78b6c Merge "Merge remote-tracking branch 'origin/11.0'" 2023-08-29 07:10:26 +00:00
hjk 6c5027ba0e Utils: Move storefrommap.h to store.cpp
Will be used more widely.

Change-Id: I77bb7760e7b3bd1147ea1e1d6be196ef75f691a2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-29 06:54:31 +00:00
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