Commit Graph

82976 Commits

Author SHA1 Message Date
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
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
Cristian Adam
0fde41906a CMake: Fix CMakePresets.json
Syntax error, trailing comma.

Amends 85ed23e639537d7f9e473c0fd3d016075433a225

Change-Id: I972099822c3a0ac682e3d1b5fe8f63ae92ad8d1d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-05 17:00:28 +00:00
Cristian Adam
91222c3a81 CMake: Fix the minimal configure preset
By default hidden, so a user will have to have a `CMakeUserPresets.json`
file to inherit from it.

Changed `BUILD_PLUGINS` and `BUILD_EXECUTABLES` as environment variables
prefixed with `QTC_`. Qt Creator's CMake API will check these
environment variables.

Having them as environment variables allows a `CMakeUserPresets.json` to
expand the list like:

```
"environment" : {
 "QTC_BUILD_PLUGINS" : "$penv{QTC_BUILD_PLUGINS};Terminal"
}
```

With `cacheVariables` this is not possible.

Task-number: QTCREATORBUG-29137
Change-Id: I925038d90806036abe4610e5c864b72d32960076
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-05 16:24:35 +00:00
Haowei Hsu
745346cf31 .gitignore: Ignore CMakeUserPreset.json
And add a template of CMakeUserPresets.json for
building on Windows platform in README.md

Fixes: QTCREATORBUG-29137
Change-Id: I359a9894e448acb1203de0c6acfc508e65655c03
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-05 15:44:35 +00:00
Marcus Tillmanns
f02d0354c4 Terminal: Dont show process exit code
Show it as a "flashing" message instead

Fixes: QTCREATORBUG-29373
Change-Id: Ib9e7280a1b80cc52835aecb954f80e9daa80f7ca
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-07-05 15:39:29 +00:00
hjk
02ac595a2e LayoutBuilder: Add some playground for potential implementations
Change-Id: I0955c503dc03f9e4d81d6cfe4df7af63cf86a638
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-05 14:26:06 +00:00
Cristian Adam
fe8c276d11 CMakePM: Auto detect generator when not specified in presets
Qt Creator would do a compiler probe for CMake presets when the compiler
was not set.

But the same needs to be done when the generator is not set. Otherwise
Qt Creator would set a different generator by default. On Windows is
"Ninja".

This is different from what CMake does from command line.

Task-number: QTCREATORBUG-28693
Change-Id: I96e917b11561a042f9476bad302f3f153e37bafd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-05 14:02:48 +00:00
Leena Miettinen
a0f0f9c69b Doc: Update tutorials
- Use \ingroup creator-tutorials to group tutorials
- Use \annotatedlist to automatically generate tables that list tutorials
- Add \brief commands to add descriptions to the tables
- Remove some leftover descriptions from the Qt Quick Application
  wizard template docs
- Fix references to UI text
- Write "you" instead of "we"
- Use curly braces to define alt text for images
- Some language fixes

Task-number: QTCREATORBUG-28996
Change-Id: I4b611319b6867cae11d613e0a4d075923cdb037e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-05 13:48:04 +00:00
Alessandro Portale
f373297af2 Vcpkg: Polish search/add package dialog strings
...as suggested after UX review.

Change-Id: I9f96d919a46c9e1a33e3396aca878bb520464f33
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-07-05 13:41:56 +00:00
Cristian Adam
6235d9b8cc CMakePM: use string form for architecture / toolset preset fields
Documentation mentions:

"Each may be either a string or an object" and "If no strategy field is
given, or if the field uses the string form rather than the object form,
the behavior is the same as 'set'"

Task-number: QTCREATORBUG-28693
Change-Id: Idd8cdffb94e9a943e0b133a63c628d9d8d54eb20
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-07-05 13:28:28 +00:00
hjk
739f835ef1 ProjectExplorer: Remove unusual {Arguments,WorkingDir}Aspect
Follows suite to 2cc4967 to have the user side code more uniform.
Most of the extra verbosity (setMacroExpander) can go away again
when distributing the expander via the "owning" AspectContainer.

Change-Id: I9e80cb235f0a4a9ebee601dd638aefbaa41efc1b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-05 12:55:31 +00:00
Alessandro Portale
b4dd53f9fe Vcpkg: Fix the plugin string translation context
It is supposed to start with "QtC::"

Change-Id: I9cb0b34bc7c42b4cfb58753ceb36db532e2236db
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-05 12:53:25 +00:00
Christian Stenger
cdea404957 SquishTests: Fix welcome page test
When the view is populated and sorted it gets its items
one by one. If multiple matches for opening an example are
possible we may end up using the wrong one which in turn
makes the test error out. So, wait for an expected amount
of items.

Change-Id: If6f6abfa757ede33311a8e617ab7d570df1240a4
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-07-05 11:57:05 +00:00
Leena Miettinen
707d3dd7aa Doc: Move sidebar view docs into separate topics
- Link the topics from "Show and hide sidebars"
- Hide "Working in Edit Mode" from QDS because the Edit mode is
  hidden by default there
- Fix links to the new topics and remove links to
  "Browsing Project Contents"

Task-number: QTCREATORBUG-29361
Change-Id: Ia9ae6474bf0925a76f9ccee693369d2460b9266f
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-07-05 11:28:16 +00:00
Leena Miettinen
72c401d9ce Doc: Add a disclaimer about disabling plugins
Change-Id: Ib75b4e88c24ad13693ef02e76de74ba23dcb9e04
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-05 11:19:17 +00:00