Commit Graph

81838 Commits

Author SHA1 Message Date
Christian Stenger 01d6afbcf6 Haskell: Fix missing include
Amends 9888e1982e.

Change-Id: Idef1f1e8cf4922d72e3894da0cee626551e369ab
Reviewed-by: hjk <hjk@qt.io>
2023-07-07 10:16:36 +00:00
hjk 04162ba291 Utils: Move some FilePath specific functions
... from StringAspect to FilePathAspect.

Task-number: QTCREATORBUG-29167
Change-Id: I6fc3bc22f905825443ebc31ebe44e7c27fdbcb56
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 09:59:01 +00:00
hjk 9888e1982e Haskell: Use aspects more directly in HaskellRunConfiguration
Task-number: QTCREATORBUG-29168
Change-Id: I7b10c001d1a4cc03d69298e59c4eb1097930816a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-07 09:52:49 +00:00
hjk 91513a53dd Utils: Make aspect settings access implicit
Generally, aspects should use fromMap/toMap, but some older pages
use {from,to}Settings with always the same ICore::settings().

To make that less intrusive on the user code side, make that globally
implicit.

Task-number: QTCREATORBUG-29167
Change-Id: I29a8e23a31eb8061bb143e93931a07c6741eb7f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 09:02:29 +00:00
Jarek Kobus 9f1b56e91a ProjectExplorerPlugin: Use expected_str for canRunStartupProject()
Change-Id: Iddc9abcb1b9ef02c6a8188d2eb82cc30a0ba4c22
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-07 08:23:29 +00:00
Jarek Kobus 714b5963f7 BaseFileFind: Some cleanup, also in derived classes
Change-Id: I1fb3d3937543f9c4fd8ca723410494cfc76322ee
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-07 08:22:50 +00:00
David Schulz 5bf78e9955 Utils: simplify Text::textAt
Change-Id: Ibada4af8b7bf76bb61fa45b00ac37bb8ed8a56b2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 07:57:26 +00:00
hjk e75b81b0a8 QtSupport: Use current aspect ctor pattern for Qml related aspect
Task-number: QTCREATORBUG-29168
Change-Id: I3779ed4075dc98ccafc2490009d1217e908ad83c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 07:55:32 +00:00
hjk 382e003deb BareMetal: Use aspects more directly in run configurations
Task-number: QTCREATORBUG-29168
Change-Id: I28c90ab76a34e652f6cc8d56aa326b7ee8634cb2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 07:33:36 +00:00
hjk a98e6f63b7 BareMetal: Adapt DebugServerProvidersSettingsPage to latest changes
Task-number: QTCREATORBUG-29167
Change-Id: I14c7330b3ede0fc550291412791cb69fedefe62c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-07 07:23:19 +00:00
Marcus Tillmanns d18768b53a CMakeProjectManager: Use more FilePath
Change-Id: Ifa3e754c224cd6ec315d49cd825aa78ac59b5ad9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-07 07:08:36 +00:00
David Schulz 2a61736264 Utils: make select at column 0-based
Change-Id: I514611cbd887eec6e46c80e5a2964c04ad05fdf2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 06:53:26 +00:00
David Schulz 78630dac07 Editor: simplify RefactoringChanges::openEditor
Change-Id: Ia095ab3d24f8f5822954976db5353c925f0b4256
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-07 06:49:04 +00:00
Orgad Shaneh 5bd2cd0115 Git: Fix crash when fetch is done while context menu is active
Blind shot.

Task-number: QTCREATORBUG-29266
Change-Id: Ie9e8be9e6ead7a3c49cdde7c3b80b4735f7b19af
Reviewed-by: hjk <hjk@qt.io>
2023-07-07 05:52:34 +00:00
hjk b3df9a4fcf Python: Centralize interpreter specific function in the aspect
... and expose that instead of the PythonRunConfiguration.

This makes the PythonRunConfiguration more the container of aspects,
similar to where the other runconfigs move.

Change-Id: Ibc76b706f2d4d334640ea8f3b91343f9e7c0f566
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-07-07 05:20:48 +00:00
Jarek Kobus 7a28ed76b8 BaseFileFind: Make searchDir() non-virtual
Replace FindInFiles::pathChanged() with
BaseFileFind::searchDirChanged().

Change-Id: I3cbe507968391fe45f513490424a7fe6fbbffee1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-06 18:45:26 +00:00
Jarek Kobus bf09d17992 BaseFileFind: Replace additionalParameters() with searchDir()
The FileFindParameters::additionalParameters,
holding QVariant, was ambiguous. Since GitGrep and
SilverSearcher need a search directory input
unconditionally, replace the additionalParameters field
with searchDir of FilePath type. For Internal
search engine, this field isn't used - the searchDir
is already passed in FindInFiles::fileContainerProvider()
with lambda capture; for other BaseFileFind subclasses,
not combined with non-Internal search engine, the field
isn't used anyway.

This change closes the chain of patches to eliminate
the usage of ambiguous QVariant type inside FileFindParameters.

Change-Id: Icddd1cfe46e86ea892221862d9d267f9c9fa173c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-06 18:45:19 +00:00
Jarek Kobus cf7a41e963 BaseFileFind: Get rid of executeSearch()
Use FileFindParameters::searchExecutor directly instead.

Change-Id: I03e5018c8094b69d3b21a4630956514b3abc7a1d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-06 18:45:11 +00:00
Jarek Kobus 453452864f FileFindParameters: Get rid of searchEngineParameters field
Get rid of ambiguous searchEngineParameters QVariant.
Pass the custom parameters through the lambda captures
of the SearchEngine::searchExecutor() overloads.

Change-Id: I971a3871199a17200ec662392dfd7095a7a56a50
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-06 18:45:02 +00:00
Jarek Kobus 51beff5644 FileFindParameters: Get rid of searchEngineIndex field
Change-Id: I75301de5fff471cf914da1bbbf8a2f526810ab0e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-06 18:44:54 +00:00
Jarek Kobus 731f61c30d SearchEngine: Replace executeSearch() with searchExecutor()
Change-Id: Icce615d0cedef35ff4278f9ecfffa415b1aa0386
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-06 18:44:44 +00:00
Alessandro Portale e02e122991 Vcpkg: Generate CMakeLists.txt code
Provide the contents of the "usage" file for copy & pasting into
CMakeLists.txt. If the "usage" file is not available, provide the same
heuristic code that vcpkg generates.

Task-number: QTCREATORBUG-29333
Change-Id: I3daba7616451a43f93fd8f2e0353542ec5a2c48b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-06 17:46:29 +00:00
Alessandro Portale 2df86fee6a Vcpkg: Parse dependencies from vcpkg.json manifest
Also, extend the tests accordingly.

Task-number: QTCREATORBUG-29333
Change-Id: I24104b6b0bdbbd47c36cc4d43f4647169fa619d8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-06 17:41:49 +00:00
Jarek Kobus 619c49958c ClangTools: Get rid of ClangToolRunWorker
Task-number: QTCREATORBUG-29168
Change-Id: I07ae5cd23124e43878d2f929d7dcb4fe84e8b28c
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 15:25:03 +00:00
Jarek Kobus e5ed299fa9 ClangTool: Some cleanup
Change-Id: I60258c79262a33062617ac0179147fc4ef1b1a6e
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 15:24:58 +00:00
Jarek Kobus f9fb3f4872 ClangTool: Transform ClangToolRunWorker into runRecipe
Task-number: QTCREATORBUG-29168
Change-Id: I1b42de2d148c84393b44c84730c8535a1d2a389c
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 15:24:52 +00:00
hjk 552b325072 Vcpkg: Compile fix
Amends 573f3e7185 which went in too early.

Change-Id: Ied93fd585aa26cb931f3acf13b55fbf7dbe0c163
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 14:29:22 +00:00
Marcus Tillmanns 77edffe3cf Debugger: Support linux remote debugging with LLDB
Adds support for Linux remote debugging with lldb-server

Change-Id: I3ee08704a3116030111df75273a46a2e4888f98e
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 14:22:50 +00:00
hjk fd83aa0bf7 CMake: Don't guess at build config when not needed
Change-Id: I0d7fb0a25103d2cf5bfb9b2d54bae18a91010c49
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-06 13:53:38 +00:00
Alessandro Portale a255ec3c84 Core: Cleanup OutputPaneManager class declaration a bit
Some members were only accessed locally.

Change-Id: I217da1028d7365b8ed5c188136eea1b56175d715
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-06 13:13:02 +00:00
Alessandro Portale bff07c9ef6 Core: Use LayoutBuilder for OutputPaneManager
Change-Id: I071491c69bc4aad9b629d9b275f256521205c8cf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-06 13:12:51 +00:00
hjk b1f001dbd4 Vcpgk: Consolidate plugin setup code
Change-Id: If698d9e28ba86f536416fda6090b297c16159a72
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 13:02:42 +00:00
hjk 573f3e7185 Vcpkg: Delay VcpkgSettings creation until first use
Task-number: QTCREATORBUG-29167
Change-Id: I249aed1661a6435d9c4bf1e1be1f7750cca4fce8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 13:02:02 +00:00
David Schulz e7e3da0893 Python: Fix updating the python venv chooser state label
Change-Id: I45aa1495388dc58b541814430d1b4dfbd80ec677
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 13:00:42 +00:00
David Schulz 09c3413cf3 Utils: emit validChanged for the delayed valid check
of FancyLineEdit and PathChooser

Change-Id: I9719d32928d8166dfae7844af4eefc94ca143eb1
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 13:00:36 +00:00
Robert Löhning c5a0ae6f34 SquishTests: Require Python3
Change-Id: I6e53b3bf90d4d125315e4fa8d0877e8b76b6b3c5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 12:40:39 +00:00
hjk b196f5f032 ProjectExplorer: Add a some convenience *Aspect::operator()()
Similar to TypedAspect::operator()().

Task-number: QTCREATORBUG-29168
Change-Id: If8d5ad90e30e66309c4a4a06d9f96011efd00066
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 12:18:59 +00:00
Jarek Kobus a5ecc6207b RunControl: Integrate alternative task tree mode
Task-number: QTCREATORBUG-29168
Change-Id: Ida6d84b83b0f66b6f22701912b0d2c2d0cfb25d4
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 11:57:17 +00:00
David Schulz c58bf7f5b8 Editor: avoid accessing the widget from the FontSettingsPage
Change-Id: I51dbf4d1c7384f460b84da9602c10667addabebb
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 11:49:00 +00:00
Jarek Kobus 596a687b41 RunControl: Add postMessage()
Get rid of RunWorker::appendMessageChunk().
Reuse postMessage() in RunWorker::appendMessage().
Reuse it also in ClangTool and RunControlPrivate::showError().

Change-Id: I719a97385e675e7ee3075fcd5343dbcaab68bef7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 08:52:34 +00:00
hjk 3fab8be4b1 QmakeProjectManager: Delay settings creation until first use
The guinea pig.

Task-number: QTCREATORBUG-29167
Change-Id: Id0cbe77a5d7fcebbec71cd85cd017a71a0cba8ee
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 08:50:18 +00:00
hjk c4294bea23 Core: Add the IOptionsPage::setSettingsProvider
This allows creating the options page without having the
settings object already present, potentially delaying
its creation until its first truly necessary use.

Task-number: QTCREATORBUG-29167
Change-Id: I004fb19f0ea2b7e500747b3905283d74f749cd78
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 08:49:34 +00:00
hjk 890cc2ba76 Autotools: Streamline plugin setup
Change-Id: I1a2ac742a3ac055c313d3af0a7173e380ca6070a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 08:34:23 +00:00
Jarek Kobus 10d96d8e22 AppOutputPane: Make appendMessage() private
Change-Id: Ib9ac2a62a1ea64fcbc61b8a425c5c1061247a8ba
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 08:33:00 +00:00
Eike Ziller 609510c323 Merge remote-tracking branch 'origin/11.0'
Conflicts:
	doc/qtdesignstudio/src/views/qtquick-designer.qdoc

Change-Id: I5d7ea23e356add0cbb2ad01ceb5e433377dc51c2
2023-07-06 09:49:11 +02:00
hjk 29aba31741 Meson: Use Aspects more directly in MesonRunConfiguration
Change-Id: I6553d5651ba7006e683bd74c8e48fa3acd8d5246
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 07:19:42 +00:00
Eike Ziller ca3f7a7bb2 Wizards: Improve the bundle id for mac/iOS
If an iOS developer doesn't have a wildcard app identifier registered,
the app identifier must be in some sense "unique". So just
"my.example.com" creates issues in this situation.

Qt >= 6.1 tries to set a better bundle id, reading Xcode settings for
the last used prefix there, and Qt 6.4 improves on that in case this
Xcode setting is not available. So, try to use this mechanism in the
wizards.

Even with the automatic deduction of a bundle id, this might be
completely wrong (the Xcode setting is whatever was used last in a Xcode
wizard, regardless of target platform, it can be different for different
users, or for different teams that the user works in), and Qt doesn't
set it for macOS, so aside from out-of-the-box experience the user
should set an explicit bundle at some point.

So, keep the CMake property mentioned with a comment in any case.

Fixes: QTCREATORBUG-29340
Change-Id: I9dacae5c693ec2e23a9cf8bad660ad939303dbf3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2023-07-06 07:14:00 +00:00
Leena Miettinen d9e001c50d Doc: Move keyboard shortcut instructions to how-to topics
Hide information about using features that were hidden in QDS.

Task-number: QTCREATORBUG-29361
Change-Id: I504634091c518d03d1d9e849205293bffc4955b3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-06 06:58:38 +00:00
hjk 135a7682f5 ProjectExplorer: Make more aspects directly usable in AspectContainers
Change-Id: I6634c27c8d516411ad84e6cb7c361262ead53124
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 05:23:04 +00:00
Cristian Adam 0445bef1c8 CMake: revert QTC_ environment variable usage for preset
Amends 85ed23e639537d7f9e473c0fd3d016075433a225

Keep the hidden part, but the usage of "QTC_BUILD_PLUGINS" :
"$penv{QTC_BUILD_PLUGINS};Terminal" doesn't work because the parent
environment will be used and not the ancestor preset's environment.

Terminal will have to be enabled in the child presets via
`"BUILD_PLUGIN_TERMINAL": true` in the "cacheVariables" section.

Change-Id: I73c850a47d075a639810ed3aed5ceeb2e25b18de
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-05 17:26:28 +00:00