Commit Graph

68765 Commits

Author SHA1 Message Date
Eike Ziller
d2ed96a055 VariableChooser: Use same type name for declaration & definition
Fixes documentation issue.

Change-Id: Id237998b651bdf7887a0be846464265f734001c4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-05-26 08:48:57 +00:00
Jarek Kobus
7830bb6bc4 FileSearch: Introduce searchInContents()
Change-Id: I314a5205f51d14e8a3205548049f017d93754212
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 08:24:19 +00:00
Christian Kandeler
13e9125d1d Update qbs submodule to HEAD of 2.0 branch
Change-Id: I44c759f26b98da440cc75cce4b8da97d4b202054
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-26 08:23:54 +00:00
Jarek Kobus
a78720060e FindFlags: Move it into Utils lib
It's going to be reused in filesearch.h API.

Change-Id: I7ef133368536a647e19949ba8623134cf078a87d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 07:59:41 +00:00
Leena Miettinen
48e2c66a4e Doc: Remove docs for Utils::SynchronousProcess
...that has been integrated into QtcProcess.

Change-Id: I39b6e4cb5d713d59345015b2a471cd4e6ef99f57
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 07:35:53 +00:00
Leena Miettinen
83b971b238 Doc: Mark docs in Utils \internal if classes or functions not found
Change-Id: I3182534fefc51f573892d6f80f59ce5613f95fdc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 07:24:22 +00:00
hjk
8b29c06372 Terminal: Use PageSettings for settings
The DropSupport is disabled for now, plan is to have a DropArea
LayoutItem later and use that.

Change-Id: I7fd1e55ad0c053f0357bb53a7cc20e9da8a933a7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-05-26 07:18:18 +00:00
Yasser Grimes
7aec8c0b14 McuSupport: Add dialog for Qt MCUs kit creation status and help
The status of automatically created kits or manually updated ones is
displayed in "General Messages" along with other messages making it
difficult to know if something went wrong with kit creation.

To avoid showing a dialog at QtC startup an InfoBar message was added
with a detail button that will open a dialog listing all the messages
with their platform, package and Os providing an easy button to go to
the MCU Option page to fix the package of a help button pointing to the
prerequisites documentation.

Fixes: QTCREATORBUG-28920
Change-Id: I20c30d968fbd2d4c6d10d16504a51e7201a2db3b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-26 07:02:55 +00:00
Leena Miettinen
2ad153f30e Doc: Add \a commands and return values to TextFileFormat docs
To fix qdoc warnings.

Change-Id: I6258223e83517c1206e8bdb4db20db4e8fc60751
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 06:55:28 +00:00
Eike Ziller
5ddde5ef08 Merge remote-tracking branch 'origin/11.0'
Change-Id: If22f8cd9a211112eea39cd5d90db0ae0e3d5ccde
2023-05-26 08:51:40 +02:00
Marcus Tillmanns
c995795d80 Copilot: Fix spinner if Copilot not configure
Previously the progress indicator would be visible if node.js or the
lsp path was not configured.

Change-Id: Ief235253c6cfcb8f8fb533fe746edc7d0cc5867c
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-26 06:10:07 +00:00
hjk
4136b6e795 Meson: Compactify MesonRunConfiguration setup
Change-Id: I10a600b601301283dbdc960d9e07e5587b52c031
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-26 05:19:38 +00:00
hjk
6ab66690af Utils: Simplify remaining Environment::searchInPath implementation
Use the parts that have recently been copied/moved to FilePath

Change-Id: I4d5b5941c55052e58ae4b34c4c49432f63a13cde
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-26 05:19:20 +00:00
hjk
5689f0c60e Valgrind: Add toolargs to command, not to a string list
Removes arg splitting/re-combination roundtrips.

Change-Id: I4bc19d3b65f4c685140cea0e190191587f5124e6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-26 05:19:05 +00:00
hjk
0d22680c7c Incredibuild: Simpler plugin setup
Change-Id: Ie838fb800b0b0f412e1b44989eed47e70c144747
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-26 05:18:55 +00:00
Cristian Adam
c777de8fdb QmlDesigner: Fix configure with QTC_STATIC_BUILD
get_target_property fails when Qt5::Designer is not available.

Change-Id: I2d9aa6902e0e03a44ca91068bed5e3f3493a86c8
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-05-25 16:42:46 +00:00
Cristian Adam
eed303450d Sqlite: Fix compilation with QTC_STATIC_BUILD
Change-Id: Ie94439d190245e821c17de73075397695d1af413
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-05-25 16:23:48 +00:00
Leena Miettinen
f415d4c786 Doc: Add \a commands to FileSystemWatcher and stringutils docs
Change-Id: Ie76e2d7387df630a512413bd214461979ad2ec91
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-25 14:05:03 +00:00
The Qt Project
fbcf4a8c0f Merge "Merge remote-tracking branch 'origin/10.0' into 11.0" into 11.0 2023-05-25 13:51:31 +00:00
Eike Ziller
90a6faed4e Merge remote-tracking branch 'origin/10.0' into 11.0
Conflicts:
	src/plugins/qtsupport/exampleslistmodel.cpp

Change-Id: Idbe0117ce810b4ab180a7c4f9b7b35c9c4b988e5
2023-05-25 15:49:57 +02:00
Christian Kandeler
2cd71a18fc CppEditor: Fix raw string highlighting with embedded empty lines
We missed an early return in highlightBlock().

Task-number: QTCREATORBUG-29200
Change-Id: I3f32c2948ff778a9b558850235058537fcd48fd1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-05-25 13:43:26 +00:00
Christian Stenger
2662105f41 Perforce: Use info label
Makes it readable for different themes.

Change-Id: I26dd08e3bf5840437165811154f8f97ad4296371
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-25 13:27:52 +00:00
Leena Miettinen
f4b02be1fa Doc: Remove links to the undocumented attachToWidget function
Change-Id: Id828e5d1c889289261c628f3f2dbe42206b8b892
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-25 12:54:06 +00:00
Christian Kandeler
c8f29b9e01 CppEditor: Add support for init statements in if conditions
Fixes: QTCREATORBUG-29182
Change-Id: I9b7969da694b368236246123ad0028d8e754e903
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-25 12:37:26 +00:00
Leena Miettinen
07764bdf15 Doc: Remove broken \sa commands from CheckableMessageBox docs
- The referred functions are not documented
- Use \uicontrol instead of the deprecated \gui macro

Change-Id: I993d62923657cd018caa87827dc89c6aa4b6d092
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-25 11:56:12 +00:00
Leena Miettinen
e037bd2004 Doc: Fix qdoc warnings in FilePath docs
Also fix some misc style issues, such as missing punctuation.

Change-Id: If5a9243eb9ce57c87096f9f0e184c8a802df54aa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-25 11:55:07 +00:00
hjk
301017ab9c Nim: Use FilePath::searchInPath to find executable
Locally the same, potentially works remotely.

Change-Id: Ibdd6f545c089868549f86300d00116896c4f8f94
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-25 11:45:11 +00:00
hjk
320064f431 Utils: Allow more finegrained subaspect ownership in AspectContainer
Currently this luckily conincides with the register/addAspect schism
but that's not necessarily true in the future.

Change-Id: I05a59d74182dbdf81193ebd790d6f9bab2d30439
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-25 11:41:50 +00:00
David Schulz
3541b692f5 LanguageClient: track clients scheduled for deletion
So report an async shutdown if we have clients scheduled for deletion
and wait until all clients have been fully deleted.

Change-Id: I40d35d3429003ab2a5c68cb81486c3e16b5f6f63
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-25 11:34:31 +00:00
Marcus Tillmanns
38c64e5419 Utils: Fix opening external Terminal
Change-Id: Id5c650f6f40f4ab8233360e20673dd9f0277c09d
Reviewed-by: hjk <hjk@qt.io>
2023-05-25 11:21:58 +00:00
hjk
001b3ab626 Utils: Remove now-unused Environment::findAllInPath
Change-Id: I562309c292ab0c5ae317593e40e5105bbcf89bf8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-05-25 11:21:48 +00:00
Eike Ziller
edd1a89807 Move SessionManager to Core plugin
Sessions are independent from projects, and this allows for removal of
e.g. the dependency from Bookmarks to ProjectExplorer.

Includes moving the command line arguments (-lastsession, <session>) to
Core plugin.

Change-Id: I6c578fd15c4990902e7196501de20f39376e90e8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-05-25 11:15:41 +00:00
hjk
53aeaa1ca4 Haskell: Finish moving to FilePathAspect use
Change-Id: Icd76794b5f81990a583aa1b7ed921fbd08b2d797
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-25 11:15:38 +00:00
David Schulz
7d64afa739 LanguageClient: always rerequest completions
Even if we receive a complete list the sorting of the items might change
after expanding the completion prefix.

Fixes: QTCREATORBUG-29178
Change-Id: I51762d0f4f26935f519e1c521ae65d781bb150b9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-05-25 11:14:54 +00:00
hjk
c3fb4e1c51 Valgrind: Remove unused Settings::changed() command
This is covered by the AspectContainer's changed()

Change-Id: I2ae99fd9d9908cf5f236c41319369130455972f7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-25 11:14:25 +00:00
hjk
77b8c63436 Valgrind: Adapt to recent Aspect changes
Change-Id: I88647e5b2934bedf04828984567dee0a34bb7605
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-25 11:08:07 +00:00
hjk
070bb22812 ProjectExplorer: Use FilePathAspect in CopyStep
Also, convert them to auto-registering members.

Change-Id: Ic35808f0d4c93f655419c4f86073620f43bb3d5b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-25 10:52:13 +00:00
Eike Ziller
dd1a69e05f Fix crash when examples are in multiple categories
When items are added into multiple categories, we got into a double
delete when cleaning up, e.g. when changing the shown examples to a
different Qt version.

Sort copies into categories and delete the originals as a quickfix.
Cleaner would be if we didn't allocate them on the heap in the first
place.

Fixes: QTCREATORBUG-29197
Change-Id: I6490111aba87335b0f7189c4957ed1da8681806f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-25 10:38:45 +00:00
hjk
d685fbccf0 Debugger: Use a FilePathAspect for extra dumpers
Change-Id: Ideb779cc5ef0d679667b635efe8c1a2859c6e608
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-05-25 09:49:05 +00:00
Marcus Tillmanns
06365fa39f Terminal: External terminal if blocked by modal
Change-Id: I89ba438c7a9f4d593e849b9b7ca2daf202cca625
Reviewed-by: hjk <hjk@qt.io>
2023-05-25 09:24:36 +00:00
Leena Miettinen
0d95c68b21 Doc: Add missing \a commands to get rid of qdoc warnings
Change-Id: Ida0f0cabae0cc151967098312b358803a48dd92c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-25 09:13:59 +00:00
hjk
2d32fe4b57 Utils: Remove Environment::searchInDirectories
Was functionally replaced by FilePath::searchInDirectories.

Change-Id: I8808cbdb114fb9b6b4e1f94e13aa9e67b9c56d6a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-05-25 09:00:37 +00:00
hjk
2ca7aff073 Docker: Remove DockerPlugin::dockerApi()
Access is nowadays via DockerApi::instance()

Change-Id: Idc1530358771c3a008182661c263c30b68fe84be
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-05-25 08:48:18 +00:00
Eike Ziller
8ca4f909e8 Examples: Move categorization to examplesparser
For easier testing.

Change-Id: I11f9de3f4fbcc2c85c196f1b59b2147e73ea8209
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-25 08:43:49 +00:00
hjk
d6d7654c3f Autotest: Use new aspect constructor
Change-Id: Ibac3957b51c0128e829fcf7cd750dbaea8e8694d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-25 08:39:38 +00:00
hjk
6c66b900db ProjectExplorer: Merge LocalEnvironmentAspect into EnvironmentAspect
This still has some not quite orthogonal features in one blob function,
but at least it's not a separate class anymore.

A step forward to remote support in places where it could make sense.

Change-Id: Ia02003e4340eb2b5ee92bd48c00006a487527828
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-05-25 08:30:33 +00:00
David Schulz
85f1633562 LSP: Fix Range(QTextCursor &) constructor
amends 9bb126c0d6

Change-Id: I5afe9ecfff2339593368eb24e2b034460ce197e8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-05-25 08:26:34 +00:00
Christian Stenger
414e171226 Axivion: Start aspectification of settings
Change-Id: I866d41fd152509893a90ca0552b9d0c3ab21333b
Reviewed-by: hjk <hjk@qt.io>
2023-05-25 08:09:39 +00:00
Eike Ziller
6be33ccb1d Merge remote-tracking branch 'origin/master' into 11.0
Change-Id: I37adb8c1656cd5c979cd177eedef812ef093ad97
2023-05-25 09:34:25 +02:00
David Schulz
f235a72554 TextEditor: add tests for semantic highlighter
Change-Id: Id64c933f01c0dbc0e077656b6f4260b93e124311
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-25 07:01:35 +00:00