Commit Graph

85691 Commits

Author SHA1 Message Date
Dominik Holland
23da92e60b AppMan: Improve RunControl handling
* Native Runtime apps are now supported properly
* Support using a vanilla appman-controller by NOT closing the write
  channel.

Change-Id: If2d4367595f12f0e46a8dbcda4a26d5dc03be324
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 12:57:08 +00:00
Dominik Holland
fe6dd92f99 ProjectExplorer: Allow to set the ProcessMode in SimpleTargetRunner
Change-Id: I92bdd355159da2ea9c0f913c8238696a93918ce8
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 12:56:27 +00:00
Eike Ziller
f8ac4a9744 FancyMainWindow: Save collapse state
Change-Id: I5ed336eff1eb5381c3033b2bde2db0df1576ee78
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-01-11 12:55:15 +00:00
hjk
d362129432 Core: Some initial documentation for ActionBuilder
Only a few functions for starters.

Change-Id: I66d1faaf7a94061a19586e3a806fdc596715f053
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-01-11 12:28:44 +00:00
Christian Kandeler
063234c179 ProjectExplorer: Fix CustomToolChain::operator==
We need to take the compiler command into account.

Fixes: QTCREATORBUG-30133
Change-Id: I5f120d4b3e41cbeeae255a2566332389d3eba508
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 12:12:25 +00:00
Dominik Holland
d0fa07ea88 AppMan: Remove automatic B2Qt Device cloning code
Change-Id: I3d2c39be9ae95f016197a388af44055c9c454e3b
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 11:51:33 +00:00
Jarek Kobus
1f41e408e0 TaskTree: Simplify recipe in ImageScaling example
Change-Id: Ieda5a7b06098cc2b90c69db79b7a002345a68f44
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 11:51:30 +00:00
Dominik Holland
627d764b33 QMake: Remove Appman specific variables and exports
Those are not used anymore.

Change-Id: I86b53b91d3ada46a4a125cde9530bb325826fbf2
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 11:51:21 +00:00
Dominik Holland
cacbe7f470 AppMan: Remove qmake support
The new plugin will only support CMake for now.

Change-Id: Ibe61642403272ecc6b6d3ce032591a841c42c8a4
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 11:51:03 +00:00
Jarek Kobus
8ab7f1bd1d DebuggerMainWindow: Avoid using keys()
Instead, iterate directly over the container.

Change-Id: I13291bac9722ca87aa2f945342e04933c37d109f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-11 11:48:39 +00:00
Jarek Kobus
7c0b831391 TaskTree: Implement TrafficLight example
Import from:
https://github.com/qt/qtscxml/tree/dev/examples/scxml/trafficlight-common
and implement it in terms of TaskTree.
The recipe() corresponds to trafficlight.scxml file and implements
the business logic.

Used components: TimeoutTask and BarrierTask.

Change-Id: Ifc08b947388abed8cfc85ba082aaa0b18da0a1d7
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-11 11:36:06 +00:00
Mathias Hasselmann
a63368efdd Markdown: Use regular text editor's toolbar
This allows to have custom toolbar actions while preserving the regular
text editor actions.

Fixes: QTCREATORBUG-30166
Change-Id: I4a22f415d05d80355cfdbe4a2c61501af2292e85
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-11 11:35:19 +00:00
Jarek Kobus
e8904041c2 TaskTree: Introduce Forever group
Rename Forever -> LoopForever, Repeat -> LoopRepeat.

Change-Id: Ic999c876762d2b092f23ae88ea6de341b68a1fc2
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 11:34:43 +00:00
Mathias Hasselmann
2e353aa1b2 TextEditor: Give access to m_toolBarWidget
The TextEditor doesn't export its actual toolbar via IEditor::toolBar(),
but an internal container widget. This forces other editors that want to
reuse TextEditorWidget to poke into internal details of TextEditorWidget
if they want to provide the full toolbar including line number button.

By giving access to m_toolBarWidget, other editors like the Markdown
editor can show the full toolbar including line numbers without risking
to break, if TextEditorWidget should refactor its toolbar container.

Task-number: QTCREATORBUG-30166
Change-Id: Ic54f21be1897f00801c6a3cfe29c89131d61e3a5
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-11 11:34:05 +00:00
Mathias Hasselmann
5be8110137 CMake: Fix MinGW builds with BUILD_WITH_PCH=OFF
Set the minimum required Windows version not only for PCH builds, but
also for builds without precompiled headers. While there also increase
the minimum required Windows version: Qt 6 already requires Windows 10.
Therefore its safe to require the same API level for Qt Creator.

Fixes: QTCREATORBUG-30189
Change-Id: Icbbc63657e3c64be1151dda06004234d56e33990
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-11 11:32:55 +00:00
hjk
1936103fe6 AppMan: Use current setup pattern for build steps
Change-Id: Ia69b9ea67fdec6a33f13fba665ee4589e82a2574
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 11:22:52 +00:00
Artem Sokolovskii
f6cc15c2b7 SyntaxHighlighter: Fix crash for annotation highlighters
Change-Id: I439c0581e197f59276095b37361ccf52f97e50d2
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-11 11:11:42 +00:00
Jarek Kobus
9dd3ab12f5 tst_settings.cpp: Get rid of Utils namespace specifier
We are already using namespace Utils in this file.

Change-Id: I6e2f431029bbc27f425be2ad618a98733b618222
Reviewed-by: hjk <hjk@qt.io>
2024-01-11 10:53:18 +00:00
David Schulz
2e96194681 LanguageClient: also check for inherited mime types
... when trying to auto setup language servers as well when matching the
configured mime types against a document mime type.
In particular this fixes showing the auto setup editor info bar for the
newly introduced clang format mime type as well as starting the yaml
server for those files, since this clang format mime type inherits the
yaml mime type.

Change-Id: Id3ec64b0a1a128b070eadbcad600b3aaf4e667c3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-01-11 10:34:57 +00:00
hjk
6adb82eabc Core: Use new setup pattern for OpenEditorsViewFactory
Change-Id: Ice38c0c0a8fd927db61ec639a8d6d8a7ea01d421
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-11 10:33:05 +00:00
hjk
101a6193a5 Core: Some code cosmetics in FolderNavigationWidget
Change-Id: I75e78cbd8707bf47b12bdb1bc497514da90ac4f6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-11 10:32:30 +00:00
hjk
06c9898dbf HelloWorld: Move the plugin class definition to the .cpp
The latest trend.

Change-Id: Ic70739dec71e2102735021f5cf152abae6dfea12
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-11 10:32:20 +00:00
hjk
28b06e89d5 Core: Use ActionBuilder in FolderNavigationWidgetFactory
Change-Id: I1f113724c2c9aba6657bddcc9ecfa9c0f151a7e8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-11 10:07:19 +00:00
Leena Miettinen
fa17c9b8fa Doc: List Kit preferences under Preferences > Kits
Add "\target kits-tab" for the Kits tab docs because the links need to
be unique.

Task-number: QTCREATORBUG-29361
Change-Id: I76058c521a4e2c08f24ea2f03846bef6eac9716a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-11 09:11:44 +00:00
Eike Ziller
65af79af84 ExternalTool: Fix output handling for General Messages
The handling of lines was wrong and only happened to work if the output
was delivered in one batch. Otherwise it would add line breaks - and if
the tool output was delivered not in batches of lines, that could break
in the middle of output lines.

Change to code to use the Process API for handling lines of output.
That also makes the codec handling in ExternalTool unnecessary. The
corresponding members can be removed in the next binary incompatible
release.

Fixes: QTCREATORBUG-29977
Change-Id: I9d37e5e374a43f34a28418272692cca17599c8b4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-11 09:05:44 +00:00
Jarek Kobus
cdb5514040 AppMan: Avoid using keys()
Instead, iterate directly over the container.

Change-Id: I56fbd18acd2faec7596141990f87e5be4f122639
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-11 08:37:49 +00:00
Jarek Kobus
b1da5533aa SemanticTokenSupport: Avoid using keys()
Instead, iterate directly over the container.

Change-Id: Ice5ec7c6aaf2e0f0d1090414e57bc1c03689f28f
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-11 08:34:08 +00:00
Jarek Kobus
5f5d9e4b0b LocatorSettings: Avoid using keys()
Instead, iterate directly over the container.

Change-Id: I55cbc374e5d6a068b8cd9e2febcdcc0ab5381677
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-01-11 08:33:55 +00:00
Eike Ziller
150441bf88 iOS: Avoid iostool for info gathering if possible
Previously we had a small workaround for retrieving the state of
developer mode for iOS 17 devices integrated into our own iostool.

Instead use devicectl for gathering device information for devices that
it can handle, and only fall back to iostool for the devices that it
cannot handle.

Since iostool cannot handle deployment, running, and debugging for
iOS 17 devices anyway, the end goal would be to only use devicectl
for these.

Also add a TaskTree wrapper for IosToolHandler for convenience.

Change-Id: I5bcd09eb354c2dce9b21e62e140de16f2e740d6e
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-11 07:38:11 +00:00
Christian Stenger
e595c3f615 AppMan: Fix qbs build
Amends 3916a0637a.

Change-Id: Id18e85d8d0db08c72b86a63488437290cdcb5328
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-11 06:36:20 +00:00
Christian Stenger
e9f4b319a6 AutoTest: Fix location parsing for Qt Test
There are multiple ways to print the location depending on
the OS the test is executed on.
Do not "parse" again the location string, but use named
captures instead as they are present anyhow.
Former approach would return no location in case the location
would be printed like /path/to/file:10 which might be used on
UNIX.

Task-number: QTCREATORBUG-30143
Change-Id: If48bd0d9d9d8121522a44dfa69a15a0ccabde708
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2024-01-11 05:39:03 +00:00
Jarek Kobus
981a0160a2 AppMan: Compile fix
Amends 3916a0637a

Change-Id: Ic93f356a14dcb1be349acec002b87abbaedfee71
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-01-10 21:13:25 +00:00
Dominik Holland
3916a0637a Appman: Initial CMake integration
* Detection of packages created using CMake API
* Run target for all detected packages
* Special CMake package step for installable packages
* Run/Debug of builtin apps
* Package/Install/Run/Debug of installable packages
* Works locally and with Remote Linux

Change-Id: Ic297ba04f20caf0a5383ed016d759e654864a065
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-10 16:47:52 +00:00
Alessandro Portale
5e1993e0ae Core: Fix size of expand tool button in SearchResultWindow
In "Relaxed" mode it was a bit to small.

Change-Id: Ie611ce876206967221f696da639f940e59dbac29
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-01-10 15:30:23 +00:00
Alessandro Portale
b2c66ed56f Docs: Correct "-no-crashcheck" cli option
It has a dash, now.

Change-Id: Id4a7b6efba1a0d7d9a6ea3e73dd04a196892b456
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-01-10 15:30:07 +00:00
The Qt Project
820881afc4 Merge "Merge remote-tracking branch 'origin/12.0'" 2024-01-10 15:25:29 +00:00
Eike Ziller
3e40f227f5 Merge remote-tracking branch 'origin/12.0'
Change-Id: I70bcac4195095a7646dcdc31532d8f61b643d869
2024-01-10 16:06:29 +01:00
hjk
e7d71c6c58 ProjectExplorer: Treat disabled UseLibraryPathsAspects as not selected
These are used to steer the addition of Qt library paths from
the build device to suitable environment entries of the run device
The aspect is hard-disabled for setups where these differ, but
so far checked only its value, which could be true independently.
Make the default access using operator()() also consider the
enabled state.

Change-Id: Iccf708999bad0336024c771e95a952118f2b2562
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-10 15:06:09 +00:00
Jarek Kobus
776e0346a3 PluginSpec: Avoid using keys()
Instead, iterate directly over the container.

Change-Id: I07f19eff23412b8953500e00d749d0477ce64543
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-10 13:15:54 +00:00
David Schulz
2bfa7aff9f Debugger: avoid nested event loop while parsing output
Use a message box that does not spawn an additional eventloop. Otherwise
we might end up with an unusable parsing state.

Fixes: QTCREATORBUG-30168
Change-Id: I628c7b915b5e4e13751f342b23191ff20ed61253
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-10 11:35:46 +00:00
Eike Ziller
542ae405fc Welcome: Avoid duplicate examples when searching
When adding examples for a category/section we also add them to the list
of all examples. To avoid ownership issues we duplicate examples when
they appear in multiple categories, but that means that the existing
mechanism of filtering duplicates based on item pointer does no longer
work. Filter duplicates based on name+description.
It would possibly be nicer to give the examples IDs (serial numbers)
when reading them and just using that for filtering duplicates, but that
isn't possible in a binary compatible manner atm.

Fixes: QTCREATORBUG-30069
Change-Id: I0ee9ef7b86955af5ee8ccdb9c5683ced81097671
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-10 11:30:48 +00:00
Eike Ziller
c07b453486 Examples: Fix reading the category ordering from manifest
qtcreator_tutorials.xml contains ordering information for the tutorials,
and if we read that (first) we ignore any subsequent ordering that the
set of Qt examples defines (in qtdoc/examples-manifest.xml).

Only read the tutorials.xml if we are actually interested in tutorials.

Amends 08bbe885b4

Change-Id: I9148cc9f1060500f46be2bbc9c9ef6c2512c2f6c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-01-10 11:27:10 +00:00
Jarek Kobus
96085f327b Coding rules: Add a note about avoiding sender() and QSignalMapper
Change-Id: Ifbc73b3c1e18484c692ee0e2a2999f2fe2e98f8b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-01-10 11:25:49 +00:00
Eike Ziller
b35f90d2aa Attributions: Do not use array for copyright
It is only supported for Qt 6.5 or later, but we still support earlier
Qt versions.

See qttools/687bbd584cc36fb8d213cb99a9098178e3701ce8

Change-Id: Ib186126c6b16fcf744f3ce1de9ee52c6b2a7aabe
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-01-10 11:23:37 +00:00
Christian Kandeler
69571427a3 CppEditor: Fix renaming include directives after bulk renamings
E.g. when renaming a class, the C++ model manager needs to know about
both renamings (.h and .cpp) at the same time. This way, it is able to
open the correct including file, even though the code model likely still
refers to the old, now-gone file path.

Fixes: QTCREATORBUG-30154
Change-Id: I583e77a4920c7cc3e642d7bebba46d734ae6bbe0
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-01-10 11:04:04 +00:00
David Schulz
9bcaf9ced9 ProjectExplorer: do not concatenate win debug messages
Individual debug messages got concatenated without a newline character
if multiple messages were received by the windebug interface thread
before they were handled in the main thread. The receiver of those
messages had no chance of handling those messages individually. This
gets fixed by using a list of messages instead of one concatenated
string.

Change-Id: Icfaf1b22db56829fcd143e574ee1033a63226c29
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-01-10 10:54:16 +00:00
Jarek Kobus
a6dea9091f TaskTree: Add static
Amends a50bc70b87

Change-Id: Ic0ea78fe8d9f74b50e4dc3310f3e17bdf520a5e8
Reviewed-by: hjk <hjk@qt.io>
2024-01-10 10:45:28 +00:00
Jarek Kobus
bc2faebe02 TaskTree: Reuse Repeat element in DataExchange example
Update the location of the target url so that it points to the
TaskTree wiki image.

Task-number: QTCREATORBUG-30081
Change-Id: Ic1c715c268b9e14711bc98415e747de8b75ed2dc
Reviewed-by: hjk <hjk@qt.io>
2024-01-10 10:45:21 +00:00
Jarek Kobus
ff46a9a8ef TaskTree: Reuse Repeat element in ImageScaling example
Task-number: QTCREATORBUG-30081
Change-Id: I281b6fe45c62045686ee215a5e03a5d8917a0282
Reviewed-by: hjk <hjk@qt.io>
2024-01-10 10:42:47 +00:00
Artem Sokolovskii
2d96d1a39f ClangFormat: Add parseConfigurationFile utility function
Change-Id: I7824e6bb77e9976aa212cdef478c4d40c4d8c56c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-01-10 10:26:51 +00:00