Commit Graph

82823 Commits

Author SHA1 Message Date
Cristian Adam
07ad848ea1 CMakePM: Replace QDir in CMakeBuildConfiguration
This allows remote support.

Change-Id: I12c991d584baa3762102b8a19179e732a31f192b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 14:23:10 +00:00
hjk
09f15a31df Utils: Remove the non-QTC_USE_STORE case
Change-Id: I857a38c80470d1b474ca0f291a93ed58fbcc0bf4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 13:20:59 +00:00
Cristian Adam
246f33c20d CMakePM: Replace QDir with FilePath in fileapiextractor
This allows remote support.

Change-Id: I5ac46b1c2ed0e7e1fcc559522f1fcd902f83b8c0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 13:06:30 +00:00
Christian Kandeler
fb4177a540 cmake build: Set the WITH_TESTS macro also in the tests themselves
Otherwise plugin and test code might parse header files differently.

Change-Id: I0243a7780b7095a4c518da26cc3cf23fd9f76cf5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 13:05:04 +00:00
Cristian Adam
925b7a3566 CMakePM: Replace QDir with Utils::FilePath in editor
This way we could handle remote files.

Change-Id: I7062445cb743a2838f3c9f1bcff89611127011ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 13:04:53 +00:00
Christian Stenger
e1de2dfc07 Debugger: Fix qbs build
Change-Id: Ic34026548587187d0fa092454980d94250c6353d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-31 12:09:14 +00:00
hjk
93e188ab94 QtSupport: Move QtVersionManager closer to "new" singleton pattern
Not 100%, as there are a few more local variables involved.

Change-Id: I15458d614c381862aa6f9e1c54d56c045bac8941
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 11:52:11 +00:00
David Schulz
b418c81414 Utils: collect host root dir once
This improves the startup performance ~30% on certain machines

Change-Id: Ic7b74d42b0e13ec1dd695d4f322de021b996c051
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 11:29:38 +00:00
Marcus Tillmanns
616a0c0f77 Terminal: Support Ctrl+C/V on Windows
When a selection is present, let Ctrl+C work as copy
on Windows.

Remove sending ESC key in clearSelection as it interfered
with a Paste after copy.

Change-Id: I92db7f263e1eb433bca8aa5500fcecb637a23f90
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-08-31 10:58:36 +00:00
hjk
95a3087a7b ExtensionSystem: Stop reworking initialization order system
This reverts b91f234c7d and some changes on top.

With the static-in-function approach the dependency seem to be
more easier to solve than with the the central mechanism here.

Change-Id: I65be3ced847b31c25637280376f2fe30003f0527
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-31 09:58:40 +00:00
hjk
4132ffd662 Core: Fix action key construction
Amends c7710acadd.

Change-Id: I87c85cae3fa5624ba0c9d8a2c1aec4d3225c7315
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 09:31:45 +00:00
Artem Sokolovskii
cecf577dc4 DAP: Add Python debugging
Added Python support to the DAP engine in Qt Creator.

Note:
Locals aren't displayed for python. It will be fixed
in the following commit.

Change-Id: I6d3b41fecc98b92951ed0522e9201401293034d7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-31 08:06:03 +00:00
David Schulz
270a9839e2 Copilot: start the client in the delayed initialize phase
Change-Id: I4470491f5f0a2b1d88ed5b2e23444bf3a28d8256
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-31 07:02:57 +00:00
Leena Miettinen
70f5d18fe9 Doc: Turn Opening Projects into a How-to topic
Describe the ways to open projects before the case where
one needs to re-configure the project.

Task-number: QTCREATORBUG-29361
Change-Id: I32b8676112e412fe8b4f114c54371169f478d361
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-31 06:56:15 +00:00
Leena Miettinen
253eb4779b Doc: Mention the locator f file option for creating files
... in How-to: Create files.

Change-Id: I9cc0ba39009c722a89ee127d6ffcebcd01cce649
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-30 13:51:47 +00:00
Artem Sokolovskii
34a4313f74 DAP: Fix set invalid thread as a current warning
Change-Id: I39fad868ca8996f51b2b5d8681210d92ec9de76b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-30 12:22:34 +00:00
Christian Stenger
e26fee092b AutoTest: Allow temporarily disabling of functionality
Especially when touching headers included centrally while
refactoring bigger projects the retriggered parsing of
large (depending) parts of the project can become rather
annoying.
Adds an action for immediate disabling parsing and
respectively other test related functions.

Change-Id: I553615cce90bc88d636a4519718887306ee5215b
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-30 12:21:53 +00:00
Cristian Adam
6b312ad54c Debugger: Speed up startup on Windows
The Qt SDK would not write the "Version" tag in the xml file, but the
supported ABI and engine type are set.

Only retrigger the debugger detection only if the version, and the ABI
and engine type are not set.

Change-Id: Ib73b1809f9dc6a16fa1988ee0e40e4d8131c667e
Reviewed-by: hjk <hjk@qt.io>
2023-08-30 11:54:24 +00:00
hjk
1919580e08 Utils: Use QTC_USE_STORE
Change-Id: I4a2e69a8e092d762f8dd70a2e421c26522a5939e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-30 11:53:29 +00:00
Leena Miettinen
39dfc12a9e Doc: Divide "Creating Files" into How-to topics
Task-number: QTCREATORBUG-29361
Change-Id: Ib5e31777ef1649f86525b41bcfbcac52b9dd231e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-30 11:26:15 +00:00
Eike Ziller
d9ed0cc75a ExtensionSystem: Include phase breakdown in profiling summary
Makes it easier to find where bottlenecks are, as a hint where to
actually start profiling.

Change-Id: I00b881583c2c25b13f6e287b39b6b83299ac6674
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-30 11:24:26 +00:00
Eike Ziller
c22e43bf41 ExtensionSystem: Factor out startup performance summary
Makes it possible to potentially show it after the fact.

Change-Id: I7c93a2a290bf1a3e096286a3d20fd4553757ad5c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-30 11:24:17 +00:00
Eike Ziller
026848eadd ExtensionSystem: Add total real time to profiling report
The original total only contained the time spent inside of plugin
methods, but a lot of things get delayed arbitrarily to the event loop
currently. That is included in the new "total startup".

Task-number: QTCREATORBUG-29540
Change-Id: I832bb972d85bc4cf82f098e4cbf5d3ff3800d14a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-30 11:23:55 +00:00
Eike Ziller
4da8430cab ExtensionSystem: Always generate profiling data
The overhead is minimal and can be shown at a later point even
when not printing profiling data to the terminal.
Move the data to the plugin spec for later retrieval.

Task-number: QTCREATORBUG-29540
Change-Id: I392ff85a8a8b5c01ecba07fefd06e5029f692bf6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-30 11:23:46 +00:00
hjk
37a17cd6ba Utils: One more stringFromKey to keep Qt 6.4 happy
Change-Id: I67f47be369fa60e2f11f20e0ded389962e059ba6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-30 11:21:39 +00:00
hjk
41184bc9fc Utils: Use numberedKey(Key, int) more wildly
Will ease transition to a key class that doen's have ::number()

Change-Id: Ib2f2957c916f41b0731a2033422bfbf7e429bcc8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-30 09:57:23 +00:00
Eike Ziller
9dc9a43f40 Adapt find tool bar input fields to searched widget's font
Adapt the font of the search and replace input fields to the font of the
widget that is searched. This makes it use the text editor font when
searching in the text editor but keeps the "application font" when
searching in other widgets.

Change-Id: I8bd3b5dd3d14ab0e774f7272be236c35abd12de0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-30 08:31:20 +00:00
hjk
c7710acadd Utils: Use Key more widely in QtcSettings
And adapt user code.

Change-Id: I6efe4ebe6823de4cc862f304a57e041b02c40eac
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-30 07:38:02 +00:00
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