Commit Graph

85691 Commits

Author SHA1 Message Date
Christian Stenger
e5acc8b072 SquishTests: Fix verification of debugger detection
There are now generic debuggers registered - adapt the test accordingly.

Change-Id: I102ac0ac44666c4da17ff6ea01f048abba66e6e7
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-07-07 04:28:25 +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
Marco Bubke
635e0d6969 Utils: Make ssize and usize more generic
It now works for all container which implement std::size like C arrays.

Change-Id: I9ccf2c50b4e7518e44890b52686d5561358bcf8d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-06 14:29:32 +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
Eike Ziller
b1423c5818 German translation: ProjectExplorer
Change-Id: I514f163cb7e0489a06ac6d684630b40cf18e7f39
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-07-06 14:23:49 +00:00
Eike Ziller
8d749874c6 German translation: Terminal
Change-Id: I358fd63b2ca039a8f03eef527fa9171787e3619b
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-06 14:23:36 +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
Cristian Adam
e33b8137df CMakePM: Handle qml debugging for CMake presets
Fixes: QTCREATORBUG-29311
Change-Id: I437d008a3625156e6a42f2ecaee71744bd9098f6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-06 14:08:14 +00:00
Thomas Hartmann
b85eb8aa04 QmlDesigner: Keep context as background
When drilling into components we keep the context as an image
in the background.

Change-Id: I12c291ab1cff02d30f53f92ccd9a551a9dd63704
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-07-06 14:08:06 +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
Eike Ziller
3befa60970 Fix permanently disabled menus
after switching to QmlDesigner and back.

Do not fiddle with the enabled state of the menus, they are managed
automatically by ActionContainer, depending on enabled state of the
actions they contain. Only enabling them in Design mode is the wrong
thing to do.

Amends 4642c5fd7d

Fixes: QTCREATORBUG-29268
Change-Id: I3c5704edf787f424f9a9e5e9cb363bbd410db3f2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-06 13:52:11 +00:00
Eike Ziller
b5086172cc Fix button states at startup
When opening Qt Creator with clean settings, the run, debug and build
actions build be in the wrong state (enabled instead of disabled, no
debug icon).

This happened because a ProjectExplorer::updateActions call was removed
from the end of restoring the session at startup when moving the session
handling to Core plugin.

That updateActions call shouldn't be necesseray, and isn't if a session
is loaded, even if it is the "implicit default", because then
sessionLoaded(...) is emitted which results in the updateActions() call.

The sessionLoaded(...) signal was not sent if the file for the default
session does not exist. Fix that by also sending the signal even if no
file was actually loaded.

Amends cbeac777a6

Change-Id: Idb625253f29611e777d85f0feb6c196fae567ed0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-06 13:21:18 +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
Christian Stenger
7439fe2bd1 Debugger: Silence soft assert
Change-Id: I4966a29ecd09d7ecdc049588ec2747218d45f349
Reviewed-by: hjk <hjk@qt.io>
2023-07-06 12:13:41 +00:00
Christian Stenger
f1637f53ec QtcJson: Fix warning for Qbs build
Change-Id: I8ca6c0494317e7ffd2f64b51380b2dceaf204189
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-06 12:13:35 +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
Robert Löhning
0a4e671ab8 SquishTests: Update session dialog
Change-Id: I76919f48e2301c1815eaac39f81e42fa12f59a86
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 10:56:28 +00:00
Robert Löhning
997570cb29 SquishTests: Update kit removal function
The names of the kits don't change anymore before clicking "Apply".

Change-Id: I1477b419053f75c4f761561808fc4c6e5d21b19d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 10:44:58 +00:00
David Schulz
86191221b8 Copilot: fix crash on explicitly completion request
Change-Id: I6bdbc25063818399f1d2c81b9e8f7508f57a4b72
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-06 10:26:17 +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
Leena Miettinen
615a1e52d5 Doc: Remove help icon from tutorials topic
It was used in two places and other similar topics as Tutorials
did not have an icon.

Change-Id: I79c3502565958fd9f88889603d87ca1fab9d99e3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-06 07:49:28 +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
Christian Kandeler
0dde633887 Meson: Fix tool argument UI setup
The line edit needs to be initialized with the stored arguments.

Fixes: QTCREATORBUG-29351
Change-Id: I9c4e0eed05a5c00520aebf1c6c4ea3cf17ef17df
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-06 07:49:08 +00: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
Mats Honkamaa
ccdf0730df Doc: Update camera align buttons docs
Task-number: QDS-10096
Change-Id: I3c513cfdf2f71df7f465c37ec6e007455ec6b67b
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tanja Remes <tanja.remes@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-07-06 06:10: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