Commit Graph

81489 Commits

Author SHA1 Message Date
Marcus Tillmanns 9d6597105b Terminal: Fix process staying alive
When starting a Terminal Process with TerminalMode::Detached,
the Process object was not deleted on app exit and therefor
created warnings on exit.

This patch changes it so that the osascript does not wait for the
process to exit and therefor exits pretty much immediately which
deletes the Process object.

Fixes: QTCREATORBUG-29375
Change-Id: I08e8b753c98011fdafc32f03886b5c0be7aec801
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-07 07:08:22 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Marco Bubke ef8dcbdfa8 StudioWelcome: fix signedness warning
Change-Id: Iffa90513ce0cbb0df5480a59bdf371c1d6da5a00
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-05 11:05:01 +00:00
David Schulz 1dbeb17841 Editor: Fix painting overlay selection
The border around the selection overlaps the line rect, so in order to
correctly repaint the selection when scrolling we need to widen the
prefiltering of painted selection.

Change-Id: I953749571e3e9ae412bf05f47ab3c4c3bfb8861e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-05 09:22:11 +00:00
Christian Kandeler c732667838 QmakeProjectManager: Prevent infinite loop on ABI change
Fixes: QTCREATORBUG-29204
Change-Id: I6f4e4fa96f6c48dc83f0e5baf2205421b9ff67ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-05 08:58:38 +00:00
Marcus Tillmanns f23103467a Terminal: Remove unnecessary echo
Fixes: QTCREATORBUG-29354
Change-Id: Ie6ddd127fecef3f48e56ca17335b21afaab31365
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-05 08:28:17 +00:00
Eike Ziller 3f912c01fb Doc/Extending: Update "getting and building" page
qmake files were still referenced.
Do not focus on building Qt Creator, we ship a development package
nowadays which is preferred.

Change-Id: If209f48c0fcf4f8fbe87ecaddae826ad3a63c209
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-05 06:10:57 +00:00
Eike Ziller 3b4a852637 German translation: QmlJS(Editor|Tools|Preview|Profiler)
Change-Id: I2643131f416f0c8cd60766882faba07a337e5f25
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-05 06:10:36 +00:00
Eike Ziller fbdbaa8a84 German translation: Utils, Valgrind, VcsBase
Change-Id: Ib0fa7a241450c9ceabef746b83b4df533e60875c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-05 06:10:26 +00:00
Eike Ziller fbd8bbff47 German translation: Python, qmt, ScxmlEditor, TextEditor
Change-Id: I8f3561f69c0df09b01cef7c08e61b297d599076a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-05 06:10:18 +00:00
Eike Ziller 9804186523 German translation: Update Bookmarks, CMake, Core, CppEditor
Change-Id: Ie866b45390e9e37e825ad339f8ca6688fd7c6f7e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-05 06:10:04 +00:00
Eike Ziller 4e9b45dc5b German translation: LanguageClient, ModelEditor, Perforce, PerfProfiler
Change-Id: I0ae68cc3f2dff8044023d5a70d3b45f93543bc6b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-05 06:09:56 +00:00
Eike Ziller a841add9bf German translation: Debugger, FakeVim, Fossil, Git, Help
Change-Id: I77bd7d5e38510e60bf34087b32418ea9f47411f4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-05 06:09:49 +00:00
Cristian Adam 09a0c0ec15 Auto-setup: Forward CMAKE_<LANG>_STANDARD to conan/vcpkg
Fixes: QTCREATORBUG-29292
Change-Id: Iee0b0639841d11fa14dcb57c1a4f9b4678aa0e2b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
v11.0.0-rc1
2023-07-04 16:46:49 +00:00
Robert Löhning 1487f1a0c0 SquishTests: Make sure tst_git_local cleans up properly
Creator still writes gitProject.pro.user after cleanup() ran.

Change-Id: I78c8247090a7032b21ee3a763fd390bb16f3d24b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-04 12:27:45 +00:00
David Schulz 5c7cbe802a Python: reduce the timeout of version check commands
Task-number: QTCREATORBUG-29363
Change-Id: Id7583c876dc2a8c92eae4dd68bda47dffafd6e3d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-04 11:59:12 +00:00
Leena Miettinen a23b933308 Doc: Combine "Working with Sidebars" and "Show and hide sidebars"
- Sidebars are hidden in QDS and the views can be added to
  workspaces, so hide references to sidebars on the QDS side.

Task-number: QTCREATORBUG-29361
Change-Id: Ic468f6f818bddb391bd9514d273ecf8b6b412187
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-07-04 11:12:30 +00:00
Leena Miettinen 1956b0f698 Doc: Combine two topics about selecting modes into one
Move information from "Selecting Modes" to "Switch between modes".
Hide it from the QDS Manual because modes are hidden by default in QDS.

Task-number: QTCREATORBUG-28996
Change-Id: I6d281fe9364e191616af3a8ac484dd0a7d6a3156
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-07-04 11:12:20 +00:00
Leena Miettinen 0f409b7ae8 Doc: Move details of managing plugins into How-to topics
...from Configuring Qt Creator

Create "Enable and disable plugins" and "Install plugins" topics.

Task-number: QTCREATORBUG-29361
Change-Id: I51fdfad1cd7d210a72cf08ef3e82f08ae8c6ecac
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-04 11:06:13 +00:00
Leena Miettinen 95074bf2a3 Doc: Update screenshots of output views
The Next and Previous icons were changed.

Task-number: QTCREATORBUG-28996
Change-Id: Ic90a458fdc500f8978ff1d51e293928c322c3091
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-04 11:05:23 +00:00
hjk 9f44032840 QtSupport: Use better value for remote QTDIR env variables
It does not really seem to be used in earnetst anymore, but
it shouldn't contain the scheme://host decoration.

Change-Id: Ieba416e0a73d247d80d1c5cce79858b1896e13ea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-04 10:30:37 +00:00
Eike Ziller 0c31474ed3 Wizards/CMake: Make sure GNUInstallDirs is included
Qt 6.4 automatically includes GNUInstallDirs, but before that it didn't.
And for the "plain" projects Qt isn't even used. Since the project
templates use CMAKE_INSTALL_LIBDIR etc, they must ensure themselves that
these are actually available.

Fixes: QTCREATORBUG-29067
Change-Id: Id304b829301a33720d8f6c4a9c89157e8fc1c4a9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2023-07-04 09:29:20 +00:00
Christian Kandeler 20cb9b6e69 ClangCodeModel: Do not call FilePath::exists() on random strings
Fixes: QTCREATORBUG-29356
Change-Id: I6f4d89a6823829a7ecf16200786621321fea61a5
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-04 08:36:40 +00:00
Leena Miettinen 7977d3ac37 Doc: Update Copilot docs
- Update screenshot
- Add disclaimer
- Describe rejecting suggestions

Task-number: QTCREATORBUG-28996
Change-Id: I5b30c8f8760f5684e31beb534754d03684d3c394
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-04 07:29:54 +00:00